[jboss-user] [JCA] - Re: HOWTO: Pool connection management of my managed connecti
Salut vickyk, thank you for your helpful reply. In the meantime i was able to connect with my external legacy system. The pooling mechanism is working without any problem. >From my pont of view, understanding the JCA helps to get a closer view to the JEE architecture. Anyway, the information is quite rare. Coding a JCA adapter is a bit like coding a device-driver on UNIX for muliple user access. So fine ... "vickyk" wrote : "groovie" wrote : I think, this is the issue of the ConnectionPool-Manager, | | who will disables or remove the connection from the pool | | and try to establish a new one (using my ManagedConnection) | | | Yes Jboss JCA code will call the ManagedConnection's createManagedConnection(..) and matchManagedConnection() while creating the new connection from the pool and retreiving the existing connection from the Pool. | Yes! Everything does work fine for me, but i noticed the invocation of the destroy-Methode in the connectors ManagedConnection implementation. >From time to time, the JBoss Connection Manager is willing to kill a connection to the legacy systems. Anyway, this does not injure the connectivity, cause the connector does quickly perform a reconnect, but i would like to know the reason for behavour. Inside the service-XML file i noticed the following assignments inside the ManagedConnectionPool tag: 5000 15 Are one of the both settings responsible for the destroy of vital connections ? Thank you for your support Christian Groove View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269932#4269932 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269932 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Re: Cannot find service endpoint target
Salut mecs, the problem hints to an inavailable ressource on the session bean, like a delayed of unavailable datasource.You shold check the server.log for any kind of ressource problems. In our case, our web-services suddently ran into the same problem,. throwing the same exception. We are using an Oracle-DB for to persist our data. Sombody changed the OracleDialect to OracleDialect or another one finally we hat the problems with our webservice. Some week later i noticed error messages (only one line) like this one: server.log.2009-10-02:2009-10-02 11:28:36,575 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect server.log.2009-10-02:2009-10-02 11:39:37,602 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.OracleDialect server.log.2009-10-02:2009-10-02 11:39:37,602 WARN [org.hibernate.dialect.Oracle9Dialect] The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead Despite the fact, that this are only warnings, i guess, i found that smoking gun. Assumption: The error/warning condition slowed down the session bean, causing the WS unsuccessfully searching for a session bean, that has not been started. I switched to the Oracle10gDialect and the problem disappeared! Voila View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259234#4259234 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: JCA Problem: java.lang.IllegalStateException: Trying to
Salut mc's, the solution is quite simple. The (logical) close operation, that issues a closeSend of the ConnectionEvent class has to attach the connection handle to the ConnectionEvent, before broadcasting this event. so: ce = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED) ; (new) ce.setConnectionHandle(connection) ; does help me in the closeHandle method. Tanks Groovie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248257#4248257 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2 and JAVA6, compatibility matrix available
Salut Peter, > Why are you using 4.2.1? The latest 4.2 version is 4.2.3 and there > is a download available for 4.2.3 that specifically works with JDK6. The 4.2.1 Version looks like the professional version shipped by Jboss. One of our productive systems does run on a 4.2.1. I assumed, that this one is the most recent one shipped as rpm pakages. Am i right or not ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248112#4248112 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248112 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - JCA Problem: java.lang.IllegalStateException: Trying to retu
Dear Sirs, i am developping my very first outbound connector and have still a litte problem on closing my connection handle. Aquireing and use of connection from a pool does work without any problem. Closing the connection from a session acutally cause a problem. I guess i have overseen something. The runtime environment: Operating-System: Fedora-11 Linux JAVA: Java version: 1.6.0_0,Sun Microsystems Inc. Java VM: OpenJDK Server VM 14.0-b15,Sun Microsystems Inc. (shipped with this Linux-OS) Jboss:4.2.3.GA Here is the stack-trace from the closing-thread: 06:59:17,744 INFO [NoTxConnectionManager] Throwable from unregisterConnection java.lang.IllegalStateException: Trying to return an unknown connection2! null at org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection(CachedConnectionManager.java:342) at org.jboss.resource.connectionmanager.NoTxConnectionManager$NoTxConnectionEventListener.connectionClosed(NoTxConnectionManager.java:88) at de.dialog_leben.bfs.risikopruefung.connector.normrisk.resource.ManagedNrConnection.closeHandle(ManagedNrConnection.java:280) at de.dialog_leben.bfs.risikopruefung.connector.normrisk.resource.NormRiskConnectionImpl.close(NormRiskConnectionImpl.java:30) at de.dialog_leben.bfs.risikopruefung.business.test.normrisk.NRConnectorTest.testSimpleAccess(NRConnectorTest.java:89) at de.dialog_leben.bfs.risikopruefung.ejb.NormRiskTestAccessServiceBean.testSimpleAccess(NormRiskTestAccessServiceBean.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) () Here is the stack-trace from the registering-thread: 07:08:14,445 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: de.dialog_leben.bfs.risikopruefung.connector.normrisk.resource.normriskconnectioni...@dce075 java.lang.Throwable: STACKTRACE at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:423) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849) at de.dialog_leben.bfs.risikopruefung.connector.normrisk.driver.NormRiskConnectionFactoryImpl.getConnection(NormRiskConnectionFactoryImpl.java:87) at de.dialog_leben.bfs.risikopruefung.connector.normrisk.driver.NormRiskConnectionFactoryImpl.getConnection(NormRiskConnectionFactoryImpl.java:76) at de.dialog_leben.bfs.risikopruefung.business.test.normrisk.NRConnectorTest.testSimpleAccess(NRConnectorTest.java:82) at de.dialog_leben.bfs.risikopruefung.ejb.NormRiskTestAccessServiceBean.testSimpleAccess(NormRiskTestAccessServiceBean.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) In order to understand what's going wrong i downloaded JBoss-sourcecode and followed the debugger. I located the problem in the nested class/method: org.jboss.resource.connectionmanager.NoTxConnectionManager.NoTxConnectionManager/connectionClosed ce.getConnectionHandle()); } The ce.getConnectionHandle() expression returns null, that seems to cause the problem. Therefore i think that i forgot to assign a connectionHandle in my ManagedConnection, cause ce referes to ce = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED) ; where this referes to my managed connection and ce Event was created in the managedConnection method closeHandle. Thank you for your help, Groovy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248110#4248110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.2 and JAVA6, compatibility matrix available
Hy there, i have the problem, we already started our development with JAVA6 using JBoss4.2.x. Yes, i know that Java6 is not officially supported, but the project manager staff decided to use JAVA6. Since JBoss5.x is delivered as a commercial product (supported by Redhat/JBoss), we have to go with JBoss4.2.x Running JAVA6 (on Linux) with JBoss issued some problems on the free JBoss 4.2.x version, that have been solved. Anyway, when i try to deploy my JBoss-ear file on the commercial JBoss server 4.2.1 running JAVA6. The deployment runs without any problem, the Web-GUI does run without any problems, but when i try to access the Web-Service, some exceptions happend. Seeking through the forum tells me, that i am using a wrong JAVA version. Great, but which one i should use ??? Is the a matrix of cooperating JBoss/JAVA Versions availiabe ?? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247919#4247919 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247919 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBOSSAS Install problem - Do I have to use Sun Java?
Salut, you are using a wrong JRE, coming from GNU-java (also known als gcj). Try to install a SUN-JDK with via rpm and make sure, that the run.sh will find firstly the original Sun-JAVA. > Failed to boot JBoss: > .. ClassLoader{urls=[], > parent=gnu.gcj.runtime.SystemClassLoader GCJ is not exactly the same like SUN-JDK! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238097#4238097 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployment of a J2EE1.3 application fails on JBoss4.2.2
Salut, that was my fault. In jboss.xml deployment descriptor i have overseen, that assigned in a stateful session bean the following standard setting: Standard Stateless Sessionbean That has in turn no instance-cache assignment in the default container definition. The good this is, that a started to understand the cool architecture of jboss. Thanks for your audience;-) Groovie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232257#4232257 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Deployment of a J2EE1.3 application fails on JBoss4.2.2
Salut mecs, in the meantime i switched to JBoss 4.2.3 but the problem is still there. From my point of view there are exaclty 2 choice for an explanation of this problem: 1) I misunterstood something and overseen some configurations in jboss.xml. The following posting on the JAVA greenhorn ranch shows a similar problem. But for any reason, this behaviour was clear to the author (but not me;) Can anybody explain me, what he talks about? http://www.coderanch.com/t/89576/JBoss/Missing-invalid-instance-cache-error 2) There may be a problem with the deployment for JEE-1.3/1.4 ear's on a JEE-5 Application server or some settings to be done, when you want to run that old application on a novel app server. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231793#4231793 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Deployment of a J2EE1.3 application fails on JBoss4.2.2
Salut, i have successfully set up a JEE1.4 environment for to test and run my applications using EJB3. Fine! Some days ago i started a migration project, where an old JEE Application has to move from an Oracle-App-Server to JBoss. So i created a new development-context using Eclipse&Jboss-Tools transfered also the ole JDevelopper to Eclipse. The migration is finished, instread of the oracle-descriptor now there is jboss.xml file doing the job. EAR-Build does create a app.ear that i am trying to deploy on my JBoss 4.2.2 (under Linux, with JAVA 1.6), but i do receive the following exception: 11:56:32,447 WARN [ServiceController] Problem creating service jboss.j2ee:service=EjbModule,module=myAppEJB.jar org.jboss.deployment.DeploymentException: Missing or invalid Instance Cache (in jboss.xml or standardjboss.xml); - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: ) at org.jboss.ejb.EjbModule.createInstanceCache(EjbModule.java:1234) at org.jboss.ejb.EjbModule.createStatefulSessionContainer(EjbModule.java:646) at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:579) at org.jboss.ejb.EjbModule.createService(EjbModule.java:342) The exception seems to occur in the context of a stateful session bean. Thats right, my application has a couple of stateless and stateful session beans, that habe been configured on both descriptor file. Does the error indicate, that the application has problems to persists the data of a statefull session bean ?? Some postings on the web inidicate, that i do have to do some in my jboss.xml, but i do not know how ? Oh, there is another thing i should tell you. I do have 2 datasources, one of them is linked to a read-only oracle-access. When i worked with EJB3 i learned to map persistenc-issues in my persistence.xml to prevetent ambiguous object mapping, but i do not have any persistence.xml in my EJB2.x !!! Thank you in advance for any help! Groovie View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231582#4231582 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231582 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user