[Installation, Configuration & DEPLOYMENT] - Re: war file exploded in tmp folder
by m_bojarski
| <?xml version='1.0' encoding='ISO-8859-1' ?>
| <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
| "http://java.sun.com/dtd/web-app_2_3.dtd">
| <web-app>
| <listener>
| <listener-class>trivia.ContextListener</listener-class>
| </listener>
| <Servlet>
| <Servlet-name>analyzeservlet</Servlet-name>
| <Servlet-class>trivia.AnalyzeServlet</Servlet-class>
| <load-on-startup>1</load-on-startup>
| </Servlet>
| <Servlet>
| <Servlet-name>controlservlet</Servlet-name>
| <Servlet-class>trivia.ControlServlet</Servlet-class>
| <load-on-startup>1</load-on-startup>
| </Servlet>
| <Servlet-mapping>
| <Servlet-name>analyzeservlet</Servlet-name>
| <url-pattern>/verify.html</url-pattern>
| </Servlet-mapping>
| <Servlet-mapping>
| <Servlet-name>controlservlet</Servlet-name>
| <url-pattern>/control.html</url-pattern>
| </Servlet-mapping>
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| </welcome-file-list>
| </web-app>
|
That is my web.xml file. It is correct because I have deployed the same WAR file using Tomcat and Resin and it works successfully.
So in my index.html I have a form and action is action='control.html'
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068827#4068827
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068827
18Â years, 8Â months
[JBoss Portal] - Unable to Access a preference values from portlet-instances.
by shanportal
I have a portlet, I have defined portlet preference in portlet.xml and portlet-instances.xml, How ever I am unable to access the preference value set in the portlet-instance.xml. While Deploying the war file i am getting the following error.
Any help is highly appreciated.
13:14:54,305 INFO [PortletAppDeployment] Parsing /CMSRenderer/jboss-portlet.xml
13:14:54,335 INFO [PortletAppDeployment] These instances have been found in -object.xml, you should put them in the file C:\bgnew\jboss-4.2.0.GA\server\portal\.\tmp\deploy\tmp21190CMSRenderer-exp.war\WEB-INF/portlet-instances.xml
13:14:54,335 INFO [PortletAppDeployment] <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<instance-id>cmsrenderInstance</instance-id>
<portlet-ref>CMSRender</portlet-ref>
13:14:54,705 INFO [TomcatDeployer] deploy, ctxPath=/download, warUrl=.../tmp/deploy/tmp21191download-exp.war/
13:14:55,316 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
13:14:55,927 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8180
13:14:55,977 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8109
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068824#4068824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068824
18Â years, 8Â months
[EJB/JBoss] - Re: EAR does not correctly deploy EJB3 MDB
by tnine
Just for a follow up, it does work with my 2.0 descriptions. Am I missing something with my 3.0 annotations?
ejb-jar.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
| "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
| <ejb-jar>
| <description>Message Driven Bean</description>
| <display-name>Statements Message Driven Bean</display-name>
|
| <!--Define our EJBs-->
| <enterprise-beans>
| <!-- Define our MDB for statements-->
| <message-driven>
| <description>
| Bean to access messages statement input queue
| </description>
| <display-name>Statement Bean</display-name>
|
| <ejb-name>ejb/StatementBean</ejb-name>
|
| <ejb-class>
| com.purdueefcu.statements.mdb.StatementMessageDrivenBean
| </ejb-class>
|
| <transaction-type>Container</transaction-type>
| <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
| <message-driven-destination>
| <destination-type>javax.jms.Queue</destination-type>
| </message-driven-destination>
| <resource-ref>
| <res-ref-name>statmentinput</res-ref-name>
| <res-type>javax.jms.QueueConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
|
|
| </message-driven>
| </enterprise-beans>
|
| <!-- make our EJB an XA transaction -->
| <assembly-descriptor>
| <container-transaction>
| <method>
| <ejb-name>ejb/StatementBean</ejb-name>
| <method-name>*</method-name>
| </method>
| <trans-attribute>Required</trans-attribute>
| </container-transaction>
| </assembly-descriptor>
| </ejb-jar>
|
|
jboss.xml
| <?xml version='1.0' encoding='UTF-8' ?>
| <!DOCTYPE jboss PUBLIC
| "-//JBoss//DTD JBOSS 4.0//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
|
| <jboss>
| <enterprise-beans>
| <message-driven>
| <ejb-name>ejb/StatementBean</ejb-name>
| <destination-jndi-name>queue/StatementInput</destination-jndi-name>
| <resource-ref>
| <res-ref-name>statmentinput</res-ref-name>
| <jndi-name>ConnectionFactory</jndi-name>
| </resource-ref>
| </message-driven>
| </enterprise-beans>
| </jboss>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068816#4068816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068816
18Â years, 8Â months