I have developed a very simple web application with Oracle JDeveloper 10.1.3.1 
j2ee edition (no adf). The application uses ejb 3.0 and jsf technology.
 
The application has two projects: Model and ViewController. To deploy the 
application I created an ejb jar deployment profile for the model project and a 
war deployment profile for the ViewController. Then I created a new 
?Deployment? project with an ear deployment profile to assemble the ejb jar and 
war deployment profiles. In this way I was able to deploy to standalone oc4j.
Now I want to deploy to jboss 4.0.5 GA, I mapped the jboss connection within 
jdev and selected ?deploy to jboss?. The ear file is transferred to the correct 
folder, but the application folder is not generated and the jboss log shows at 
least one error. It seems it expects a local-home tag in the web.xml (related 
to a session bean). 
Below I enclose the jboss log and my web.xml file. As you can see in the 
web.xml the <local-home> tag is really missing. But home interfaces should not 
be used in ejb 3.0.

I really need help on this topic, thank you. 

Mauro 


2006-12-01 16:20:51,250 WARN [org.jboss.util.NestedThrowable] Duplicate 
throwable nesting of same base type: class 
org.jboss.deployment.DeploymentException is assignable from: class 
org.jboss.deployment.DeploymentException
2006-12-01 16:20:51,250 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Problem in 
init 
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - 
nested throwable: (org.jboss.deployment.DeploymentException: expected one 
local-home tag)
at 
org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:749)
at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)


<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee";>
Empty web.xml file for Web Application

<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
html
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
txt
<mime-type>text/plain</mime-type>
</mime-mapping>
<jsp-config/>
<ejb-local-ref>
<ejb-ref-name>ejb/ProvaScrFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
provascr.business.ProvaScrFacadeLocal
<ejb-link>ProvaScrFacade</ejb-link>
</ejb-local-ref>
</web-app>


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991346#3991346

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991346
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to