Win a copy of Fixing your Scrum this week in the Agile forum!

DVVN Sudhakara Rao

Greenhorn
+ Follow
since Oct 04, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by DVVN Sudhakara Rao

HI,
I want to know how to open a popup window with struts action not using javascript. In my struts application I have a jsp page which have 4 buttons with different actions. I want to open a popup window when this aciton is invoked.I don't want to use javascipt.
Sorry for my Bad English. I hope you got the problem right.
Thanks in Advance
16 years ago
Hi,
In my JSP Page I have a html table. The table contains rows which are fetched from the database dynamically. I want to set different colors for the rows. Say for even number of rows I want to set red color. for odd number os rows I want to set green color. Is it possible to set like that. If yes could please anyone help me out how to do?Sorry for my bad Engling.I hope you got the problem understand.
Thanks in Advance
Hi,
I have a applicaiton using struts. In my jsp page I want to give the users option to upload a Image/emotoicon. Can any body guide me how can we achieve it?
16 years ago
Hi,
I want to generate a html ptions values from the database.My application have a jsp page in which there is a html:select tag. I want to generate the values from the database. Any examples with code.
Thanks in advance
16 years ago
Hi Pradeep,
I tried your suggestion. But still I am getting the same problem.
16 years ago
Hi Nicolas
I already have struts.jar in my classpath.
C:\jboss-3.2.5\server\default\deploy\Sample.war\WEB-INF\lib
16 years ago
Hi,
I am trying to configure Datasource for my applicaiton.I am using struts. My Jboss version is 3.2.5. I am using postgres. I place my postgres jdbc driver in server/defafult/deploy/lib.
My Struts-config.xml file is as below.
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>

<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="userDB">
<set-property
property="driverClassName"
value="org.postgresql.Driver" />
<set-property
property="url"
value="jdbc ostgresql://192.168.1.25:5432/sudhakar" />
<set-property
property="username"
value="postgres" />
<set-property
property="password"
value="postgres" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="true" />
<set-property
property="defaultReadOnly"
value="false" />
</data-source>
</data-sources>

<form-beans>
<form-bean
name="loginForm"
type="com.wiley.LoginForm"/>
<form-bean
name="employeeForm"
type="com.wiley.EmployeeForm"/>
</form-beans>

<global-forwards>
<forward name="login" path="/login.jsp"/>
</global-forwards>

<action-mappings type="com.wiley.EmployeesActionMapping">

<action
path="/Login"
type="com.wiley.LoginAction"
name="loginForm"
input="/login.jsp"
validate="true"
scope="request">

<forward name="success" path="/EmployeeList.do"/>
</action>

<action
path="/EmployeeList"
type="com.wiley.EmployeeListAction"
scope="request">

<set-property property="loginRequired" value="true"/>
<forward name="success" path="/employeelist.jsp"/>
</action>

<action
path="/Edit"
type="com.wiley.GetEmployeeAction"
name="employeeForm"
scope="request"
validate="false">

<set-property property="loginRequired" value="true"/>
<forward name="success" path="/editemployee.jsp"/>
<forward name="error" path="/EmployeeList.do"/>
</action>

<action
path="/EditEmployee"
type="com.wiley.EditEmployeeAction"
name="employeeForm"
scope="request"
validate="true">

<set-property property="loginRequired" value="true"/>
<forward name="error" path="/editemployee.jsp"/>
<forward name="success" path="/EmployeeList.do"/>
</action>

<action
path="/Delete"
type="com.wiley.DeleteEmployeeAction"
scope="request"
validate="false">

<set-property property="loginRequired" value="true"/>
<forward name="error" path="/EmployeeList.do"/>
<forward name="success" path="/EmployeeList.do"/>
</action>

<action
path="/EditEmployee"
type="com.wiley.EditEmployeeAction"
name="employeeForm"
scope="request"
validate="true">

<set-property property="loginRequired" value="true"/>
<forward name="error" path="/editemployee.jsp"/>
<forward name="success" path="/EmployeeList.do"/>
</action>


</action-mappings>

<message-resources parameter="application" />
<!--
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
-->
</struts-config>

My postgres-ds.xml is as follows.
<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->

<!-- $Id: postgres-ds.xml,v 1.1.2.1 2003/09/05 16:38:24 patriot1burke Exp $ -->
<!-- ==================================================================== -->
<!-- Datasource config for Postgres -->
<!-- ==================================================================== -->


<datasources>
<local-tx-datasource>
<jndi-name>PostgresDS</jndi-name>
<connection-url>jdbc ostgresql://192.168.1.25:5432/sudhakar</connection-url>;
<driver-class>org.postgresql.Driver</driver-class>
<user-name>postgres</user-name>
<password>postgres</password>
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->

<!-- sql to call on an existing pooled connection when it is obtained from pool
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->

