facebook

[Closed] Weblogic 9 configuration startup issue

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #271147 Reply

    thien
    Member

    I 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.

    #271150 Reply

    Loyal Water
    Member

    weblogic 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/

    #271174 Reply

    thien
    Member

    I 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.

    #271175 Reply

    Loyal Water
    Member

    Also, 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.

    #271176 Reply

    thien
    Member

    Nipun,

    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.

    #271182 Reply

    Loyal Water
    Member

    At 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.

    #271186 Reply

    thien
    Member

    Thank you Nipun. You’re a great help. I will look into the program from here. Thanks.

    #271191 Reply

    Loyal Water
    Member

    Your Welcome !!!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] Weblogic 9 configuration startup issue

You must be logged in to post in the forum log in