|
From: Lindsay S. <lgs...@bi...> - 2004-09-28 07:14:26
|
That's it, all working .. Thanks very very much.
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: Tuesday, 28 September 2004 1:54 PM
To: wra...@li...
Subject: Re: [Wrapper-user] java.lang.NoClassDefFoundError
Lindsay,
Looking at your original classpath, it looks like your dcm.DipperDCM
is a raw class file
that is not included in a JAR. It is being found because you have the
"." directory included
on your classpath.
Try adding that to the classpath in your wrapper.conf file:
wrapper.java.classpath.1=lib/wrapper.jar
wrapper.java.classpath.2=lib/comm.jar
wrapper.java.classpath.3=lib/log4j-1.2.8.jar
wrapper.java.classpath.4=lib/mysql-connector-java-3.0.14-production-bin.
jar
wrapper.java.classpath.5=.
As an aside, you can also do this: wrapper.java.classpath.1=.
wrapper.java.classpath.2=lib/*.jar
Cheers,
Leif
Lindsay Steele wrote:
> I am getting a little frustrated with trying to get an application to
> run.
>
> My application happily runs with the following batch file:
>
> java -cp
>
".;lib/comm.jar;lib/log4j-1.2.8.jar;lib/mysql-connector-java-3.0.14-prod
uction-bin.jar;lib/wrapper.jar"
> dcm.DipperDCM
>
> When I run it with the wrapper I get the following. This seems be
> what is always stopping it from running.
>
> java.lang.NoClassDefFoundError: dcm/DipperDCM
>
> my Wrapper properties are below.
>
> It seems to find the conf file, and logs to the correct place but
> cannot find the java class files to start the app.
>
> root
> +---conf
> +---dcm
> +---lib
> L---log
>
> The batch files and wrapper exe are in the root directory - dcm
> contains the class files and conf contains the conf files.
>
> I have searched the archives, FAQ's .. and read and read docs. I
> have also tried many things, including.
>
> * Setting the full path to the java executable - tried many
> variations on this.
> * Setting a working directory - same result
> * Running the app in different modes - method 1 - and then I wrote
> a wrapper class and tried to use method 3 - everything falls down when
> it will not find the class to start things.
> * Changing all sorts of settings in the conf file.
>
> I am using Windows XP for development, wrapper 3.11 and Sun's JDK
> 1.4.2
>
> Any ideas .. I am a loss.
>
> Thanks,
>
> Lindsay
>
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application wrapper.java.command=C:\j2sdk1.4.2\bin\java
>
> # Java Main class. This class must implement the WrapperListener
> interface
> # or guarantee that the WrapperManager class is initialized. Helper
> # classes are provided to do this for you. See the Integration
section
> # of the documentation for details.
> #wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
> wrapper.java.mainclass=dcm.DipperDCM
>
> # Java Classpath (include wrapper.jar) Add class path elements as #
> needed starting from 1 wrapper.java.classpath.1=lib/wrapper.jar
> wrapper.java.classpath.2=lib/comm.jar
> wrapper.java.classpath.3=lib/log4j-1.2.8.jar
>
wrapper.java.classpath.4=lib/mysql-connector-java-3.0.14-production-bin.
jar
>
> wrapper.debug=true
>
> wrapper.working.dir=\temp\run-win\
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=lib
>
> # Java Additional Parameters
> #wrapper.java.additional.1=
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> #wrapper.java.maxmemory=64
>
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|