Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread Neven Cvetkovic
On Thu, Apr 4, 2013 at 3:03 PM, wrote: > > I just thought I'd post the solution I found in case anybody else runs > into this trying to migrate an app from JBoss to Tomcat. Neven, I tried > your last suggestion and was still getting an error. I then took another > look at my localhost log and inv

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread dvosbury1
-Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Thu, Apr 4, 2013 12:59 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 OK, I looked it up again... Your current hibernate.cfg.xml says: *org.hibernate

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread dvosbury1
-Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Thu, Apr 4, 2013 12:59 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 OK, I looked it up again... Your current hibernate.cfg.xml says: *org.hibernate

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread dvosbury1
r that could be used in Tomcat and configured in hibernate.cfg.xml? Thanks, David -Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Thu, Apr 4, 2013 12:43 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 Hey David, I've misread

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread Neven Cvetkovic
OK, I looked it up again... Your current hibernate.cfg.xml says: *org.hibernate. transaction.JTATransactionFactory org.hibernate .transaction.JBossTransactionManagerLookup * You should try replacing this with: *org.hibernate.transaction.JDBCTransactionFactory * Give it a whirl, and see if that

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread Neven Cvetkovic
David that helps a bit more... See comments below: On Thu, Apr 4, 2013 at 12:44 PM, wrote: > > > Here is the localhost log file also. This might be useful. This is after > the app is deployed and the home page launched. > > Apr 04, 2013 12:36:48 PM org.apache.catalina.core.ApplicationContext log

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread dvosbury1
-Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Tue, Apr 2, 2013 1:48 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 David, I would like to split troubleshooting into three steps: - tomcat startup (no app deployed

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread Neven Cvetkovic
Hey David, I've misread that earlier - this is *java.lang.NoClassDefFoundError* - which means the class that was available at the compile time is not available now to the JVM. I suspect it might be a problem with your * com.systemsmadesimple.hibernate.HibernateUtil* class implementation. As per s

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-04 Thread dvosbury1
-Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Tue, Apr 2, 2013 1:48 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 David, I would like to split troubleshooting into three steps: - tomcat startup (no app deployed

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-02 Thread Neven Cvetkovic
David, I would like to split troubleshooting into three steps: - tomcat startup (no app deployed) - deploy application war file (copy war to webapps) - test application in browser This way you can really isolate and nail down the problem. When does the exception occur? Can you give us theee con

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-02 Thread dvosbury1
-Original Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Tue, Apr 2, 2013 12:45 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 David My bad, I gave you the wrong code for testing database connections. I was just typing the code from my head, I did not

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-02 Thread Neven Cvetkovic
David My bad, I gave you the wrong code for testing database connections. I was just typing the code from my head, I did not test it myself. I probably should have used Eclipse before I gave you the code ;) Here's a better version: ... <% javax.naming.InitialContext naming = null; *java.

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-02 Thread Daniel Mikusa
:357) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > javax.servlet.http.HttpServlet.servic

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-02 Thread dvosbury1
l Message- From: Neven Cvetkovic To: Tomcat Users List Sent: Mon, Apr 1, 2013 8:23 pm Subject: Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37 Excellent point Mark. David, you have to decide how your database connections are managed:

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread dvosbu...@aol.com
Thanks everyone for your suggestions so far. I will fix the case of my xml and post back with the results. Good point about the user name and password Neven. Even though it is a test db I wish I could remove that from my post on here. Thanks, David Neven Cvetkovic wro

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread Neven Cvetkovic
Excellent point Mark. David, you have to decide how your database connections are managed: a) Tomcat-managed datasource (your current setup) - datasource is defined in Tomcat server.xml/context.xml and gets registered in JNDI (e.g. java:comp/env/jdbc/smswebdb) - datasource is referenced in hibern

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread Konstantin Kolinko
2013/4/2 : > > Hello, > > I have been tasked with moving an application from a JBoss application server > to Tomcat 7. The application is using hibernate to establish a connection > pool as I understand it. I've got Tomcat running under the standard ports and > have deployed the application. Th

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread Mark Eggers
On 4/1/2013 3:15 PM, dvosbu...@aol.com wrote: Hello, I have been tasked with moving an application from a JBoss application server to Tomcat 7. The application is using hibernate to establish a connection pool as I understand it. I've got Tomcat running under the standard ports and have depl

Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread Neven Cvetkovic
Hey David, I would suggest you create a sample application that will test the drivers, and if the connection is OK, with no application deployed. If you are not a developer, ask your developers on team to help you write a sample application. It can be as simple as a single JSP page. After you get

Trouble loading MS SQl Server database driver in Tomcat 7.0.37

2013-04-01 Thread dvosbury1
Hello, I have been tasked with moving an application from a JBoss application server to Tomcat 7. The application is using hibernate to establish a connection pool as I understand it. I've got Tomcat running under the standard ports and have deployed the application. The SQL Server .jar file i