facebook

Problem Deploying app with multiple Jars on linux weblogic 8

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #199928 Reply

    lensflare
    Member

    Hi,

    Weblogic 8 on linux
    redhat 9
    java 1.4.2_02
    using Eclipse 3 m4

    the error seems to be that my classpath is getting built with both SEMICOLONS and COLONS and this causes weblogic to have problem parsing the classpath and can’t find the classes.

    look at this excerpt from server log. you will see that some of the jars are separated by semicolon, others, esp. the weblogic jars, are separated by COLON.

    [synan@localhost myserver]$ cat myserver.log | grep jdom
    ####<Nov 11, 2003 11:22:16 AM CST> <Info> <Management> <localhost.localdomain> <myserver> <main> <<WLS Kernel>> <> <BEA-141034> <Java system property: java.class.path = /home/synan/workspace/DSNCR_SHARED_LIB/jdom.jar:/opt/bea/weblogic81/lib/weblogic_sp.jar:/opt/bea/weblogic81/lib/weblogic.jar:/opt/bea/weblogic81/server/lib/weblogic_sp.jar:/opt/bea/weblogic81/server/lib/weblogic.jar:/home/synan/workspace/DSNCR_SHARED_LIB/jdom-contrib.jar;/home/synan/workspace/DSNCR_SHARED_LIB/xmlrpc-1.1.jar;/home/synan/workspace/DSNCR_SHARED_LIB/xml-apis.jar;/home/synan/workspace/DSNCR_SHARED_LIB/xercesImpl.jar;/home/synan/workspace/DSNCR_SHARED_LIB/xalan.jar;/home/synan/workspace/DSNCR_SHARED_LIB/weblogic.jar;/home/synan/workspace/DSNCR_SHARED_LIB/util_sms.jar;/home/synan/workspace/DSNCR_SHARED_LIB/smartupload.jar;/home/synan/workspace/DSNCR_SHARED_LIB/msutil.jar;/home/synan/workspace/DSNCR_SHARED_LIB/mssqlserver.jar;/home/synan/workspace/DSNCR_SHARED_LIB/msbase.jar;/home/synan/workspace/DSNCR_SHARED_LIB/log4j.jar;/home/synan/workspace/DSNCR_SHARED_LIB/fastfiltertools.jar;/home/synan/workspace/DSNCR_SHARED_LIB/dsapi.jar;/home/synan/workspace/DSNCR_SHARED_LIB/fastfilterclient.jar;/home/synan/workspace/DSNCR_SHARED_LIB/classes12.zip;/home/synan/workspace/DSNCR_SHARED_LIB/xmlrpc-1.1.jar.>
    java.lang.NoClassDefFoundError: org/jdom/contrib/input/ResultSetBuilder
    [java.lang.NoClassDefFoundError: org/jdom/contrib/input/ResultSetBuilder]

    plz help!

    THanks

    #199929 Reply

    Scott Anderson
    Participant

    Looks like a problem. I’ll research and get back with my findings later.

    –Scott
    MyEclipse Support

    #199931 Reply

    lensflare
    Member

    Also I made the following changes to the commEnv.sh file in weblogic:

    CLASSPATHSEP=\; # added by me
    PATHSEP=\; # added by me
    export PATHSEP CLASSPATHSEP

    in an attempt to force it to use semicolons. however this did not seem to have any effect. So, does myEclipse use a different way of starting web logic? What files does it use? Where does it set the classpath for weblogic?

    Thanks

    #199937 Reply

    Scott Anderson
    Participant

    Well, this one is really odd. I did a detailed trace through the code to research this.
    MyEclipse hands off the classpath with which to launch WebLogic as a String[]. It’s
    Eclipse that puts it together in a platform-specific way. That is done in
    StandardVMRunner#convertClassPath, which is shown below:

    
    protected String convertClassPath(String[] cp) {
        int pathCount= 0;
        StringBuffer buf= new StringBuffer();
        if (cp.length == 0) {
            return "";    //$NON-NLS-1$
        }
        for (int i= 0; i < cp.length; i++) {
            if (pathCount > 0) {
                buf.append(File.pathSeparator);
            }
            buf.append(cp[i]);
            pathCount++;
        }
        return buf.toString();
    }
    

    You’ll see that the conversion correctly uses File.pathSeparator
    as the argument between entries. What is additionally puzzling
    is why your path shows both ‘:’ and ‘;’ being used. You didn’t
    copy your JDK over from a Windows box did you? It’s a
    full Linux version of 1.4.2_02, correct?

    Can you please post your full configuration as we request in
    the ‘Posting Guidelines’ thread?

    –Scott
    MyEclipse Support

    #199946 Reply

    Scott Anderson
    Participant

    I spoke with one of the other developers this morning on this topic and relayed my findings.
    He pointed out that there is another area that could be at fault related to the way the
    classpath preferences are stored and later loaded. My initial tests were on Windows, but
    we’ll follow up with a similar set of tests on Linux to try to validate or invalidate this new
    theory. Once the results are in, Michael will post a followup with the findings. Thanks
    for your patience.

    –Scott
    MyEclipse Support

    #199948 Reply

    lensflare
    Member

    What operating system and version are you running?

    I am using RH9 with 2.4.20-6

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)

    Version: 3.0.0
    Build id: 200310101454

    – Was Eclipse freshly installed for MyEclipse?

    Yes

    – If not, was it upgraded to its current version using the update manager?
    – Are any other external plugins installed?

    No

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*

    org.eclipse.pde
    org.eclipse.pde.source
    org.eclipse.pde.doc.user

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)

    3.6.3

    What JDK version are you using to run Eclipse? (java -version)

    java version “1.4.2_02”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

    What JDK version are you using to launch your application server?

    I am using eclipse to launch my app server

    What steps did you take that resulted in the issue?

    In the IDE, I start Weblogic 8 server, then I Deploy it in the IDE. Nothing happens so I go to the Weblogic 8 console and deploy it there.

    What application server are you using?

    Weblogic 8 linux

    Are there any errors in the Eclipse log? (<workspace>/.metadata/.log)

    There are a couple.. Some are Connection Timeout (probably not relevant) and then there are quite a few of these:

    !ENTRY org.eclipse.ui 4 0 Nov 03, 2003 15:18:35.726
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ą(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$1(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$4.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1815)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1595)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at com.genuitec.eclipse.ast.deploy.core.ui.action.DeploymentMgmtActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:255)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:541)
    at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:494)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:441)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1815)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1595)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
    at org.eclipse.core.launcher.Main.run(Main.java:765)
    at org.eclipse.core.launcher.Main.main(Main.java:599)

    Thanks for your help.

    Also please tell me which config files are used to create the classpath? It does not seem that they are using the weblogic scripts to start weblogic. Please tell me a little about how myeclipse calls weblogic so I can help troubleshoot.

    THanks!

    #199949 Reply

    lensflare
    Member

    and to answer your last question, everything (java, weblogic, eclipse) was natively installed on linux. I wouldn’t have the first idea how to migrate a windows JVM onto linux 🙂

    although the application (the EJB/JSP etc) that I am trying to deploy was written on windows platform.

    #199954 Reply

    Scott Anderson
    Participant

    There are really two issues here, it seems. The first problem, which may or may not be related
    to the second, is that you don’t have the complete release of Eclipse installed. You only have
    the JDT distribution. I can tell by the number of PDE plugins you reported; there should be 8
    in Eclipse 3.0M4. This needs to be corrected or the deployer won’t work. To fix it you’ll need
    to uninstall MyEclipse and Eclipse and then reinstall the full Eclipse distribution for Linux and
    then MyEclipse on top of that. The full distribution is available on the Eclipse download site
    here: http://download.eclipse.org/downloads/index.php. This will fix the deployment problems.

    The second problem is the path separator thing. Please try the new configuration and
    see if that addresses the issue. We’ll also continue to research it on our side.

    Also please tell me which config files are used to create the classpath?
    It does not seem that they are using the weblogic scripts to start weblogic.
    Please tell me a little about how myeclipse calls weblogic so I can help troubleshoot.

    The weblogic configuration is stored in the corresponding connector plugin’s preference file.
    In the case of WebLogic 8, it’s under <workspace>/.metadata/.plugins/com.genuitec.eclipse.easie.weblogic8/pref_store.ini
    The contents of that file are read and written by all the WebLogic 8 preference pages and
    really should not be modified directly.

    –Scott
    MyEclipse Support

    #199959 Reply

    lensflare
    Member

    Scott,

    I’m sorry I did not follow the directions properly. I got the list of pde* from the help | about by mistake… here is the list from the file system…

    [synan@localhost plugins]$ ls | grep pde
    org.eclipse.pde_3.0.0
    org.eclipse.pde.build_3.0.0
    org.eclipse.pde.core_3.0.0
    org.eclipse.pde.doc.user_3.0.0
    org.eclipse.pde.junit.runtime_3.0.0
    org.eclipse.pde.runtime_3.0.0
    org.eclipse.pde.source_3.0.0
    org.eclipse.pde.ui_3.0.0

    #199961 Reply

    Scott Anderson
    Participant

    OK. so the Eclipse version looks good. The NPE you’re seeing from the deployer is still problematic.
    Could you email your .project and .mymetadata file for the project you’re seeing this on to
    support@genuitec.com. Please reference this URL so we can find it when we need to reply. 🙂

    –Scott
    MyEclipse Support

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Problem Deploying app with multiple Jars on linux weblogic 8

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