on 06-09-2006 7:23 AM
Hi,
I have developed an application in Web Module Project and when deployed and the run the application, it is giving the following error :
500 Internal Server Error
SAP J2EE Engine/6.40
Application error occurs during processing the request.
Details: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library D:\usr\sap\J2E\JC00\j2ee\os_libs\sapjcorfc.dll already loaded in another classloader]. java.library.path [C:\j2sdk1.4.2_09\jre\bin\server;C:\j2sdk1.4.2_09\jre\bin;C:\j2sdk1.4.2_09\bin;D:\usr\sap\J2E\JC00\j2ee\os_libs;c:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\usr\sap\J2E\SCS01\exe;D:\usr\sap\J2E\JC00\exe;D:\usr\sap\J2E\SYS\exe\run]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:733)
at myPackage.HRServlet.doGet(HRServlet.java:22)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162).
After this error, when i restart the j2ee engine the application is working fine. But when I redeploy and run the same application, it is throwing the above error.
Please, let me know how to resolve this issue.
Thanks,
Sri.
Issue Closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriram,
In this case , u might have included the sapjco.jar file in your Web Module Project. If u have included this externally , then just remove reference of the external jar file and u can add library references in your WAR project.
For adding library references ..
1. Select the <b>EJB or Web project</b> in the J2EE Explorer (for ordinary projects) or J2EE DC Explorer (for DC projects).
2. Open the context menu and choose Add/Remove Additional Library.
The J2EE libraries/interfaces/service dialog appears. It allows you to select two types of libraries:
Library Projects The library projects existing in the current workspace.
<b>Installed Libraries The default libraries expected to be available on the J2EE Engine. sapjco.jar file and the associated DLL files are already installed on the SAP J2EE WAS. here we are giving references to that library files.</b>
3. Select the relevant library or libraries and confirm by choosing OK.
The SAP NetWeaver Developer Studio displays a dialog that reminds you to describe the library that was added in the application-j2ee-engine.xml of the corresponding Enterprise project (see the following steps).
<b>After that , u have to make changes appropriately in the EAR project inorder to make the changes to take effect..</b>
Describing the Additional Libraries in an Enterprise Project
4. Select the relevant Enterprise project in the J2EE Explorer or J2EE DC Explorer.
5. Double-click application-j2ee-engine.xml.
The multipage editor opens in the right pane.
6. In the General tab, choose the entry References.
7. Choose the Add button.
8. Then choose the button Select library/interface/service to add the reference.
The J2EE libraries/interfaces/service dialog appears, as in step 2.
9. Select the relevant library, as in step 3.
Then build and deploy the EAR project .
i think this problem can solve your error.
<b>In your case what has happened is that , u might be using different versions of Developer Studio and J2EE engine to deploy applications..
The sapjco.jar file and the associated DLL files must be from the same extract ..
If the version are different , then
the sapjco.jar file might not be compatible with the associated dll files in our SYSTEM32 directory..</b>
Regards
Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sriram
Check the OSS Note 542175. That would solve your problem.
Regards
Ak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.