</local-tx-datasource>

</datasources>

I am getting the follwing error.
java.lang.NoClassDefFoundError: org/apache/struts/util/GenericDataSource

Can Any body explain why I am getting this error.
Thanks in Advance
16 years ago
Hi,
Can any body explain how to configure eclipse for jboss. I want to develop struts applications using eclipse as my IDE. I am new to Eclipse.
Thanks in advance
16 years ago
Hi
For compiling servlets you need servlet class files. In JBOSS you will find that jar file at C:\jboss-3.2.5\server\default\lib\jboss-j2ee.jar. Put that jar file in your class path. I think that will work for you. Any problems come back.
16 years ago
I followed all the steps. I am getting an error Unable to connect to the database. In JBOSS Console it is showing the following errors.

at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
at org.jboss.Main.boot(Main.java:145)
at org.jboss.Main$1.run(Main.java:399)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.SecurityException: Invalid authentication attempt, principa
l=null
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
t(BaseConnectionManager2.java:666)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:495)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:102)
at org.jboss.mq.pm.jdbc2.PersistenceManager.getConnection(PersistenceMan
ager.java:1267)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(Pers
istenceManager.java:216)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceMana
ger.java:1360)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
... 87 more
10:29:33,453 INFO [JmsXA] Bound connection factory for resource adapter for Con
nectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA'
10:29:33,593 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C
:/jboss-3.2.5/server/default/deploy/jmx-console.war/
10:29:34,859 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C
:/jboss-3.2.5/server/default/tmp/deploy/tmp25304web-console.war/
10:29:35,468 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.5/ser
ver/default/deploy/petstore.ear
10:29:37,640 WARN [DeploymentInfo] Only the root deployment can set the loader
repository, ingoring config=null
10:29:37,906 INFO [EjbModule] Deploying TheInventory
10:29:38,171 INFO [EjbModule] Deploying TheCart
10:29:38,203 INFO [EjbModule] Deploying TheCatalog
10:29:38,359 INFO [EjbModule] Deploying TheProfileMgr
10:29:38,437 INFO [EjbModule] Deploying TheMailer
10:29:38,531 INFO [EjbModule] Deploying TheShoppingClientController
10:29:38,625 INFO [EjbModule] Deploying TheSignOn
10:29:38,750 INFO [EjbModule] Deploying TheOrder
10:29:38,750 INFO [EjbModule] Deploying TheAccount
10:29:38,765 INFO [EjbModule] Deploying TheCustomer
10:29:38,875 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/inventoryEjb.jar
10:29:38,968 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/shoppingcartEjb.jar
10:29:39,031 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/personalizationEjb.jar
10:29:39,046 WARN [StatelessSessionContainer] No resource manager found for mai
l/MailSession
10:29:39,078 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/mailerEjb.jar
10:29:39,109 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/petstoreEjb.jar
10:29:39,156 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/signonEjb.jar
10:29:39,234 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp25305petstore.ear-contents/customerEjb.jar
10:29:39,281 INFO [TomcatDeployer] deploy, ctxPath=/estore, warUrl=file:/C:/jbo
ss-3.2.5/server/default/tmp/deploy/tmp25305petstore.ear-contents/petstore.war/
10:29:39,546 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-3.2.5/
server/default/deploy/petstore.ear
10:29:39,578 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
org.jboss.deployment.DeploymentInfo@83207d9a { url=file:/C:/jboss-3.2.5/server/d
efault/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.2.5/server/default/deploy/web.xml
lastDeployed: 1097729979578
lastModified: 1097729979562
mbeans:

Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@298761db { url=file:/C:/jboss-3.2.5/server/d
efault/deploy/cloudscape-service.xml }
deployer: org.jboss.deployment.SARDeployer@12bb7e0
status: null
state: FAILED
watch: file:/C:/jboss-3.2.5/server/default/deploy/cloudscape-service.xml
lastDeployed: 1097729968203
lastModified: 1097729968171
mbeans:

org.jboss.deployment.DeploymentInfo@83207d9a { url=file:/C:/jboss-3.2.5/server/d
efault/deploy/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.2.5/server/default/deploy/web.xml
lastDeployed: 1097729979578
lastModified: 1097729979562
mbeans:

MBeans waiting for other MBeans:
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
state: CREATED
I Depend On: jboss.mq:service=Invoker
jboss.web:service=WebServer

Depends On Me:
ObjectName: jboss.mq:service=StateManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
MBeanException: org.jboss.mq.SpyJMSException: Error creating connection to the d
atabase.; - nested throwable: (java.lang.SecurityException: Invalid authenticati
on attempt, principal=null)
Cause: org.jboss.mq.SpyJMSException: Error creating connection to the database.;
- nested throwable: (java.lang.SecurityException: Invalid authentication attemp
t, principal=null)
ObjectName: jboss.mq:service=DestinationManager
state: CREATED
I Depend On: jboss.mq:service=MessageCache
jboss.mq:service=PersistenceManager
jboss.mq:service=StateManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq.destination:service=Queue,name=A
jboss.mq.destination:service=Queue,name=B
jboss.mq.destination:service=Queue,name=C
jboss.mq.destination:service=Queue,name=D
jboss.mq.destination:service=Queue,name=ex
jboss.mq:service=SecurityManager
jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq:service=PersistenceManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attem
pt, principal=null
Cause: java.lang.SecurityException: Invalid authentication attempt, principal=nu
ll
ObjectName: jboss.mq.destination:service=Topic,name=testTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=testQueue
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=A
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=B
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=C
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=D
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=ex
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq:service=Invoker
state: CREATED
I Depend On: jboss.mq:service=TracingInterceptor

Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq:service=InvocationLayer,type=UIL2

ObjectName: jboss.mq:service=TracingInterceptor
state: CREATED
I Depend On: jboss.mq:service=SecurityManager

Depends On Me: jboss.mq:service=Invoker

ObjectName: jboss.mq:service=SecurityManager
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq:service=TracingInterceptor
jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq.destination:service=Queue,name=DLQ
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=JVM
state: CREATED
I Depend On: jboss.mq:service=Invoker

Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
state: CREATED
I Depend On: jboss.mq:service=Invoker

Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.mq:service=StateManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
MBeanException: org.jboss.mq.SpyJMSException: Error creating connection to the d
atabase.; - nested throwable: (java.lang.SecurityException: Invalid authenticati
on attempt, principal=null)
Cause: org.jboss.mq.SpyJMSException: Error creating connection to the database.;
- nested throwable: (java.lang.SecurityException: Invalid authentication attemp
t, principal=null)
ObjectName: jboss.mq:service=PersistenceManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attem
pt, principal=null
Cause: java.lang.SecurityException: Invalid authentication attempt, principal=nu
ll

10:29:40,515 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3
_2_5 date=200406251954)] Started in 21s:62ms
10:29:40,515 INFO [Tomcat5] Saw org.jboss.system.server.started notification, s
tarting connectors
10:29:40,562 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
0
10:29:40,734 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
10:29:40,750 INFO [JkMain] Jk running ID=0 time=0/79 config=null
10:34:32,609 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl [Format
Id=257, GlobalId=satrun//1, BranchQual=] timed out. status=STATUS_ACTIVE


Can any body help me out
Thanks in advance
16 years ago
Hi,
I am trying to deploy petstore application in JBOSS.I deployed petstore.ear file in jboss_home/server/default/deploy. When I started the server it showing some erors like this

at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:837)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
at org.jboss.Main.boot(Main.java:145)
at org.jboss.Main$1.run(Main.java:399)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.SecurityException: Invalid authentication attempt, principa
l=null
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
t(BaseConnectionManager2.java:666)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:495)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:102)
at org.jboss.mq.pm.jdbc2.PersistenceManager.getConnection(PersistenceMan
ager.java:1267)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(Pers
istenceManager.java:216)
at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceMana
ger.java:1360)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
java:60)
... 87 more
16:06:10,500 INFO [JmsXA] Bound connection factory for resource adapter for Con
nectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA'
16:06:11,484 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C
:/jboss-3.2.5/server/default/deploy/jmx-console.war/
16:06:12,843 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C
:/jboss-3.2.5/server/default/tmp/deploy/tmp28658web-console.war/
16:06:13,406 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.5/ser
ver/default/deploy/Petstore/petstore.ear
16:06:16,156 WARN [DeploymentInfo] Only the root deployment can set the loader
repository, ingoring config=null
16:06:16,500 INFO [EjbModule] Deploying TheCart
16:06:16,625 INFO [EjbModule] Deploying TheCatalog
16:06:16,812 INFO [EjbModule] Deploying TheOrder
16:06:16,875 INFO [EjbModule] Deploying TheAccount
16:06:16,890 INFO [EjbModule] Deploying TheCustomer
16:06:17,046 INFO [EjbModule] Deploying TheInventory
16:06:17,125 INFO [EjbModule] Deploying TheMailer
16:06:17,218 INFO [EjbModule] Deploying TheProfileMgr
16:06:17,312 INFO [EjbModule] Deploying TheSignOn
16:06:17,390 INFO [EjbModule] Deploying TheShoppingClientController
16:06:17,500 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/shoppingcartEjb.jar
16:06:17,625 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/customerEjb.jar
16:06:17,671 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/inventoryEjb.jar
16:06:17,687 WARN [StatelessSessionContainer] No resource manager found for mai
l/MailSession
16:06:17,718 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/mailerEjb.jar
16:06:17,750 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/personalizationEjb.jar
16:06:17,781 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/signonEjb.jar
16:06:17,828 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/default/t
mp/deploy/tmp28659petstore.ear-contents/petstoreEjb.jar
16:06:17,843 INFO [TomcatDeployer] deploy, ctxPath=/estore, warUrl=file:/C:/jbo
ss-3.2.5/server/default/tmp/deploy/tmp28659petstore.ear-contents/petstore.war/
16:06:18,093 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-3.2.5/
server/default/deploy/Petstore/petstore.ear
16:06:18,109 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@298761db { url=file:/C:/jboss-3.2.5/server/d
efault/deploy/cloudscape-service.xml }
deployer: org.jboss.deployment.SARDeployer@12bb7e0
status: null
state: FAILED
watch: file:/C:/jboss-3.2.5/server/default/deploy/cloudscape-service.xml
lastDeployed: 1097663765484
lastModified: 1097663765453
mbeans:

MBeans waiting for other MBeans:
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
state: CREATED
I Depend On: jboss.mq:service=Invoker
jboss.web:service=WebServer

Depends On Me:
ObjectName: jboss.mq:service=StateManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
MBeanException: org.jboss.mq.SpyJMSException: Error creating connection to the d
atabase.; - nested throwable: (java.lang.SecurityException: Invalid authenticati
on attempt, principal=null)
Cause: org.jboss.mq.SpyJMSException: Error creating connection to the database.;
- nested throwable: (java.lang.SecurityException: Invalid authentication attemp
t, principal=null)
ObjectName: jboss.mq:service=DestinationManager
state: CREATED
I Depend On: jboss.mq:service=MessageCache
jboss.mq:service=PersistenceManager
jboss.mq:service=StateManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq.destination:service=Queue,name=A
jboss.mq.destination:service=Queue,name=B
jboss.mq.destination:service=Queue,name=C
jboss.mq.destination:service=Queue,name=D
jboss.mq.destination:service=Queue,name=ex
jboss.mq:service=SecurityManager
jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq:service=PersistenceManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attem
pt, principal=null
Cause: java.lang.SecurityException: Invalid authentication attempt, principal=nu
ll
ObjectName: jboss.mq.destination:service=Topic,name=testTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=testQueue
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=A
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=B
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=C
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=D
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq.destination:service=Queue,name=ex
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me:
ObjectName: jboss.mq:service=Invoker
state: CREATED
I Depend On: jboss.mq:service=TracingInterceptor

Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq:service=InvocationLayer,type=UIL2

