Specifying mulitple jars on classpath

What is the most convenient way to specify multiple jar files on the classpath? If I have a lib directory with many jar files, it seems like I should be able to specify that directory on the classpath and all jars will be used. But, as I understand the documentaiton of the javac tool, you must specifiy jars specifically. So, this becomes tiresome when a lot of jars are involved. Does anyone have recommendations on how to specify a bunch of jars at once?

If any of the JAR files are under your control,put a manifest into it which lists the other JARs in its class-path entry and cite this JAR as your classpath.
Otherwise, create a meta-JAR with a manifest which names all the other JARs in its class-[ath entry, and cite the meta-JAR as the classpath.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Alternative to specify the jar file location other than server classpath.

    Hi,
    We use weblogic 8.1 for our development purpose... and mostly work on ejb's. Every time a new ear file is created and deployed we need to specify the jar files needed to run that application in server classpath.... is there any alternate way so that v can avoid specifying these jar files in server classpath...

    vinod hadlee wrote:
    Hi,
    We use weblogic 8.1 for our development purpose... and mostly work on ejb's. Every time a new ear file is created and deployed we need to specify the jar files needed to run that application in server classpath.... is there any alternate way so that v can avoid specifying these jar files in server classpath...One alternative is you could bundle the jars in the EAR itself in APP-INF/lib.
    Gerald

  • [svn:bz-trunk] 18377: Remove WEB-INF/flex/ jars from classpath in qa-manual and qa-regress.

    Revision: 18377
    Revision: 18377
    Author:   [email protected]
    Date:     2010-10-29 12:17:57 -0700 (Fri, 29 Oct 2010)
    Log Message:
    Remove WEB-INF/flex/jars from classpath in qa-manual and qa-regress.  This folder no longer exists as we don't have the webtier compiler.
    checkintests: passed
    Modified Paths:
        blazeds/trunk/qa/apps/qa-manual/build.xml
        blazeds/trunk/qa/apps/qa-regress/build.xml

  • Got exception with p13n_app.jar and p13n_system.jar into classpath for 9.2

    Hi, Portal guru:
    I installed wls9.2&portal9.2, and put p13n_app.jar and p13n_system.jar into classpath from startWeblogic.cmd.
    then looks portalApp can not be loaded due to the following exception:
    java.lang.Error: Clonable is not clonable: java.lang.CloneNotSupportedException: com.bea.p13n.expression.operator.c
    omparative.Equals: 4138928
    com.bea.content.expression.PropertyRef: 4138900
    java.lang.String
    cm_nodeName
    java.lang.String
    CmxControlUniqueKeysFolder
    : com.bea.content.expression.PropertyRef
    at com.bea.content.expression.Search.clone(Search.java:568)
    at com.bea.content.manager.internal.SearchOpsImpl.createSearchForRepo(SearchOpsImpl.java:376)
    at com.bea.content.manager.internal.SearchOpsImpl.searchRepository(SearchOpsImpl.java:203)
    at com.bea.content.manager.internal.SearchOpsImpl.search(SearchOpsImpl.java:159)
    any know what is the problem?
    Thanks in advance.

    I don't think it's supported to have app-scoped class in the system
    classpath. I'm surprised your 814 app worked that way.
    It might be that changes in 9.2 have caused some of the classes the
    system classloader is hitting to now try to load other classes that are
    only available in an application classloader, which the system
    classloader cannot access.
    http://e-docs.bea.com/wls/docs90/programming/classloading.html has
    information about the classloader hierarchy in WLS/WLP.
    One way to have a system-classloader class access an
    appliation-classloader is via the
    Thread.currentThread().getContextClassLoader(), and then either use
    reflection or have the class implement an interface available in the
    system classloader. This allows code at the system classpath level to
    access implementation classes loaded up as part of an application,
    rather than relying upon the built-in classloading which can't see
    classes in children classloaders. However, this would entail having a
    system classpath jar and an application jar, which is why WLP has
    p13n_system.jar and p13n_app.jar.
    Greg

  • Packages in separate Jars causes classpath error

    For the purposes of easy-updating and allowing developers to work on one part of a system without interfering with others, I have created separate Jar files for the main packages in my application. So;
    com.me.pack1 is in Pack1.jar
    com.me.pack2 is in Pack2.jar
    An ant build takes care of building and packaging these up. The Jar files have the correct directory structure i.e.;
    jar $ $JAVA_HOME/bin/jar tf /users/jmcparla/jar/Pack1.jar
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/me/
    com/me/pack1/
    com/me/pack1/MainClass.class
    jar $ $JAVA_HOME/bin/jar tf /users/jmcparla/jar/Pack2.jar
    META-INF/
    META-INF/MANIFEST.MF
    com/
    com/me/
    com/me/pack2/
    com/me/pack2/OtherClass.classHowever when I run it;
    jar $ $JAVA_HOME/bin/java -cp /users/jmcparla/jar/Pack2.jar -jar /users/jmcparla/jar/Pack1.jar
    Entered main
    Created MainClass instance
    Exception in thread "main" java.lang.NoClassDefFoundError: com/me/pack2/OtherClass
            at com.me.pack1.MainClass.main(MainClass.java:13)The classes are;
    MainClass.java
    package com.me.pack1;
    import com.me.pack2.OtherClass;
    public class MainClass
        public static void main(String[] args)
            System.out.println("Entered main");
            new MainClass();
            System.out.println("Created MainClass instance");
            new OtherClass();
            System.out.println("Created OtherClass instance");
    }OtherClass.java
    package com.me.pack2;
    public class OtherClass
    }and the build file is;
    build.xml
    <project name="JarProblem" default="buildJars" basedir=".">
      <property name="classdir" value="classes"/>
      <target name="compile" depends="clean" description="compile the code">
          <mkdir dir="${classdir}"/>
          <javac debug="on" debuglevel="vars,lines,source" srcdir="."
                 destdir="${classdir}" encoding="ISO-8859-1">
          </javac>
      </target>
      <target name="buildJars" depends="compile" description="build the jar files">
        <antcall target="buildPack2"/>
        <antcall target="buildPack1"/>
      </target>
      <target name="buildPack2" description="build the Pack2 jar">
        <tstamp>
          <format property="time" pattern="hh:mm aa dd/MM/yyyy"/>
        </tstamp>
        <jar destfile="Pack2.jar" update="false">
          <fileset dir="${classdir}">
            <!-- Only include the package we're building -->
            <include name="com/me/pack2/*"/>
          </fileset>
          <manifest>
            <attribute name="Built" value="${time}"/>
          </manifest>
        </jar>
      </target>
       <target name="buildPack1" description="build the Pack1 jar">
        <tstamp>
          <format property="time" pattern="hh:mm aa dd/MM/yyyy"/>
        </tstamp>
        <jar destfile="Pack1.jar" update="false">
          <fileset dir="${classdir}">
            <!-- Only include the package we're building -->
            <include name="com/me/pack1/*"/>
          </fileset>
          <manifest>
            <attribute name="Main-Class" value="com.me.pack1.MainClass"/>
            <attribute name="Built" value="${time}"/>
          </manifest>
        </jar>
      </target>
      <target name="clean" description="clean up the compiled source files">
        <delete verbose="false" failonerror="false">
          <fileset dir="${classdir}"/>
        </delete>
      </target>
    </project>The build completes with no problems. So why can't the java command see OtherClass?

    johnmcparlald wrote:
    However when I run it;
    jar $ $JAVA_HOME/bin/java -cp /users/jmcparla/jar/Pack2.jar -jar /users/jmcparla/jar/Pack1.jar
    Entered main
    Created MainClass instance
    Exception in thread "main" java.lang.NoClassDefFoundError: com/me/pack2/OtherClass
    at com.me.pack1.MainClass.main(MainClass.java:13)
    I can't help you with ant but I can tell you that the command you entered looks wrong. If you use the -jar option with the java command, the only classpath that is used is the one specified by the Class-Path entry in the manifest - other classpaths are ignored.
    So you either need to leave off the -jar, include the Pack1.jar file and specify the main class, or include the Class-Path: Pack2.jar entry in the manifest. (At least, it looks to me like there is no Class-Path in the manifest.)

  • Putting Jar in ClassPath/Loading JDBC Driver on Linux

    Hi,
         I have got this to work on Windows � but then I simply put the Connector-J Jar into the �lib� directory of my Java installation. On this Linux machine I do not have the privileges to the �lib� directory � so I need to add the Jar to the class path � but it is not seeming to get added.
         I would appreciate any suggestions. I have copied the Connector-J Jar file to the Current working directory and I have tried
    java -classpath './mysql-connector-java-5.1.6-bin.jar' -Xmx512M -jar ProcessBigDump_fat.jar
    java -cp mysql-connector-java-5.1.6-bin.jar -Xmx512M -jar ProcessBigDump_fat.jar
    Thank you for any ideas.
    O.O.

    When you use "-jar" any user settings of the classpath are ignored. Everything has to be specified within the jar archive itself.
    Jars have a "manifest" which lets you do this. ProcessBigDump_fat.jar will already have a manifest: it has to in order to specify the main class. There will be a line like:
    Main-Class: myapp.Main(Assuming the class with the static main() method was Main and it was part of the myapp package.)
    What you have to do is add another line something like:
    Class-Path: mysql-connector-java-5.1.6-bin.jarwhich will use the mysql jar (located in the same place as your jar) as part of the classpath.
    Details in Sun's Tutorial.

  • Run *jar with other jars in classpath...

    Hey,
    I am writing a little tool in Java and I exported it into a jar file. My tool uses a jar from somebody else. A second jar so to say...!
    My Jar's path is: ~/Desktop/project/dist/lib/MyTool.jar
    The other jar is located in: ~/Desktop/project/lib/help.jar
    I call the java vm from: ~/desktop/project/exe/
    with:
    java -cp ../lib/help.jar -jar ../dist/lib/MyTool.jar
    Now the tool starts running and everything works fine up to the moment when it is supposed to use one of the classes from the help.jar.
    Then I get a java.lang.NoClassDefFoundError.
    What am I doing wrong here?
    I tried to copy help.jar into the /exe/ dir. --> Did not work!
    I tried to copy all of the file into one folder and start the tool from there. --> didn't work.
    It would be great if somebody could point my in the right direction on how to solve my problem.
    THX
    Martin

    Hey,
    I am writing a little tool in Java and I exported it
    into a jar file. My tool uses a jar from somebody
    else. A second jar so to say...!
    My Jar's path is:
    ~/Desktop/project/dist/lib/MyTool.jar
    The other jar is located in:
    ~/Desktop/project/lib/help.jar
    I call the java vm from: ~/desktop/project/exe/
    with:
    java -cp ../lib/help.jar -jar
    -jar ../dist/lib/MyTool.jar
    Now the tool starts running and everything works fine
    up to the moment when it is supposed to use one of the
    classes from the help.jar.
    Then I get a java.lang.NoClassDefFoundError.
    What am I doing wrong here?
    I tried to copy help.jar into the /exe/ dir. --> Did
    not work!
    I tried to copy all of the file into one folder and
    start the tool from there. --> didn't work.
    It would be great if somebody could point my in the
    right direction on how to solve my problem.The classpath argument is ignored when you are running a jar using java -jar some.jar. You have to specify the class path from within the Manifest.
    Basic JAR tutorial:
    http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html
    Tutorial about the extension mechanism:
    http://java.sun.com/products/jdk/1.2/docs/guide/extensions/spec.html

  • Jar Files in a Jar File - Classpath Error

    Hi,
    I created a jar file that will have all the class files of the application. In the manifest file class path, I have the jar files the application is dependent on. The dependent jar files were kept outside of the application jar file. I was able to execute the main file in the application jar file. Then I created another jar file that holds all the dependent jar files the application is dependent on along with the application jar file into one super jar file. configured the main class attribute of the super jar file to that in the application jar file. When I try to execute it, I'm getting an error saying Class Not Found. Can someone guide me in setting the classpath for this super jar file in its manifest file.
    Presently my manifest file classpath variable in the super jar file is set as App.jar Depend1.jar Depend2.jar
    Thanks,
    E H

    Java's standard class loaders do not support jar files inside of other jar files, and will give the error you see.
    You can write your own customized class loader, use a 3rd-party solution (onejar at sourceforge is one), or remove the interior jars.

  • Why getResource of jar in classpath returns null?

    When i iterate through the jars in the classpath and try to turn them into URL's via the getResources(), they all return null. What am I doing wrong?
    (NOTE: It does print out the classpath properly when i print that out)
    String classPath = System.getProperty( "java.class.path" );
    String delim = System.getProperty( "path.separator" );
    String[] locations = classPath.split( delim );
    for ( int i = 0; i < locations.length; i++ )
          /* ** It doesn't work with either of these statments: ** */
          //This one tries the full path (e.g. /home/me/test/some.jar)
          //Enumeration en = getClass().getClassLoader().getResources( locations[ i ].substring( locations[ i ] );
          //This one tries to use just the local name of the jar (e.g. test.jar)
          Enumeration en = getClass().getClassLoader().getResources( locations[ i ].substring( locations[ i ].lastIndexOf( '/' ) + 1 ) );
          //This just prints null
          while (  en.hasMoreElements(); ) System.out.println( en.nextElement() );
    }Edited by: 6tr6tr on Dec 4, 2008 5:46 PM
    Edited by: 6tr6tr on Dec 4, 2008 5:47 PM

    What you are doing doesn't make sense. The resource locations within a JAR file are relative to the package directory structure within the JAR file, not to its own absolute location on the disk. And you seem to be expecting to retrieve a JAR file from within a JAR file. This makes no sense either.

  • How to add jar files  classpath in sun stdio creator

    Hi,
    i am using log4j-1.2.13.jar in my application.
    how to add it to my classpath in sun stdio.
    with regards
    shannu sarma

    Hi there,
    These threads will answer your question
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=61842
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56060
    Thanks
    K

  • Do I always need to add .JAR to ClassPath?

    My platform is Windows.
    I pack my .class files to a .Jar file. When I want to use this .Jar, I always have to add it to ClassPath. I think it doesn't make sense. Does anything I can do that can make me use .Jar more convenient ?
    Thanks

    Can you elaborate more?
    If you create an app and jar up all of the .class files in jar called myJar.jar for example, and then want to run that app, you just type in "java -jar myJar.jar" and its' not necessary to have myJar.jar in the classpath. (Remember to add a manifest with the Main-Class attribute defined! See java tutorial for more info on executable jars...)
    If, otoh, you have a bunch of classes in a jar, and then want to refer to those classes from some other external class(es)/jar(s), then yes, you'll need to add that jar to your classpath.
    -Ron

  • Error compilng servlet - even after including servlet.jar in classpath

    I have the tomcat installation , which shows the default page on stating the tomcat.
    I have my classpath set to -
    set CLASSPATH=c:\tomcat4.1\comman\lib\servlet.jar;c:\j2sdk1.4\lib\tools.jar;
    set PATH=c:\j2sdk1.4\bin;
    I have a greetserv.java which is a simple example servlet. When i try to compile this, it gives me the error javax.servlet.jar does not exist.I have it included in the classpath, but it still doesnt work.
    Any help will be appreciated.
    Thanks,
    Jyothi

    What is javax.servlet.jar?

  • Ears, wars, support jars, and CLASSPATH

    I am trying to migrate an application from WLS 5.1 to 6.1. There are 25
    EJB jars with an equal number of support jars, most of which are referenced
    by multiple EJBs. There are also a large number of jsps, and html pages.
    I have tried packaging an ear that contains the 25 ejb jars, a war file
    containing the web pages. I have attempted to include the support jars in
    the ear as well.
    In all attempts, the only way I get class references sastisfied is to
    include all the jars on the system CLASSPATH. But this defeats the purpose
    of packaging, since none of the components referenced in the system
    CLASSPATH will be re-deployable.
    The online documents refer to separate class loaders and classpaths for the
    war and ejbs, but no detail as to how classes are found by the loaders.
    Unless I put all the jars into the CLASSPATH, jsp pages cannot reference the
    EJBs, and EJBs are unable to reference other EJBs.

    Thanks,
    Now if I could just get Webgain Visual Cafe to allow me to include the
    Classpath entries in the generated manifests for the EJB jars.
    "Gregory Gerard" <[email protected]> wrote in message
    news:3ba24da1$[email protected]..
    You need to mangle all the Manifest files within the EAR and EJB-JARs and
    WAR to get the right thing to happen. Check out this PDF on Sun's site:
    http://java.sun.com/j2ee/j2ee-1_3-pfd4-spec.pdf
    section 8.1.1.2
    I don't entirely understand all the restrictions and formatting -- Ihaven't
    found an example ear file out there that implements a non-trivial case.
    greg
    "Carl Lawstuen" <[email protected]> wrote in message
    news:3ba21d8e$[email protected]..
    I am trying to migrate an application from WLS 5.1 to 6.1. There are
    25
    EJB jars with an equal number of support jars, most of which arereferenced
    by multiple EJBs. There are also a large number of jsps, and htmlpages.
    I have tried packaging an ear that contains the 25 ejb jars, a war file
    containing the web pages. I have attempted to include the support jarsin
    the ear as well.
    In all attempts, the only way I get class references sastisfied is to
    include all the jars on the system CLASSPATH. But this defeats thepurpose
    of packaging, since none of the components referenced in the system
    CLASSPATH will be re-deployable.
    The online documents refer to separate class loaders and classpaths forthe
    war and ejbs, but no detail as to how classes are found by the loaders.
    Unless I put all the jars into the CLASSPATH, jsp pages cannot referencethe
    EJBs, and EJBs are unable to reference other EJBs.

  • Jars and classpath

    Hi All,
    I have a command line program which access database and somehow connects to a servlet running in Tomcat.
    Originally, the root directory has 2 sub-directories: the classes and the lib. The classes directory contains config files, like database name, port no... The lib dir contains all the jar files needed by my program to run.
    Honestly, it run using: java -cp /path/to/dir/jar1.jar;/path/to/dir/jar2.jar,....
    But the program uses many jar files, more or less 20 jar files, and many config files. And Its not convenient to run the program using the command above.
    So, I made a manifest file, manifest.mnf, and saved it under the classes dir:
    Manifest-Version: 1.0
    Main-Class: ManualSend
    Class-Path: ..\lib\bsiclient.jar
    ..\lib\msh.jar
    ..\classes\dbojects.properties
    ..\classes\config.xml
    ..\classes\jndi.properties
    ..\classes\log4j.properties
    ..\classes\msh_client.properties.xml
    ..\classes\sql.properties
    ..\lib\activation.jar
    ..\lib\avalon-framework-4.1.4.jar
    ..\lib\batik.jar
    ..\lib\bsi.jar
    ..\lib\bcmail-jdk13-115.jar
    ..\lib\commons-beanutils.jar
    ..\lib\commons-codec-1.2.jar
    ..\lib\commons-collections-3.1.jar
    ..\lib\commons-logging.jar
    ..\lib\commons-configuration-1.0.jar
    ..\lib\commons-digester.jar
    ..\lib\commons-lang-2.0.jar
    ..\lib\cos.jar lib\dom.jar
    ....etc.
    The ManualSend class is in bsiclient.jar. It used the default package.
    I run it in classes dir: jar -cvfm test.jar
    java -jar test.jar
    I got an error, saying:
    Error in building: \classes\test.jar!\msh_client.properties.xml (The filename, directory name, or volume label sntax is incorrect).
    I can't figure it out, so for the meantime, i just changed the '..\classes\' part of my manifest to '.\'
    I'm not happy with that. I want it to run from my root directory, using /lib and /classes subdirectories.
    Is there a way to do that? Really i'm confused with these classpath thing.
    Please, any comments, opinions, suggestions.... even violent reactions are greatly appreciated. I haven't received any feedbacks with any of my previous post in all of forums.
    Thanks,

    thanks Peter,
    I've attempted that approach before. But as i've said my program needs a lot of jar files, plus a number of config files. If i write them on one single Class-Path line, i got an error saying 'commands too long lines', or something like that.
    The manifest works fine. I am able to run the program using that manifest. But I'm not happy with that. Actually the program was based on a Tomcat webapp. I am actually doing a command-line version of it.
    So it Tomcat WEB-INF, classes and lib directories were separated. I am looking for a way to use these 2 separate directories. What I would like to find out is how to run my program, outside of the WEB-INF classes and lib directories, and at the same time could access all the jars and config files in them.
    As of the moment I had no luck of doing that. I had to run the program inside classes folder, and make a copy of lib folder inside the classes folder.
    Do you have any more suggestions, opinions? Please.

  • Jars on classpath within webservice?

    Hi. I've created a web service using apache axis. I am having a problem getting my external classes on the classpath of my web service.
    import com.mycompany.MyClass
    public class MyService{
      static {
        MyClass.initialize();
      public String myServiceMethod(){
    }When i deploy on weblogic 9.2 i get:
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "AxisServlet" failed to preload on startup in Web application: "mywar.war".
    java.lang.ExceptionInInitializerError
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:242)
            at org.apache.ws.java2wsdl.SchemaGenerator.<init>(SchemaGenerator.java:121)
            at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:306)
            at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:339)
            at org.apache.axis2.deployment.DeploymentEngine.populateService(DeploymentEngine.java:340)
            at org.apache.axis2.deployment.DeploymentEngine.loadServicesFromUrl(DeploymentEngine.java:181)
            at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:264)
            at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:74)
            at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:486)
            at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
            at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
            at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)
            at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
            at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
            at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
            at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1698)
            at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1675)
            at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1595)
            at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2734)
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:892)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
            at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
            at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
            at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
            at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:641)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:229)
            at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
            at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
            at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:565)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
            at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
            at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
            at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
            at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
            at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeli
    verer.java:181)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.
    java:12)
            at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:
    67)
            at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class Not found : com.mycompany.MyClass
            at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:88)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at com.mycompany.MyService.<clinit>(Unknown Source)
            ... 52 more
    Caused by: java.lang.ClassNotFoundException: Class Not found : com.mycompany.MyClass
            at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:84)
            ... 56 more
            at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:894)
            at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:336)
            at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
            at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
            at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
            Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: Class Not found : com.mycompany.MyClass
            at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:84)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at com.mycompany.MyService.<clinit>(Unknown Source)
            Truncated. see log file for complete stacktraceI believe the error is occurring when Axis loads the service class and the static block is executed. ie - <clinit>.
    MyClass lives in a packaged jar - myjar.jar. How do I get myjar.jar on the runtime classpath of MyService?
    I've tried placing myjar.jar in the WEB-INF/lib folder of the axis war, as well as packaging it in the .aar of MyService
    Thanks!

    bump.
    anybody have any ideas on this?

Maybe you are looking for

  • How do I insert an image in a div box?

    OK I've got a seemingly small issue I have to iron out to update our homepage after our graphics person decided to stop showing up to work.  If you need to view the page source it is located here - http://www.rugged-cctv.com/indextestvideo2.shtml 1.

  • Automate OBIEE stop and start services.

    Hi All, We are using OBIEE10.1.3.4 version on windows envorinment.In Production instead of doing manual start and stop services we need to automate one batch file that batch file has to bounce all the OBIEE services.And we need one batch file for cle

  • Can a pattern created in illustrator CS6 be plotted?

    When a new pattern is being created in Illustrator CS6, the shaped objects that form the basis for the pattern, all have anchor points.However, when the pattern is then created and is stored in the swatch, it looses it's anchor points when it is used

  • Burn a cd - no option available in Itunes ?

    I can't burn a cd... The option isn't there... Who can help me ? Thanks a lot in advance ! KR

  • Best way to calculate a duration

    Hi Everybody, loading data I have to calculate a key figure as a duration..it means as result from the difference between a start and end timestamps.. how do you think would be the best way to calculate this keyfigure? I would rather prefer to do it