-
1. Re: ear project is invisible for JBoss 5.1. Runtime Server
snjeza Jul 16, 2009 7:55 PM (in response to sergeysmirnov)Could you please create a jira and attach your maven project?
-
2. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 17, 2009 11:51 AM (in response to sergeysmirnov)I cannot. It is not a public project.
-
3. Re: ear project is invisible for JBoss 5.1. Runtime Server
maxandersen Jul 27, 2009 3:45 AM (in response to sergeysmirnov)Nothing of this seem related to JBT.
Projects available for deployment is simply listing WTP compatible projects and if mvn eclipse:eclipse is not doing it correctly then that explains it.
The maven guys have many time said that mvn eclipse:eclipse is broken and should not be used - use m2eclipse instead.
In any case, without having an example of projects that you say worked before but stopped working now I'm not sure what you want us to look at ? -
4. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 27, 2009 5:02 PM (in response to sergeysmirnov)I have tried the RichFaces' photoAlbum demo today. The same result.
I did not run mvn eclipse:eclipse on the code taken from jboss svn. So, m2eclipse was used. -
5. Re: ear project is invisible for JBoss 5.1. Runtime Server
maxandersen Jul 27, 2009 5:26 PM (in response to sergeysmirnov)okey - so did you have the m2eclipse WTP plugins installed ? is it configured to do war deployment ?
Then m2eclipse should be configuring this automatically. -
6. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 27, 2009 5:57 PM (in response to sergeysmirnov)Just have done with scratch.
Fresh copy of Eclipse 3.5 JavaEE unpacked to the disk
Inside the Eclipse:
Installing JBoss Tool from http://download.jboss.org/jbosstools/updates/nightly/trunk/
[x] Jboss Tools
[ ] Jboss Tools Integration
restarting eclipse
Installing m2eclispse from http://m2eclipse.sonatype.org/releases/0.9.9.200906081351/
[x] maven Integration
[ ] maven optional Components
[ ] maven Project Configuration
restarting eclipse
outside Eclipse
Checking out the fresh copy of Photoalbom from https://svn.jboss.org/repos/richfaces/tags/3.3.1.GA/examples/photoalbum/source
inside Eclipse
Server View:
Add Server -> JBoss AS 5.1 points to C:\work\jboss-5.1.0.GA
Import -> Maven/Existing Maven Projects
Root Directory points to code taken from svn above. ejb/web/ear project are recognized
Clicking Finish
Project view contains four projects just imported
on the server view: Add and Remove.... from the context menu of JBoss 5.1 Runtime Server
Result:
"There are no resources that can be added or removed from the server"
end of story.
What did I miss during this scenario?
P.S. the name of the ear/ejb/web project contains ${projectName} instead of 'photoalbum', but it is another problem of project itself:
(7/27/09 2:51:07 PM PDT: Build errors for ${projectName}-ejb; org.apache.maven.lifecycle.LifecycleExecutionException: Invalid or missing parameters: [Mojo parameter [name: 'outputDirectory'; alias: 'null'], Mojo parameter [name: 'resources'; alias: 'null']] for mojo: org.apache.maven.plugins:maven-resources-plugin:2.3:copy-resources
) -
7. Re: ear project is invisible for JBoss 5.1. Runtime Server
maxandersen Jul 28, 2009 3:59 AM (in response to sergeysmirnov)you did not install the optional components/project configuraiton from m2eclipse that integrates with WTP.
-
8. Re: ear project is invisible for JBoss 5.1. Runtime Server
mareshkau Jul 28, 2009 4:19 AM (in response to sergeysmirnov)I have had the same problem, you can see this thread http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242893#4242893
-
9. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 28, 2009 2:27 PM (in response to sergeysmirnov)Max, after the optional portion of m2eclipse are added, I was able to add richfaces photoalbom application for the deployment to JBoss 5.1.0. However, the deployment itself is failed.
The major problem is missing jboss-seam-2.1.1.GA.jar inside the ear file.
In case of launching mvn package external, the ear contains this jar.
JBT does not include it. Why?
The minor problem - I have to have replace ${projectName} with 'photoalbom' in all three pom manually. Otherwise, exactly ${prjectName} appears in the name of all three projects.
I have spoken with Nik from RF team. He said he had no such naming problem on his side. He has no JBTool, but only JBoss AS Tools (Version: 2.1.0.M2-N200907092133-H355) -
10. Re: ear project is invisible for JBoss 5.1. Runtime Server
maxandersen Jul 28, 2009 4:30 PM (in response to sergeysmirnov)please report it in our jira if you think this is a JBoss Tools issue and not an m2eclipse one.
then snjezana and others which worked on these parts can look at it. -
11. Re: ear project is invisible for JBoss 5.1. Runtime Server
snjeza Jul 29, 2009 9:40 PM (in response to sergeysmirnov)You need to configure the EAR project as JEE 5 like the following:
... <artifactId>maven-ear-plugin</artifactId> <configuration> ... <version>5</version> ... </configuration> ...
m2eclipse will add the EAR 5.0 facet, jboss-seam.jar will be deployed correctly. -
12. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 30, 2009 3:06 PM (in response to sergeysmirnov)This change something. The seam jar is in the ear. However, the structure of the ear is completely a mess now. Namely, WEB-INF folder is on the top of ear structure. ejb and web projects miss the configuration files in the root of jar and war
-
13. Re: ear project is invisible for JBoss 5.1. Runtime Server
maxandersen Jul 30, 2009 5:23 PM (in response to sergeysmirnov)is that when eclipse publishes it or when maven does ?
in either way, please realize - we aren't the one doing the actual maven/eclipse integration - m2eclipse are. We just enable it via the Eclipse WTP/facet wizards.
So this most likely are a either a maven project configuration issue or a bug somewhere in m2eclipse or wtp's understanding of what m2eclipse wants :)
But lets explore until we know where it is ... -
14. Re: ear project is invisible for JBoss 5.1. Runtime Server
sergeysmirnov Jul 30, 2009 5:34 PM (in response to sergeysmirnov)mvn package outside of Eclipse does the job perfect. The ear content is the same that on the download site. If I deploy the result ear to JBoss AS manually, it just work.
So, the problem is inside the Eclipse.
The scenario is the same that posted at the beginning of this thread. To avoid a correlation with the previous attempts, I remove the project and retake it from the svn each time. The only point I have added to the scenario is adding < version>5< /version> as suggested.