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
-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
-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
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
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
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
-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
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
-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
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
-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
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.
:357)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> javax.servlet.http.HttpServlet.servic
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:
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
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
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
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
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
19 matches
Mail list logo