[JBoss Seam] - Re: Seam 2.0B1: selectItems, convertEntity, and lazy fetchin
by enda
Maybe you have similar problem :)
Scenario: Lazy fetching & equality So the problem was that our component selectOneMenu could not getSelected object and was returning no item selected But when I was trying to display value by inputText or whatever the value was there? I was debugging MenuRenderer and I was receiving null data values in object instance, what was the problem? Problem was that our entity object was implementing equals method, but method was comparing this.name().equals(country.name()) instead of this.getName().equals(country.getName()) as a proxy object it just was not initialized and was not fetched, so getXXX forces hibernate to fetch data
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Country)) {
return false;
}
final Country country = (Country) other;
if (this.getName() != null) {
return this.getName().equals(country.getName());
}
return false;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079799#4079799
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079799
17Â years, 1Â month
[JBossWS] - Problem Converting EJB2.1 to Web Services
by mendaye
We have existing Session EJB and trying to convert it to Web Services. I have created all the WS artifact using ant task and also modify ejb-jar.xml to include the service point. However, when I deploy as part of an ear file I am getting the following errors. We are using JBOSS 4.0.4. Based on JBOSS documenetaion, I don't need to include any exteranal jar for we services support. Our ear deployed on a different directory "pvng" but we copy all the files, and dir from default. As shown below in the server log
commons-discovery.jar, saaj.jar, wsdl4j.jar, commons-logging.jar, jaxrpc.jar? Do I need to get all this JARs?
I am not sure what is going on here? Do I need to include all jars into a lib directory inside ear file?
Help... Pls look the error message I got in server log below.
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-discovery.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-discovery.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/saaj.jar
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/saaj.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/saaj.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/wsdl4j.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/wsdl4j.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/commons-logging.jar
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-logging.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/commons-logging.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at de.danet.an.wfcore-ejbs.jar entry is lib/jaxrpc.jar
2007-08-30 15:41:31,592 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/de.danet.an.wfcore-ejbs.jar references URL file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/jaxrpc.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/DEV/JBoss/jboss-4.0.4.GA/server/pvng/tmp/deploy/tmp30558pvng.ear-contents/lib/jaxrpc.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1119)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:873)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:881)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079794#4079794
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079794
17Â years, 1Â month