Hello all,

I recently upgraded my web server to Tomcat. I successfully created the
respective contexts for my aplications.
However I am unable to connect to the database in my JSP's. When I run
my JSP Page , it throws the following exception
the first few lines

javax.servlet.ServletException: net/avenir/jdbc2/h (Illegal Field name
"?")
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:457)
at
org.apache.jsp.CalendarLogin$jsp._jspService(CalendarLogin$jsp.java:243)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

root cause
java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name "?")
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

I am using Atinav driver for SQL Server and the jar file is situated in
the common/lib directory. Notice its not a classnotfound exception.

Its not a problem with the SQL Query. The Application is a tested product runnning on 
JRUN..
The STackTrace shows an error in the getConnection method.

Do I have to specify any database settings in Server.xml or just by placing the 
database driver JAR file in the common/lib directory of tomcat does the job.

Please Help

Purav

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to