[Persistence, JBoss/CMP, Hibernate, Database] - XA Transactions Warnings on JBoss startup.
by russray
I am hoping someone can assist me. I have been working through setting up JBoss 4.0.5 with SQL Server2000 using a XA transaction. I am really new to JBOSS.. :-)
I have gotten the data source setup using this information in my -ds.xml.
| <datasources>
| <xa-datasource>
| <jndi-name>jdbc/pidbdev</jndi-name>
| <track-connection-by-tx/>
| <isSameRM-override-value>false</isSameRM-override-value>
| <xa-datasource-class>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</xa-datasource-class>
| <xa-datasource-property name="ServerName">me_server</xa-datasource-property>
| <xa-datasource-property name="DatabaseName">me_db</xa-datasource-property>
| <xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
| <xa-datasource-property name="User">p1</xa-datasource-property>
| <xa-datasource-property name="Password">p1</xa-datasource-property>
| <min-pool-size>5</min-pool-size>
| <max-pool-size>20</max-pool-size>
|
| <metadata>
| <type-mapping>MS SQLSERVER2000</type-mapping>
| </metadata>
| <check-valid-connection-sql>SELECT * FROM invalidate</check-valid-connection-sql>
| </xa-datasource>
| </datasources>
|
When the server comes up, I can see the SQL Server connection is being made, but soon after I get several warnings (all the same). I do not understand. Below is a typical warning message:
| 15:14:16,269 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalI d=rray-wxp/1, BranchQual=, localId=1] errorCode=XAER_RMERR javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_commit (4 0000000) returns -4 at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
|
|
I am not really sure I understand what is happening inside JBoss that would give me a warning while the server is starting up. I was hoping someone inside this forum would share with me their experience from this area. Can someone please carlify this for me?
Thanks in advance for taking the time to read my post.
Russ
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987144#3987144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987144
19Â years, 7Â months
[JBoss Seam] - jboss as/seam problem
by nittm
hi.
in my project i have the front page (home.xhtml) and in it i have this:
| <ui:include src="/WEB-INF/includes/login.xhtml">
| <ui:param name="funk" value="loginLink" />
| </ui:include>
|
in the login.xhtml i have this:
| <c:when test="#{currentUser == null}">
| <h:form>
| <li><h:commandLink action="#{editUser.register}">register</h:commandLink></li>
| </h:form>
| </c:when>
and currentUser is null.
the page is working just as it should but when i click the link i get this error:
anonymous wrote : javax.faces.FacesException: Error calling action method of component with id _id4:_id6
and in the jboss server tab i get this:
anonymous wrote : Caused by: javax.faces.el.EvaluationException: /WEB-INF/includes/login.xhtml @10,56 action="#{editUser.register}": javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires value for component: editUser.user
now, in the editUser i have this:
| ....
| @Name("editUser")
| ....
| @In(create=true)
| @Out
| User user;
| ....
|
and in the User object i have a default constructer.
any idea of why i get this error?? why can't it find the editUser.user ?
i took the seam-dvd example and i'm trying to do exactly the same thing and it looks the same to me but the dvd example works just fine and my project generates the above error....
i'm using jboss as version 4.0.5.GA and jboss seam version 1.0.1.GA.
thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987138#3987138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987138
19Â years, 7Â months
[Management, JMX/JBoss] - Re: Shutting down JBOSS hangs..
by svenkataraman_celequest
One more update...
There is a connection timed out exception during Coyote shutdown. Looks to be related to the multiple network cards situation. Any clues?
00:20:24,656 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
00:20:24,657 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=file:/usr/master/jboss-3.2.6/server/default/deploy/management/web-console.war/
00:20:24,671 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=file:/usr/master/jboss-3.2.6/server/default/deploy/jmx-console.war/
00:23:33,663 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0-8080
00:26:42,641 ERROR [CoyoteConnector] Protocol handler pause failed
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:207)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
at org.apache.jk.server.JkMain.pause(JkMain.java:657)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202)
at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
at org.jboss.web.tomcat.tc5.StandardService.stop(StandardService.java:583)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.web.tomcat.tc5.Tomcat5.stopService(Tomcat5.java:398)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:319)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:223)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
at $Proxy17.stop(Unknown Source)
at org.jboss.system.ServiceController.stop(ServiceController.java:496)
at org.jboss.system.ServiceController.stop(ServiceController.java:487)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.stop(Unknown Source)
at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:285)
at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:498)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:471)
at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:358)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:903)
at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:878)
at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:865)
00:26:43,645 INFO [StandardService] Stopping service jboss.web
00:26:43,646 INFO [StandardHost] Create Host deployer for direct deployment ( non-jmx )
00:26:43,651 INFO [StandardHostDeployer] Removing web application at context path /jbossmq-httpil
00:26:43,653 INFO [StandardHostDeployer] Removing web application at context path /invoker
00:26:43,656 INFO [StandardHostDeployer] Removing web application at context path
00:26:43,658 INFO [Http11Protocol] Stopping Coyote HTTP/1.1 on http-0.0.0.0-8080
00:26:43,661 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=file:/usr/master/jboss-3.2.6/server/default/deploy/http-invoker.sar/invoker.war/
00:26:43,662 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=file:/usr/master/jboss-3.2.6/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
00:26:43,664 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=file:/usr/master/jboss-3.2.6/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
00:26:43,721 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
00:26:44,548 INFO [HypersonicDatabase] Database standalone closed clean
Shutting down
Shutdown complete
Halting VM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987129#3987129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987129
19Â years, 7Â months