Tried running seam-gen and dropping your component jar file into the war?
I based the whole migrated project on a seam-gen generated project. Dropping my component jar file into the war - alongside the richfaces, facelets and jboss-seam* jars also resulsts in a NoClassDefFoundError as I also have direct dependencies between my action beans and my custom components - as mentioned above.
some updates - i tried the following without any success:
a) put jboss-seam-ui.jar and my custom component jar into the JBoss jsf-lib folder alongside the Sun JSF RI
b) put them into the root ear directory alongside the jboss-seam.jar and register them as modules in the application.xml
unfortunately neither of the two approaches worked. I am getting really desperate here. any suggestions??
Simple approach that works for us:
Put all the jars in the ear, and add Classpath entries for all ear jars in the MANIFEST.MF of the war.
Thanks a lot. worked like a charm!!
I think I'm having similar issues. Can some please post an example? I added a MANIFEST.MF and attempted to set classpath entries there but didn't do something right. All kinds of fireworks when JBoss starts up.
In my ear file I have foo.jar, foo.war, lib, and META-INF.
I moved all 3 richfaces-xxx.jar files into my ear's lib directory.
Then I went into foo.war and created a META-INF directory and put a MANIFEST.MF file in there containing:
Class-Path: ../../lib/richfaces-impl.jar ../../lib/richfaces-ui.jar ../../lib/richfaces-api.jar
It wasn't happy.
Path must be relative to ear root.
Class-Path: lib/richfaces-impl.jar lib/richfaces-ui.jar lib/richfaces-api.jar
This solution does not work for me. Who would it work?