[JBoss Getting Started Documentation] - DB2 Database connection error
by maheshvanamula
I am currently facing the 'DB2 Database connectivitty' issue with the 'DB2' database. Trying to connect to the 'DB2 UDB iSeries V5R3', but it gives the error as
org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.ibm.as400.access.AS400JDBCDriver, url: jdbc:as400://3.11.96.3/GETSJDE); -
am using a JSP page to test the connectivity. The first request to the database connection will not work. However, When i refresh the JSP and then the connection works fine.
Please visit to the URL : http://:<port_number>/DB2ConnectionTest.jsp
Let me know if you have any resolution.
Here is the datasource details of the database.
<no-tx-datasource>
<jndi-name>DB2Pool</jndi-name>
<connection-url>jdbc:as400://3.11.96.3/GETSJDE</connection-url>
<driver-class>com.ibm.as400.access.AS400JDBCDriver</driver-class>
<user-name>guest</user-name>
</no-tx-datasource>
Please provide the resolution.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995100#3995100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995100
19 years, 4 months
[JBoss Seam] - Re: Can Seam work with no ejb3 but with Hibernate ORM?
by gavin.king@jboss.com
Yes, Seam assumes JTA. Of course I could go off and implement my whole own tx management layer on top of JDBC, that looks exactly like JTA, except isn't - just like everyone used to do (Hibernate, JPA, Spring, ...) but of course this is totally fucking nuts! You now have this horrible combinatorial problem of all these different fwks each having their own tx API, causing nightmarish integration problems when if they all would have just used what already exists and works just perfectly well, there would be no problem!
So at the moment I am refusing to contribute to making this problem worse, by not introducing my own tx abstraction. We use JTA, and thats it. You can use JBoss MC to get a lightweight JTA/JCA layer in any environment you like, just like the "jpa" and "hibernate2" examples do (type "ant deploy.tomcat"). But most environments (read everything except testng, junit and tomcat) already have JTA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995094#3995094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995094
19 years, 4 months