ObjectName: jboss.mq:service=TracingInterceptor
state: CREATED
I Depend On: jboss.mq:service=SecurityManager

Depends On Me: jboss.mq:service=Invoker

ObjectName: jboss.mq:service=SecurityManager
state: CREATED
I Depend On: jboss.mq:service=DestinationManager

Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq:service=TracingInterceptor
jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq.destination:service=Queue,name=DLQ
state: CREATED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=JVM
state: CREATED
I Depend On: jboss.mq:service=Invoker

Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
state: CREATED
I Depend On: jboss.mq:service=Invoker

Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.mq:service=StateManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
MBeanException: org.jboss.mq.SpyJMSException: Error creating connection to the d
atabase.; - nested throwable: (java.lang.SecurityException: Invalid authenticati
on attempt, principal=null)
Cause: org.jboss.mq.SpyJMSException: Error creating connection to the database.;
- nested throwable: (java.lang.SecurityException: Invalid authentication attemp
t, principal=null)
ObjectName: jboss.mq:service=PersistenceManager
state: FAILED
I Depend On: jboss.jca:service=LocalTxCM,name=DefaultDS

Depends On Me: jboss.mq:service=DestinationManager
RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attem
pt, principal=null
Cause: java.lang.SecurityException: Invalid authentication attempt, principal=nu
ll

16:06:19,000 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3
_2_5 date=200406251954)] Started in 20s:282ms
16:06:19,000 INFO [Tomcat5] Saw org.jboss.system.server.started notification, s
tarting connectors
16:06:19,046 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
0
16:06:19,203 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
16:06:19,203 INFO [JkMain] Jk running ID=0 time=0/110 config=null
16:11:09,656 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl [Format
Id=257, GlobalId=satrun//1, BranchQual=] timed out. status=STATUS_ACTIVE


Can any body help me out how to solve this problem.
Thanks in advance
16 years ago
Hi,
Can any body help me or give guidelines how to configure java petstore application in jboss. Thanks in Advance
Sudhakar
16 years ago
HI,
Is there any standard folder structure to follow in JBOSS. My application have jsp's,servelts and ejbs. Thanks in Advance.
16 years ago
I think its server.xml not web.xml
16 years ago
I think it is a stupid question. Where can i get the JBOSS Server for Linux operating system.
16 years ago