-
1. Re: Can not deploy RichFaces Photoalbum example
mareshkau Jan 10, 2010 2:05 PM (in response to seidlerware)When I tryed to view Photoalbum application, it was maven based application.
As I know maven support not included into JDBS 2.1.
Looks like here some library incompatibility your are trying to use one library instead other or both version of library in one time,
If you remove one version of library, it can help you.
-
2. Re: Can not deploy RichFaces Photoalbum example
dgolovin Jan 11, 2010 2:45 AM (in response to seidlerware)Would be good to know the link to sources of RichFaces Photoalbum Application. That would let at least check fi that issue can/cannot be replicated and suggest available workarounds. -
3. Re: Can not deploy RichFaces Photoalbum example
mareshkau Jan 11, 2010 7:09 AM (in response to dgolovin)Link to photoalbom application http://anonsvn.jboss.org/repos/richfaces/tags/3.3.2.GA/examples/photoalbum
I have used PhotoAlbom guide to import this application into eclipse.
-
4. Re: Can not deploy RichFaces Photoalbum example
mareshkau Jan 11, 2010 7:57 AM (in response to mareshkau)Looks like a bug, I have created an issue about it https://jira.jboss.org/jira/browse/JBIDE-5646 -
5. Re: Can not deploy RichFaces Photoalbum example
snjeza Jan 11, 2010 8:37 AM (in response to seidlerware)See http://lists.jboss.org/pipermail/seam-dev/2009-August/001716.html
Try to create a project using SCM URL http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/photoalbum
-
6. Re: Can not deploy RichFaces Photoalbum example
seidlerware Jan 11, 2010 2:53 PM (in response to dgolovin)Hi Dennis,
I downloaded richfaces-examples-3.3.2.SR1 and installed it according to the readme file with mvn clean install eclipse:clean eclipse:eclipse .
I use maven version 2.2.1
Bernd
-
7. Re: Can not deploy RichFaces Photoalbum example
seidlerware Jan 11, 2010 3:00 PM (in response to mareshkau)Thanks Maxim! -
8. Re: Can not deploy RichFaces Photoalbum example
dgolovin Jan 11, 2010 3:03 PM (in response to seidlerware)Bern,
have you seen Snjezana's post below, it describes a workaround for your issue. Does that work for you?
-
9. Re: Can not deploy RichFaces Photoalbum example
seidlerware Jan 11, 2010 3:09 PM (in response to snjeza)Thanks Snjezano,
unfortunately I can not give you feedback before next week. Holidays
!
-
10. Re: Can not deploy RichFaces Photoalbum example
grendizer Apr 23, 2010 5:13 AM (in response to snjeza)I'd like to deploy the photoalbum app (latest ver. 3.3.4 from http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/examples/photoalbum) to Eclipse but I'm getting some errors.
My environment :
- Eclipse 3.5.2
- JBoss 5.0.1GA
- JBoss Seam 2.1.1.GA
- WTP 3.1.1 (20090812)
- JBoss Tools 3.1.0 v20100305
- Maven Integration for Eclipse 0.10.0.20100209
I'd like to know if the workaround you described under http://lists.jboss.org/pipermail/seam-dev/2009-August/001716.html is still valid for my environment. You noted:
- create application.xml and jboss-app.xml in
src/main/application/META-INF - see
https://jira.jboss.org/jira/browse/JBIDE-4809
=> Unfortunately I don't know which content should I put into these two files.@All:
Was any one able to deploy the app into eclipse, please post your hints describing how you did bypass the errors. When I start JBoss, I get the following errors:
org.jboss.deployers.spi.DeploymentException: Error deploying photoalbum-ejb-3.3.4-SNAPSHOT.jar: Interceptor class not found: org.jboss.seam.ejb.SeamInterceptor in class loader BaseClassLoader@1d04d6{vfsfile:/C:/Programme/Java/jboss-5.0.1.GA/server/default/deploy/photoalbum-ear-3.3.4-SNAPSHOT.ear/ .... .............. .............. Caused by: java.lang.RuntimeException: Interceptor class not found: org.jboss.seam.ejb.SeamInterceptor in class loader BaseClassLoader@1d04d6{vfsfile:/C:/Programme/Java/jboss-5.0.1.GA/server/default/deploy/photoalbum-ear-3.3.4-SNAPSHOT.ear/}
And from the eclipse error log i get continuously:
java.lang.IllegalStateException: Parent Translator (ApplicationTranslator(application,2553255)) did not find a Child Translator for "javaee:description".
-
11. Re: Can not deploy RichFaces Photoalbum example
callmepuck Dec 16, 2010 11:18 AM (in response to snjeza)Hello Snjezana
I installed JBDS 3.0.1and EAP 5.1 on MAC JRE 6.0_22
svn export --force http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/photoalbum .
mvn clean install eclipse:clean eclipse:eclipse
added 3 project in JBDS 3.0.1 for ejb,war modules, ear app
a - deployed from JBDS 3.0.1to EAP 5.1
16:06:13,537 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfsfile:/Applications/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/server/default/deploy/photoalbum-ear-3.3.1.GA.ear/ state=ClassLoader mode=Manual requiredState=PostClassLoader
org.jboss.deployers.spi.DeploymentException: Cannot process metadata
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
...
Caused by: java.lang.ClassNotFoundException: org.richfaces.photoalbum.service.PhotoAlbumException from BaseClassLoader@330ec6d0{vfsfile:/Applications/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/server/default/deploy/photoalbum-ear-3.3.1.GA.ear/}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
I added in deployed directory .../photoalbum-ear-3.3.1.GA.ear
/META-INF/jboss-app.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app PUBLIC
"-//JBoss//DTD J2EE Application 1.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
<jboss-app>
<loader-repository>org.richfaces.examples:loader=photoalbum-ear-3.3.1.GA.ear</loader-repository>
</jboss-app>
META-INF/application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
<display-name>photoalbum-ear</display-name>
<module>
<web>
<web-uri>photoalbum-web-3.3.1.GA.war</web-uri>
<context-root>/photoalbum-web</context-root>
</web>
</module>
<module>
<ejb>photoalbum-ejb-3.3.1.GA.ejb</ejb>
</module>
<module>
<ejb>jboss-seam-2.1.1.GA</ejb>
</module>
</application>
I added in the deployed directory :
added /jboss-seam-2.1.1.GA.jar
/lib/commons-beanutils-1.7.0.jar
/lib/commons-collections-3.2.jar
/lib/commons-logging-1.0.4.jar
/lib/jboss-el-1.0_02.CR2.jar
/lib/richfaces-api-3.3.1.GA.jar
I replaced ./photoalbum-ear-3.3.1.GA.ear/photoalbum-ejb-3.3.1.GA.ejb/components.properties by the following:
jndiPattern=photoalbum-ear-3.3.1.GA/#{ejbName}/local
embeddedEjb=false
I have yet to modify my IDE project to make happend automatically in the "publish to server" command.
Does it makes sense? It'd be nice to document this somewhere like http://docs.jboss.org/richfaces/latest_3_3_X/en/realworld/html_single/, don't you think?
Cheers,
Puck
-
12. Re: Can not deploy RichFaces Photoalbum example
snjeza Dec 17, 2010 11:57 AM (in response to callmepuck)In order to install the photoalbum application on JBDS 3.0.1, it is necessary to have the following:
JBDS 3.0.1
m2eclipse 0.10.2
m2eclipse-wtp 0.10.0
JBoss Maven Integration 1.0.1
JBoss Maven Seam Integration 1.0.1Steps to install the application:
1) svn co http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/photoalbum .
2) start JBDS 3.0.1 and call File>Import>Maven>Existing Maven projectsDo not call "mvn clean install eclipse:clean eclipse:eclipse" because it is not recommended to use Maven Eclipse plugin with m2eclipse.
3) Create JBoss EAP 5.1
4) deploy photoalbum-ear to the server
5) start the serverI recommend you to use JBDS 4.0.0 Beta2/JBoss Tools 3.2.0 Beta2, m2eclipse-core 0.12.0, m2eclipse-wtp 0.11.1 and all the JBoss Tools Maven features.
If you use them, you will be able to install Photoalbum 3.3.4-SNAPSHOT in the following way:1) svn co hhttp://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/photoalbum-3.3.x
2) start JBDS 4.0.0/JBoss Tools 3.2.0 and call File>Import>Maven>Existing Maven projects
3) Create JBoss EAP 5.1
4) deploy photoalbum-ear to the server
5) start the serverThe original photoalbum application uses properties within the artifactId element of some projects (${projectName}-web, for instance) and resource filtering. m2eclipse doesn't work correctly with such projects.
-
13. Re: Can not deploy RichFaces Photoalbum example
callmepuck Dec 17, 2010 1:56 PM (in response to snjeza)Hello Snjezana,
Thank you very much for this quick precise answer to my question. IT WORKED :-)
PS:
Since I'm not proficient enough on this env., I'll stick with the stable version if you don't mind ;-)
For info to other,I followed:
JRE 6.0_22
jboss EAP 5.1
JBDS 3.0.1
1 - Updated JBDS with http://m2eclipse.sonatype.org/sites/m2e =>ver 0.10.2
2 - Updated JBDS with http://m2eclipse.sonatype.org/sites/archives/m2e-extras-20101029 WPT =>ver 0.10.0
3 - Updated JBDS with JBoss Tools from http://download.jboss.org/jbosstools/updates/stable/galileo/ =>Maven Support
4 - svn co http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/photoalbum ./photoalbum
5 - Imported the parent pom.xml with m2eclipse eclipse plugins
6 - published the ear project from JBDS to EAP
7 - I had a manual ear project written from your version is a lot nicer as the eclipse projects mirrors the maven files.
Greetings from Paris,
Puck
-
14. Re: Can not deploy RichFaces Photoalbum example
callmepuck Dec 17, 2010 2:01 PM (in response to dgolovin)Hello Denis,
I've just followed Snjezana recommendation to publish photoalbum demo from eclipse to JBoss server, It'd be nice to document this somewhere like http://docs.jboss.org/richfaces/latest_3_3_X/en/realworld/html_single/, don't you think?
Cheers,
Puck