Albert Liptay wrote:
> I can't seem to figure out how to properly include another project to my
> main project and have the other project's classes published to Tomcat
> (version 6.0.18)
> I have:
> Q4E .8
> Eclipse Ganymede SP1
> Tomcat 6.0.18
> To create a maven wtp project (main), I use the Maven 2 Project Creation
> Wizard and the maven-archetype-webapp
> In my pom.xml (main project) I have a dependency on a toolkit project.
> If I go to the Java Build Path/Libraries, the project is under the Maven
> Classpath Container.
> However, when I publish to a Tomcat server (WTP), it pulls the dependent
> jars from toolkit into the deploy path, but doesn't copy the classes
> from toolkit project to the deploy path.
> If I look at the main project's
> settings/org.eclipse.wst.common.component, I can see why (there's no
> reference to the src folders of toolkit:
> <dependent-module deploy-path="/WEB-INF/lib"
This should result in a WSToolkit.jar in the WEB-INF/lib of the
published webapp. Typically this would be in a folder for the web
project under the
" .metadata\.plugins\org.eclipse.wst.server.core\tmp?\wtpwebap ps " folder
for the server. Can you confirm that the jar is not there?
> What I'm stuck on is how to tell maven2/wtp/tomcat? to deploy the
> toolkit classes to Tomcat.
> Any ideas/thoughts would be greatly appreciated
Ok, I confirmed that the WSToolkit.jar is not present in the published
WEB-INF\lib folder (mind you if it were I might not be having this problem
So, I guess my next question is which component/piece of WTP or maven2 is
supposed to create this WSToolkit.jar? BTW, manually copying the toolkit
jar after a mvn install to the WEB-INF\lib folder works, so my only hurdle
is to get the WSToolkit.jar created and published.
Albert Liptay wrote:
> Ok, I confirmed that the WSToolkit.jar is not present in the published
> WEB-INF\lib folder (mind you if it were I might not be having this
> problem :)
> So, I guess my next question is which component/piece of WTP or maven2
> is supposed to create this WSToolkit.jar? BTW, manually copying the
> toolkit jar after a mvn install to the WEB-INF\lib folder works, so my
> only hurdle is to get the WSToolkit.jar created and published.
> Any further ideas?
Is there a ".settings/org.eclipse.wst.common.component" in the WSToolkit
project? Maybe the "disconnect" is on that end. You could also try
creating a standard Java project and add it as a dependency of the main
project. If that creates a jar successfully, we'll have to figure out
what it is about the WSToolkit project that's preventing its jar from