Hi Doug, Thanks a lot, finally I got through this problem. :).
Regards, Honghai On Apr 8, 2005 3:50 PM, Parsons Technical Services <[EMAIL PROTECTED]> wrote: > Try changing the order of your elements. Put the servlet elements at > together and then below that put your servlet-mappings together. The DTD has > a set order for the elements in the xml. It needs to see all of one element > the all of the next type and so forth and so on. > That is if my wife didn't spike my coffee and I'm imagining this stuff > again. > > If you go to the link at the top of your xml and do a view source you will > see a listing of the elements. I believe that this is the order the elements > need to occur in the xml. > > Doug > > ----- Original Message ----- > From: "Liu Honghai" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Friday, April 08, 2005 9:11 AM > Subject: Help:java.lang.ClassFormatError: Invalid method attribute name > index 10 in class file > > > Hello everybody, > > > > I try to deploy my serlet apps in Tomcat, but Tomcat always report an > > exception: > > > > java.lang.ClassFormatError: Invalid method attribute name index 10 in > > class file org/servermon/gui/Init > > > > Tomcat 5.5.7, compiler:jdk1.5.0 > > > > When I use Tomcat 5.0.27, and recompile the sourcecode under > > jdk1.4.2_04, it report another exception: > > Error deploying web application directory servermon > > java.lang.ClassFormatError: org/servermon/gui/Init (Illegal constant pool > > index) > > > > My deployer is: > > <!DOCTYPE web-app > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > > <web-app> > > > > <servlet> > > <servlet-name>MenuServlet</servlet-name> > > > > <servlet-class>org.servermon.gui.tree.MenuServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> MenuServlet </servlet-name> > > <url-pattern> /servlet/MenuServlet </url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>TableServlet</servlet-name> > > > > <servlet-class>org.servermon.gui.table.TableServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> TableServlet </servlet-name> > > <url-pattern> /servlet/TableServlet </url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>Menu</servlet-name> > > <servlet-class>org.servermon.gui.tree.Menu</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> Menu</servlet-name> > > <url-pattern> /servlet/Menu </url-pattern> > > </servlet-mapping> > > <servlet> > > <servlet-name>MonitoringServlet</servlet-name> > > > > <servlet-class>org.servermon.gui.monitoring.MonitoringServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> MonitoringServlet</servlet-name> > > <url-pattern> /servlet/MonitoringServlet </url-pattern> > > </servlet-mapping> > > <servlet> > > <servlet-name>GraphServlet</servlet-name> > > > > <servlet-class>org.servermon.gui.monitoring.GraphServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> GraphServlet</servlet-name> > > <url-pattern> /servlet/GraphServlet </url-pattern> > > </servlet-mapping> > > <servlet> > > <servlet-name>ServerServlet</servlet-name> > > > > <servlet-class>org.servermon.gui.client.ServerServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name> ServerServlet</servlet-name> > > <url-pattern> /servlet/ServerServlet </url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>log4j-init</servlet-name> > > <servlet-class>org.servermon.gui.Log4jInit</servlet-class> > > <init-param> > > <param-name>log4j-init-file</param-name> > > <param-value>WEB-INF/log4j.lcf</param-value> > > </init-param> > > <load-on-startup>1</load-on-startup> > > </servlet> > > > > <servlet> > > <servlet-name>gui-init</servlet-name> > > <servlet-class>org.servermon.gui.Init</servlet-class> > > <load-on-startup>1</load-on-startup> > > </servlet> > > > > </web-app> > > > > Does anybody have suggestion? > > > > Thanks a lot! > > > > Honghai > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
