[JBoss Seam] - Re: java.lang.NoClassDefFoundError: org/jaxen/VariableContex
by dustismo
I have narrowed it down to this class. I suspect this is a bug in icefaces. Is there anyway to find out what specific object is causing the exception? I can tell from the server.log that it dying on the ArrayList of MenuItem (MenuItem is an icefaces class) but thats it.
| @Stateful
| @Name("menuManager")
| @Scope(SESSION)
| public class MenuManagerBean implements MenuManager, java.io.Serializable {
| /**
| *
| */
| private static final long serialVersionUID = 4289740177244369482L;
|
| @Logger
| private Log log;
|
| @In
| FacesMessages facesMessages;
|
| // @In @Out
| // private User user;
|
| @PersistenceContext
| private EntityManager em;
|
| @Out
| private List<MenuItem> dataMenu;
|
| public MenuManagerBean(){}
|
| @Factory("dataMenu")
| public void loadDataMenu() {
| dataMenu = new ArrayList<MenuItem>();
| for (int i=0; i < 5; i++) {
| MenuItem item = new MenuItem();
| item.setId("menuItem_" + i);
| item.setLink("link-" + i + ".seam");
| item.setValue("MenuItem-" + i);
| dataMenu.add(item);
| }
| }
|
| @Remove @Destroy
| public void destroy() {}
|
| public List<MenuItem> getDataMenu() {
| return dataMenu;
| }
|
| public void setDataMenu(List<MenuItem> dataMenu) {
| this.dataMenu = dataMenu;
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005426#4005426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005426
19 years, 3 months
Deployment errors when JARs contain XML files in META-INF
by Daniel Lipofsky
I have been running JBoss 3.2.7 with an exploded EAR installed in
jboss3/default/deploy, and it has been working fine. Now I want
to run it with the exploded EAR somewhere else (to save time copying
the files during development). So I changed the URLs entry in
jboss3/default/conf/jboss-service.xml from this:
<attribute name="URLs">
deploy/
</attribute>
to this:
<attribute name="URLs">
file:///c:/src/4_1_2/bc/build , deploy/
</attribute>
(I also tried reversing the order of those 2 items or just
using the build dir).
Most of the deployment seems to go OK but then I get these errors:
07:56:05,035 ERROR URLDeploymentScanner - Incomplete Deployment listing:
Packages waiting for a deployer:
org.jboss.deployment.DeploymentInfo@6234bac5 {
url=file:/c:/src/4_1_2/bc/build/jdom.jar }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/c:/src/4_1_2/bc/build/jdom.jar
lastDeployed: 1169567649949
lastModified: 1169567649949
mbeans:
org.jboss.deployment.DeploymentInfo@9aa4060a {
url=file:/c:/src/4_1_2/bc/build/jwebunit-core-1.3.jar }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/c:/src/4_1_2/bc/build/jwebunit-core-1.3.jar
lastDeployed: 1169567650121
lastModified: 1169567650121
mbeans:
org.jboss.deployment.DeploymentInfo@fd52bd88 {
url=file:/c:/src/4_1_2/bc/build/jwebunit-htmlunit-plugin-1.3.jar }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/c:/src/4_1_2/bc/build/jwebunit-htmlunit-plugin-1.3.jar
lastDeployed: 1169567650121
lastModified: 1169567650121
mbeans:
Interestingly, these 3 JARs are the only non-EJB JARs with XML files
in the META-INF dir:
jdom.jar ->
META-INF/info.xml
jwebunit-core-1.3.jar ->
META-INF/maven/net.sourceforge.jwebunit/jwebunit-core/pom.xml
jwebunit-htmlunit-plugin-1.3.jar ->
META-INF/maven/net.sourceforge.jwebunit/jwebunit-htmlunit-plugin/pom.xml
I read in another forum about this bug and it suggested removing
info.xml from jdom.jar, but I really don't know what effect removing
these files from these JARs will have so I would prefer a better
solution to this problem. It seems like a bug in JBoss.
It's strange it only showed up when I changed the deploy location.
Thanks,
Dan
19 years, 3 months