« Return to Thread: additional classpath for tomcat5x not working
Hi Adrian,
I have tested the artifact cargo-core-uberjar-1.0-SNAPSHOT.jar listed in CARGO-TRUNKM2JDK15-265 after you have done the fix. I have the same problem as before.
my pom:
<dependencies>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0-beta-2</version>
<dependency>
<groupId>org.codehaus.cargo</groupId><artifactId>cargo-core-uberjar</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
...
What have I did wrong?
I debugged my application and read out the classpath using System.getProperty("java.class.path") and the path specified in the location was listed in the classpath. A Class.forName(clazz) throws the NoClassDefFoundException.
Cheers
Paul
-------- Original-Nachricht --------
> Datum: Thu, 5 Feb 2009 10:07:07 +0000
> Von: Adrian Cole <ferncam1@...>> http://jira.codehaus.org/secure/CreateIssue!default.jspa<http://jira.codehaus.org/secure/CreateIssue%21default.jspa>
> An: user@...
> Betreff: Re: [cargo-user] additional classpath for tomcat5x not working
> No worries. Have a look at the jira, I believe this fix may not be in the
> beta you are using.
>
> Cheers,
> -Adrian
>
> On Thu, Feb 5, 2009 at 9:44 AM, Paul Hammes <Paul.Hammes@...> wrote:
>
> > Hi Adrian,
> >
> > thanks for your fast reply.
> > I've recorded this issue as CARGO-663.
> >
> > Cheers,
> >
> > Paul
> > -------- Original-Nachricht --------
> > > Datum: Thu, 5 Feb 2009 09:28:27 +0000
> > > Von: Adrian Cole <ferncam1@...>
> > > An: user@...
> > > Betreff: Re: [cargo-user] additional classpath for tomcat5x not
> working
> >
> > > This is a bug I ran across recently. If you don't mind, open a Jira
> on
> > it
> > > and I'll fix it.
> > >
> > >
--> > >
> > > Cheers,
> > > -Adrian
> > >
> > > On Thu, Feb 5, 2009 at 9:22 AM, Paul Hammes <Paul.Hammes@...>
> wrote:
> > >
> > > > Hi all,
> > > >
> > > > we have an application which is divided into serveral projects. One
> > > project
> > > > containing all resources for the client (js, css, ...) is packaged
> as a
> > > war
> > > > and will be deployed to tomcat5x in another project. This second
> > project
> > > can
> > > > only be packaged as jar due to deployment issues of another team in
> our
> > > > company.
> > > > As I read in the documentation of the cargo plugin an additional
> > > classpath
> > > > can be specified within a <location> as a dependency. This has no
> > effect
> > > at
> > > > runtime even the tomcat lists this path in the JspRuntimeContext at
> > > startup.
> > > > A NoClassDefFoundError is thrown when instantiating a class out of
> the
> > > > specified location. The jars listed in JspRuntimeContext are working
> > > > correctly.
> > > > You can find my pom file below.
> > > > I tried to specify the dependency to the second project as a jar but
> > > this
> > > > is a cycle dependency.
> > > >
> > > > I hope you can help me.
> > > >
> > > > Kind regards
> > > >
> > > > Paul
> > > >
> > > >
> > > >
> > > > <plugin>
> > > > <groupId>org.codehaus.cargo</groupId>
> > > > <artifactId>cargo-maven2-plugin</artifactId>
> > > > <version>1.0-beta-2</version>
> > > > <configuration>
> > > > <configuration>
> > > > <type>existing</type>
> > > > <home>${basedir}/target/tomcat</home>
> > > > <properties>
> > > > <cargo.jvmargs><![CDATA[-Xdebug
> > > > -Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=n]]>
> > > > </cargo.jvmargs>
> > > > </properties>
> > > > <deployables>
> > > > <deployable>
> > > > <artifactId>webresources</artifactId>
> > > > <groupId>${project.groupId}</groupId>
> > > > <type>war</type>
> > > > <properties>
> > > > <context>myproject</context>
> > > > </properties>
> > > > </deployable>
> > > > </deployables>
> > > > </configuration>
> > > > <container>
> > > > <containerId>tomcat5x</containerId>
> > > > <home>${basedir}/target/tomcat</home>
> > > > <dependencies>
> > > > <dependency>
> > > > <location>target/main/classes</location>
> > > > </dependency>
> > > > </dependencies>
> > > > </container>
> > > > </configuration>
> > > > </plugin>
> > > > --
> > > > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> > > allen:
> > > > http://www.gmx.net/de/go/multimessenger01
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe from this list, please visit:
> > > >
> > > > http://xircles.codehaus.org/manage_email
> > > >
> > > >
> > > >
> >
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen:
> > http://www.gmx.net/de/go/multimessenger01
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> > http://xircles.codehaus.org/manage_email
> >
> >
> >
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
« Return to Thread: additional classpath for tomcat5x not working
| Free embeddable forum powered by Nabble | Forum Help |