wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss" Watch "Jboss" New topic
Author

Jboss

Sujith manikkothu
Greenhorn

Joined: Oct 16, 2004
Posts: 12
My application is working fine in jboss-3.0.8 but not in jboss-3.2.6 .
Is there any additional settings for jboss-3.2.6??
For jboss-3.0.8 i have jus copied the .ear file into default/deploy and the sql-connector.jar file into lib..Nothing i have done in xml files.And it is working fine in 3.0.8...
In jboss 3.2.6 the .ear file is not at all getting deployed properly.
The server shows:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.web.deployment:war=DashboardWeb.war,id=127728629
state: FAILED
I Depend On:
Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable javax.naming.NamingException:resource-ref:
jdbc/mySql has no valid JNDI binding. Check the jboss-web/resource-ref.)
Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/mySql has no valid JNDI binding. Check the jboss-web/resource-ref.)
ObjectName: jboss.j2ee:service=EARDeployment,url='Dashboard20Oct2004.ear'
state: CREATED
I Depend On:
Depends On Me:

20:28:27,500 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
0
20:28:27,671 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
20:28:27,718 INFO [JkMain] Jk running ID=0 time=0/62 config=null
20:28:27,734 INFO [Server] JBoss (MX MicroKernel) [3.2.6 (build: CVSTag=JBoss_3
_2_6 date=200410140106)] Started in 49s:671ms

What will be the problem??
Thanks,
Sujith
Shamu Somasundaram
Ranch Hand

Joined: Aug 25, 2004
Posts: 41
Hi,
Try the following. Hope it might help you out. We faced a similar kind of problem when we migrated to JBoss-3.2.5.

1.There is a need to define an another DataSource description file to make use of Connection Pooling concept of J2EE. Older approach of defining application-name-all-service.xml doesn�t seems to be working with the new JBOSS version.

Eg:
<datasources>
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc racle:thin:@XXXX:XXXX:XXXXX</connection url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>xx</user-name>
<password>xx</password>
<min-pool-size>0</min-pool-size>
<max-pool-size>50</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</local-tx-datasource>
</datasources>


2.The Web.xml settings have to be changed in the application context to disable tag handler pooling.

<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet
</servlet-class>
<init-param>
<param-name>enablePooling</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>

3.Due to security considerations the invoker servlet default URL pattern for all unmapped servlets will be removed and separate mapping will be provided for individual servlets in WEB.xml


<servlet-mapping>
<servlet-name>zonetest2</servlet-name>
<url-pattern>/servlet/zonetest2</url-pattern>
</servlet-mapping>


Thanks,
Shanmugavel.
rogel garcia
Ranch Hand

Joined: Dec 19, 2003
Posts: 41
Try putting a file in your WEB-INF folder (jboss.xml)
with this contents


SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss