- This topic has 7 replies, 2 voices, and was last updated 17 years, 12 months ago by
Loyal Water.
-
AuthorPosts
-
thienMemberI am moving from Tomcat to Weblogic 9. I currently have a project that is running fine with Tomcat that i tried to launch with Weblogic 9. I followed the connector profile setup as follow:
BEA home dir = C:\bea
weblogic install dir = c:\bea\weblogic91\server
admin user = weblogic
admin pwd = weblogic
execution domain root = C:\bea\user_projects\domains\mydomain
execution server name = AdminServer
Secure policy file = C:\bea\weblogic91\server\lib\weblogic.policy
JAAS login config file =With this connector info, i can deploy the codes with no issues but when i started weblogic server, it failed with a Java Virtual Machine message:
“Can not find the main class. Program exiting”
What am i missing in the configuration process? Please advise.
Thanks.
Loyal WaterMemberweblogic install dir = c:\bea\weblogic91\server
Can you please check the connector again. This is what the connector should look like:-
https://www.genuitec.com/forums/topic/weblogic-9-what-does-a-configured-connector-look-like/
thienMemberI have corrected the connector to match the above and still recieved this error when starting the weblogic:
java.lang.NoClassDefFoundError: java/lang/instrument/Instrumentation
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at java.lang.Class.getMethod0(Class.java:1901)
at java.lang.Class.getMethod(Class.java:984)
at weblogic.Server.isRedefineClassesSupported(Server.java:185)
at weblogic.Server.intializeClassloader(Server.java:166)
at weblogic.Server.main(Server.java:66)
Exception in thread “main”Appreciate any help !
Thanks.
Loyal WaterMemberAlso, you need to be sure to configure WebLogic to launch with the JDK that it ships with it. This is normally under the “jdk” dir in the WebLogic install directory.
thienMemberNipun,
i changed it to match to the jdk provided. And it is loading now. However, the error i have now is :
<Error> <HTTP> <BEA-101216> <Servlet: “action” failed to preload on startup in Web application: “strutsReport”.
java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory.I wonder this has anything to do with weblogic setup or not. I still complains about the NoClassDefFoundError.
Thanks.
Loyal WaterMemberAt this point, WebLogic is running fine, it’s your project that has the issues. It looks like your using the struts connection pool which uses the Jakarta-Commons Pool project, and you are misisng those JARs from your project I guess. Can you please double check to make sure all the JARs are added to your project.
thienMemberThank you Nipun. You’re a great help. I will look into the program from here. Thanks.
Loyal WaterMemberYour Welcome !!!
-
AuthorPosts