Boa tarde a todos.
Criei um app e empacotei como um ear no jboss 4.2.2.
Mas não estou conseguindo publicar a app.
É lançada a seguinte exception no load do spring mvc.
Caused by:
javax.naming.NameNotFoundException: RegistroDao not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
application.xml esta assim:
<?xml version="1.0" encoding="ASCII"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
version="5">
<display-name>app-ear</display-name>
<module>
<ejb>lib/dao.jar</ejb>
</module>
<module>
<web>
<web-uri>webApp.war</web-uri>
<context-root>/web</context-root>
</web>
</module>
<library-directory>lib</library-directory>
</application>
Mas este erro so é lançado quando faço deploy como ear. Já que quando publico separado.
Tudo funciona perfeitamente. :roll:
To precisando de uma luz. :XD:
att
