[JBoss Seam] - Problem with injection
by miloslav.vlach
I have problem with injection to the component.
On the view I have the form with <h:inputText value="#{reason.reason}" />
This is populated to the bean named reason which contains only one String reason.
But the I invoke the action method in the reason is not instance of reason but this:
cz.bpsolutions.ims.beans.Reason_$$_javassist_7
There is problem with our validation solution, which use reflection to call validation method. This validation solution could't find the possible method bedause of type diference....
My question is: why isn't injected instance of Reason object instead of javaassist ?
Thanks Mila
| Caused by: java.lang.NoSuchMethodException: cz.bpsolutions.mis.request.SimpleValidator.<init>(cz.bpsolutions.ims.beans.Reason_$$_javassist_7)
| at java.lang.Class.getConstructor0(Class.java:2678)
| at java.lang.Class.getDeclaredConstructor(Class.java:1953)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066437#4066437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066437
18Â years, 9Â months
[JNDI/Naming/Network] - Re: JBoss 4.2 ejb not bound
by jaikiran
anonymous wrote : In debug mode I verified that the InitialContext.lookUp(..) is done on "java:comp/env/ejb/Calc" it's correct and it seems to confirm that the ejb is not deployed correctly.
_steph, As we already saw in the JNDI tree view that you posted, then bean is not bound by java:comp/env/ejb/Calc. So using that name in the lookup is incorrect. But i think i understand what you are saying, you want to continue using that lookup string and be able to successfully lookup the bean. Is that correct? If yes, then you will have to modify the web.xml and jboss-web.xml to include the following (in addition to what you already have in them)
web.xml:
| <web-app>
| ...... all your existing stuff here
| <ejb-ref>
| <ejb-ref-name>ejb/Calc</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <home>calc.interfaces.CalcHome</home>
| <remote>calc.ejb.Calc</remote>
| </ejb-ref>
| </web-app>
|
jboss-web.xml:
| <jboss-web>
| ...all your existing stuff here
| <ejb-ref>
| <ejb-ref-name>ejb/Calc</ejb-ref-name>
| <jndi-name>CalcHome</jndi-name>
| </ejb-ref>
| </jboss-web>
|
Once you add these to your web.xml and jboss-web.xml, you will be able to lookup the bean using java:comp/env/ejb/Calc. This lookup string is going to return you the remote interface of your bean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066430#4066430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066430
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - can't start server of Jboss 5.0.0 Beta2
by tingtingbell
Hi here,
I had difficulty to start server via MyEclips 5.5.1 GA. The following is the error. And I tried jdk 1.4, jdk 1.5 and jdk 1.6, no any luck.
Please help.
13:22:09,653 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Dowload/jboss-5.0.0.Beta2/jboss-5.0.0.Beta2/server/JBoss5/conf/bootstrap-beans.xml
Failed to boot JBoss:
java.lang.RuntimeException: Exception during Bootstrap
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:99)
at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
at org.jboss.Main.boot(Main.java:210)
at org.jboss.Main$1.run(Main.java:522)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/Dowload/jboss-5.0.0.Beta2/jboss-5.0.0.Beta2/server/JBoss5/conf/bootstrap-beans.xml
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:135)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.deploy(ProfileServiceBootstrap.java:295)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:222)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
... 5 more
Caused by: java.io.FileNotFoundException: C:\Dowload\jboss-5.0.0.Beta2\jboss-5.0.0.Beta2\server\JBoss5\conf\bootstrap-beans.xml
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
... 10 more
13:22:10,059 INFO [ServerImpl] JBoss SHUTDOWN
13:22:10,059 INFO [ServerImpl] Undeploying all packages
Shutting down Microcontainer
13:22:10,074 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066428#4066428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066428
18Â years, 9Â months