File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts - java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name "?")" Watch "Struts - java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name "?")" New topic
Author

Struts - java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name "?")

Kedar Nirokhekar
Greenhorn

Joined: Dec 10, 2001
Posts: 11
Hi all,
I am facing some probelm using the jakarta-tomcat server4.0 and developing struts application.The application is runing perfectly if dont use the database type4 driver.I am using "net.avenir" driver to connect to MS SQL server.
I am getting the following error :
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)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:671)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1090)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at net.avenir.jdbc2.Driver.connect(Driver.java:197)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at LogonAction.perform(LogonAction.java:27)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)
*********************
I am stuck at this point.If anyone could answer this question or guide me to get out of this problem, I will be very thankful to him/her.
Thanking in advance,
Regards,
Kedar
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
You might want to try that one on the struts-dev mailing list at http://jakarta.apache.org/struts


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Hi Folks,
this exception doesn't look like a Struts-based error. I think it's got more to do with JDBC and the SQLServer driver.
The reason being that there are no struts classes in the stack trace - just catalina and jdbc classes.
Adam
[ September 22, 2002: Message edited by: Adam Hardy ]

I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts - java.lang.ClassFormatError: net/avenir/jdbc2/h (Illegal Field name "?")