• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I have problem in deploy j2eetutorial's Duke bank app in Jboss-4.0.2

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,all
I've installed the jbossAS of jboss-4.0.2 on my computer,with the os of Win2K. I am getting started to learn jboss and want to use it in the project.I read the "Getting started with jboss4.0" from scratch.But when it referred to test deploying the j2eetutorial's Duke bank app demo in Jboss-4.0.2.I changed some configuration according to the material,that the configuartion info in hsqldb-ds.xml was altered. When the jboss is run again,there are so many warning info was generated on the console.

How to resolve it ,and how to deploy a WS in Jboss ?3x



part of it :
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.util.NestedSQLException: Could not create connection; - nes
ted throwable: (java.sql.SQLException: socket creation error); - nested throwabl
e: (org.jboss.resource.JBossResourceException: Could not create connection; - ne
sted throwable: (java.sql.SQLException: socket creation error))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:107)
at org.jboss.mq.pm.jdbc2.PersistenceManager.getConnection(PersistenceMan
ager.java:1325)
at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(Pers
istenceManager.java:218)
... 112 more
Caused by: org.jboss.resource.JBossResourceException: Could not create connectio
n; - nested throwable: (java.sql.SQLException: socket creation error)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.c
reateManagedConnection(LocalManagedConnectionFactory.java:161)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.cr
eateConnectionEventListener(InternalManagedConnectionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.ge
tConnection(InternalManagedConnectionPool.java:207)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BaseP
ool.getConnection(JBossManagedConnectionPool.java:534)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManage
dConnection(BaseConnectionManager2.java:395)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedCo
nnection(TxConnectionManager.java:297)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:447)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:874)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:103)
... 114 more
Caused by: java.sql.SQLException: socket creation error
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.c
reateManagedConnection(LocalManagedConnectionFactory.java:151)
... 122 more
21:40:10,562 INFO [ConnectionFactoryBindingService] Bound connection factory fo
r resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBin
ding,name=JmsXA to JNDI name 'java:JmsXA'
21:40:10,640 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/D
:/jboss-4.0.2/server/default/deploy/jmx-console.war/
21:40:10,843 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
State: FAILED
Reason: org.jboss.util.NestedSQLException: Could not create connection; - nest
ed throwable: (java.sql.SQLException: socket creation error); - nested throwable
: (org.jboss.resource.JBossResourceException: Could not create connection; - nes
ted throwable: (java.sql.SQLException: socket creation error))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS

ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error while checking if tabl
e aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLExce
ption: Could not create connection; - nested throwable: (java.sql.SQLException:
socket creation error); - nested throwable: (org.jboss.resource.JBossResourceExc
eption: Could not create connection; - nested throwable: (java.sql.SQLException:
socket creation error)))
I Depend On:
jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS

ObjectName: jboss.mq:service=StateManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
e.; - nested throwable: (org.jboss.util.NestedSQLException: Could not create con
nection; - nested throwable: (java.sql.SQLException: socket creation error); - n
ested throwable: (org.jboss.resource.JBossResourceException: Could not create co
nnection; - nested throwable: (java.sql.SQLException: socket creation error)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager

ObjectName: jboss.mq:service=PersistenceManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Could not get a connection for jdbc2 tab
le construction ; - nested throwable: (org.jboss.util.NestedSQLException: Could
not create connection; - nested throwable: (java.sql.SQLException: socket creati
on error); - nested throwable: (org.jboss.resource.JBossResourceException: Could
not create connection; - nested throwable: (java.sql.SQLException: socket creat
ion error)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.mq:service=StateManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Error creating connection to the databas
e.; - nested throwable: (org.jboss.util.NestedSQLException: Could not create con
nection; - nested throwable: (java.sql.SQLException: socket creation error); - n
ested throwable: (org.jboss.resource.JBossResourceException: Could not create co
nnection; - nested throwable: (java.sql.SQLException: socket creation error)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager

ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error while checking if tabl
e aleady exists HILOSEQUENCES; - nested throwable: (org.jboss.util.NestedSQLExce
ption: Could not create connection; - nested throwable: (java.sql.SQLException:
socket creation error); - nested throwable: (org.jboss.resource.JBossResourceExc
eption: Could not create connection; - nested throwable: (java.sql.SQLException:
socket creation error)))
I Depend On:
jboss:service=TransactionManager
jboss.jca:service=DataSourceBinding,name=DefaultDS

ObjectName: jboss.mq:service=PersistenceManager
State: FAILED
Reason: org.jboss.mq.SpyJMSException: Could not get a connection for jdbc2 tab
le construction ; - nested throwable: (org.jboss.util.NestedSQLException: Could
not create connection; - nested throwable: (java.sql.SQLException: socket creati
on error); - nested throwable: (org.jboss.resource.JBossResourceException: Could
not create connection; - nested throwable: (java.sql.SQLException: socket creat
ion error)))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
Depends On Me:
jboss.mq:service=DestinationManager

ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
State: FAILED
Reason: org.jboss.util.NestedSQLException: Could not create connection; - nest
ed throwable: (java.sql.SQLException: socket creation error); - nested throwable
: (org.jboss.resource.JBossResourceException: Could not create connection; - nes
ted throwable: (java.sql.SQLException: socket creation error))
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS


21:40:11,062 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-808
0
21:40:11,265 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
21:40:11,296 INFO [JkMain] Jk running ID=0 time=0/78 config=null
21:40:11,312 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4
_0_2 date=200505022023)] Started in 53s:484ms
21:44:56,796 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatI
d=257, GlobalId=xxt/1, BranchQual=, localId=1] timed out. status=STATUS_ACTIVE
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The main cause seems like wrong configuration of the hsqldb-ds.xml. All the errors following the connection error message are from objects depending on the hsqldb connection.

So, make sure your datasource configuration is correct. The local-tx-datasource node should depends on another mbean declaration in the same file. Check to see whether or not commented out the referred mbean part.


[ October 10, 2005: Message edited by: Heonkoo Lee ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic