-
1. Re: JBOSS-IDE and XDoclet
russray Dec 31, 2005 3:25 PM (in response to russray)okay I figured one out, the Xdoclet tag @web.ejb-ref was missing one attribute "link" so I fixed it. The second issue appears the JBOSS-IDE is not reading the @jboss.ejb-ref tag in the servlet.
Any suggestions? -
2. Re: JBOSS-IDE and XDoclet
russray Dec 31, 2005 3:55 PM (in response to russray)I am still for some reason getting the error:
[2005-12-31 14:38:42,500] [DEBUG] [org.jboss.web.WebModule] Starting failed jboss.web.deployment:war=FiboWeb.war,id=-1773394649
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: ejb-ref: ejb/Fibo, no ejb-link in web.xml and no jndi-name in jboss-web.xml)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:366)
Caused by: javax.naming.NamingException: ejb-ref: ejb/Fibo, no ejb-link in web.xml and no jndi-name in jboss-web.xml
at org.jboss.web.AbstractWebDeployer.linkEjbRefs(AbstractWebDeployer.java:668)
When i go look at the jboss-web.xml, the file is there but nothing is inside it other than the header and the tag<jboss-web> <!-- Resource Environment References --> <!-- For additional resouce-env-ref tags add a merge file called jbossweb-resource-env-ref.xml --> <!-- Resource references --> <!-- For additional resouce-ref tags add a merge file called jbossweb-resource-ref.xml --> <!-- EJB References --> <!-- For additional ejb-ref tags add a merge file called jbossweb-ejb-ref.xml --> <!-- EJB Local References --> </jboss-web>
When I look at the web.xml file, i see the link is making it.<ejb-ref > <description><![CDATA[Reference to the Fibo EJB]]></description> <ejb-ref-name>ejb/Fibo</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>jboss.tutorial.interfaces.FiboHome</home> <remote>jboss.tutorial.interfaces.Fibo</remote> <ejb-link>ejb/Fibo</ejb-link> </ejb-ref>
Any suggestions would be appreciated.
Russ -
3. Re: JBOSS-IDE and XDoclet
russray Dec 31, 2005 11:07 PM (in response to russray)Happy New Year! Well it's the New Year some place. :-)
Okay I figured it out. Several things were going on
1) The build script was building jars, ear, war files, but for some reason it was not moving them to the bin directory. I still don't know why this is, but the information was being read from the bin directory; therefore, I still was getting the same error even after I fixed the deployment descriptors.
2) The packaging build.xml did not have the correct information. I deleted it all and started over. This worked fine when I re-built the project.
It is deploying properly now. This was a very good tutorial. -
4. Re: JBOSS-IDE and XDoclet
soulinthemachine Apr 26, 2007 10:46 AM (in response to russray)Hi russray,
I'm having the exact same problem as you, only with the 2.0 Beta2 version of the jboss tools.
I added the link attribute as link= "ejb/Fibo" as you suggested and rebuilt but nothing happened :(
I added:
<ejb-ref>
<ejb-ref-name>ejb/Fibo</ejb-ref-name>
<jndi-name>ejb/Fibo</jndi-name>
</ejb-ref>
to jboss-web.xml, re-ran the packaging and this solved the problem.
However.. did you find a way to make it work using xdoclet rather than hacking the .xml files? And did you figure out why it didn't work in the first place?
Thanks in advance,
James