You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by stephan opitz <st...@gmail.com> on 2006/07/02 12:39:02 UTC
[shale] + myeclipse + jboss + how to + working???
1. create a shale project using maven 2
mvn archetype:create -DarchetypeGroupId=org.apache.struts.shale
-DarchetypeArtifactId=struts-archetype-shale-blank
-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.apache.struts.ShaleTest
-DpackageName=org.apache.struts.ShaleTest -DartifactId=ShaleTest
-DremoteRepositories=http://people.apache.org/maven-snapshot-repository
2. add eclipse project dependencies + maven repo
mvn eclipse:eclipse
mvn -Declipse.workspace=X:\workspace eclipse:add-maven-repo
3. open myeclipse with maven2 plugin
activate maven 2 + update dependencies
4. add myeclipse webproject folder
src/main/webapp
5. deploy + start
deplay war file using myeclipse ide
6. start jboss 4
exception is coming...
deploying incomplete exception while starting...
does exist there any possibility??
only mvn cargo:start work from commandline -> with cargo tomcat plugin
-> but jboss
stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [shale] + myeclipse + jboss + how to + working???
Posted by stephan opitz <st...@gmail.com>.
best is if you do this and create an enterprise project...
all ejbs in the ejb project including the meta-inf + persistence.xml
the web project should be the one created with maven2
import for access to the ejb is that you have to the name of your ear-archive
earArchiveName/EJBNname/local or remote
it works great to access from shale to ejbs (and to db)
stephan
2006/7/2, David Friedman <hu...@ix.netcom.com>:
> I have the new(er) Eclipse Maven plugin
> (maven.apache.org/eclipse-plugin.html) and it seems to handle the linking
> and copying of the dependencies for me. That is/was on Eclipse 3.1.2. I
> just downloaded Eclpse 3.2/Callisto but I haven't tried it on that one yet.
> Otherwise, that was close but I don't do that "eclipse:add-maven-repo"
> command. I seem fine with the "mvn eclipse:eclipse". Why do you do the
> add-maven-repo? Oh, one draw-back with this particular eclipse-maven plugin
> is that right now it only browses ibilio and you can't specify overrides on
> settings.xml/pom.xml for it to browser other repositories. So, I have to
> manually add artifacts to my local repository first if they aren't in the
> main maven site.
>
> Regards,
> David
>
> -----Original Message-----
> From: stephan opitz [mailto:stephan.opitz@gmail.com]
> Sent: Sunday, July 02, 2006 11:34 AM
> To: Struts Users Mailing List
> Subject: Re: [shale] + myeclipse + jboss + how to + working???
>
>
> all depending libaries have to be copy in the WEB-INF/lib folder
> resources in the src folder too...
>
> it works
>
> 2006/7/2, stephan opitz <st...@gmail.com>:
> > 1. create a shale project using maven 2
> >
> > mvn archetype:create -DarchetypeGroupId=org.apache.struts.shale
> > -DarchetypeArtifactId=struts-archetype-shale-blank
> > -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.apache.struts.ShaleTest
> > -DpackageName=org.apache.struts.ShaleTest -DartifactId=ShaleTest
> > -DremoteRepositories=http://people.apache.org/maven-snapshot-repository
> >
> > 2. add eclipse project dependencies + maven repo
> >
> > mvn eclipse:eclipse
> >
> > mvn -Declipse.workspace=X:\workspace eclipse:add-maven-repo
> >
> > 3. open myeclipse with maven2 plugin
> >
> > activate maven 2 + update dependencies
> >
> > 4. add myeclipse webproject folder
> >
> > src/main/webapp
> >
> > 5. deploy + start
> > deplay war file using myeclipse ide
> >
> > 6. start jboss 4
> >
> > exception is coming...
> >
> > deploying incomplete exception while starting...
> >
> > does exist there any possibility??
> >
> > only mvn cargo:start work from commandline -> with cargo tomcat plugin
> > -> but jboss
> >
> > stephan
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: [shale] + myeclipse + jboss + how to + working???
Posted by David Friedman <hu...@ix.netcom.com>.
I have the new(er) Eclipse Maven plugin
(maven.apache.org/eclipse-plugin.html) and it seems to handle the linking
and copying of the dependencies for me. That is/was on Eclipse 3.1.2. I
just downloaded Eclpse 3.2/Callisto but I haven't tried it on that one yet.
Otherwise, that was close but I don't do that "eclipse:add-maven-repo"
command. I seem fine with the "mvn eclipse:eclipse". Why do you do the
add-maven-repo? Oh, one draw-back with this particular eclipse-maven plugin
is that right now it only browses ibilio and you can't specify overrides on
settings.xml/pom.xml for it to browser other repositories. So, I have to
manually add artifacts to my local repository first if they aren't in the
main maven site.
Regards,
David
-----Original Message-----
From: stephan opitz [mailto:stephan.opitz@gmail.com]
Sent: Sunday, July 02, 2006 11:34 AM
To: Struts Users Mailing List
Subject: Re: [shale] + myeclipse + jboss + how to + working???
all depending libaries have to be copy in the WEB-INF/lib folder
resources in the src folder too...
it works
2006/7/2, stephan opitz <st...@gmail.com>:
> 1. create a shale project using maven 2
>
> mvn archetype:create -DarchetypeGroupId=org.apache.struts.shale
> -DarchetypeArtifactId=struts-archetype-shale-blank
> -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.apache.struts.ShaleTest
> -DpackageName=org.apache.struts.ShaleTest -DartifactId=ShaleTest
> -DremoteRepositories=http://people.apache.org/maven-snapshot-repository
>
> 2. add eclipse project dependencies + maven repo
>
> mvn eclipse:eclipse
>
> mvn -Declipse.workspace=X:\workspace eclipse:add-maven-repo
>
> 3. open myeclipse with maven2 plugin
>
> activate maven 2 + update dependencies
>
> 4. add myeclipse webproject folder
>
> src/main/webapp
>
> 5. deploy + start
> deplay war file using myeclipse ide
>
> 6. start jboss 4
>
> exception is coming...
>
> deploying incomplete exception while starting...
>
> does exist there any possibility??
>
> only mvn cargo:start work from commandline -> with cargo tomcat plugin
> -> but jboss
>
> stephan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [shale] + myeclipse + jboss + how to + working???
Posted by stephan opitz <st...@gmail.com>.
all depending libaries have to be copy in the WEB-INF/lib folder
resources in the src folder too...
it works
2006/7/2, stephan opitz <st...@gmail.com>:
> 1. create a shale project using maven 2
>
> mvn archetype:create -DarchetypeGroupId=org.apache.struts.shale
> -DarchetypeArtifactId=struts-archetype-shale-blank
> -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.apache.struts.ShaleTest
> -DpackageName=org.apache.struts.ShaleTest -DartifactId=ShaleTest
> -DremoteRepositories=http://people.apache.org/maven-snapshot-repository
>
> 2. add eclipse project dependencies + maven repo
>
> mvn eclipse:eclipse
>
> mvn -Declipse.workspace=X:\workspace eclipse:add-maven-repo
>
> 3. open myeclipse with maven2 plugin
>
> activate maven 2 + update dependencies
>
> 4. add myeclipse webproject folder
>
> src/main/webapp
>
> 5. deploy + start
> deplay war file using myeclipse ide
>
> 6. start jboss 4
>
> exception is coming...
>
> deploying incomplete exception while starting...
>
> does exist there any possibility??
>
> only mvn cargo:start work from commandline -> with cargo tomcat plugin
> -> but jboss
>
> stephan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org