i message when try start small test project vaadin component on tomcat server. funny thing had worked , without changes @ project or tomcat settings stopped ??
i read every comment on net there is, hasn't helped. here java code:
package com.example.test1_vaadin; import com.vaadin.application; import com.vaadin.ui.*; public class test1_vaadinapplication extends application { @override public void init() { window mainwindow = new window("test1_vaadin application"); label label = new label("hello vaadin user"); mainwindow.addcomponent(label); setmainwindow(mainwindow); } }
and here web.xml application:
<?xml version="1.0" encoding="utf-8"?> <web-app id="webapp_id" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>test1_vaadin</display-name> <context-param> <description> vaadin production mode</description> <param-name>productionmode</param-name> <param-value>false</param-value> </context-param> <servlet> <servlet-name>test1_vaadin application</servlet-name> <servlet-class>com.vaadin.terminal.gwt.server.applicationservlet</servlet-class> <init-param> <description> vaadin application class start</description> <param-name>application</param-name> <param-value>com.example.test1_vaadin.test1_vaadinapplication</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>test1_vaadin application</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app>
here console output in eclipse when tomcat started. might starting tomcat in console outsice eclipce works smoothly. os in mac os x:
21.12.2010 14:49:57 org.apache.catalina.core.aprlifecyclelistener init info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: .:/library/java/extensions:/system/library/java/extensions:/usr/lib/java 21.12.2010 14:49:57 org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.j2ee.server:test1_vaadin' did not find matching property. 21.12.2010 14:49:57 org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:test2_vaadin' did not find matching property. 21.12.2010 14:49:57 org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.j2ee.server:simpleaddressbook' did not find matching property. 21.12.2010 14:49:57 org.apache.coyote.http11.http11protocol init info: initializing coyote http/1.1 on http-1971 21.12.2010 14:49:57 org.apache.catalina.startup.catalina load info: initialization processed in 640 ms 21.12.2010 14:49:57 org.apache.catalina.core.standardservice start info: starting service catalina 21.12.2010 14:49:57 org.apache.catalina.core.standardengine start info: starting servlet engine: apache tomcat/6.0.29 21.12.2010 14:49:57 org.apache.tomcat.util.digester.digester endelement severe: end event threw exception java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.tomcat.util.introspectionutils.callmethodn(introspectionutils.java:959) @ org.apache.catalina.startup.callmethodmultirule.end(webruleset.java:789) @ org.apache.tomcat.util.digester.rule.end(rule.java:229) @ org.apache.tomcat.util.digester.digester.endelement(digester.java:1138) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.endelement(abstractsaxparser.java:601) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scanendelement(xmldocumentfragmentscannerimpl.java:1782) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2938) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:648) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:511) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:808) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:737) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:119) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1205) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:522) @ org.apache.tomcat.util.digester.digester.parse(digester.java:1642) @ org.apache.catalina.startup.contextconfig.processdefaultwebconfig(contextconfig.java:687) @ org.apache.catalina.startup.contextconfig.defaultwebconfig(contextconfig.java:624) @ org.apache.catalina.startup.contextconfig.start(contextconfig.java:1075) @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:261) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119) @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4540) @ org.apache.catalina.core.containerbase.start(containerbase.java:1045) @ org.apache.catalina.core.standardhost.start(standardhost.java:785) @ org.apache.catalina.core.containerbase.start(containerbase.java:1045) @ org.apache.catalina.core.standardengine.start(standardengine.java:445) @ org.apache.catalina.core.standardservice.start(standardservice.java:519) @ org.apache.catalina.core.standardserver.start(standardserver.java:710) @ org.apache.catalina.startup.catalina.start(catalina.java:581) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289) @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414) caused by: java.lang.illegalargumentexception: servlet mapping specifies unknown servlet name invoker @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:2671) @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:2651) ... 38 more 21.12.2010 14:49:57 org.apache.catalina.startup.contextconfig processdefaultwebconfig severe: parse error in default web.xml java.lang.illegalargumentexception: servlet mapping specifies unknown servlet name invoker @ org.apache.tomcat.util.digester.digester.createsaxexception(digester.java:2806) @ org.apache.tomcat.util.digester.digester.createsaxexception(digester.java:2832) @ org.apache.tomcat.util.digester.digester.endelement(digester.java:1141) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.endelement(abstractsaxparser.java:601) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scanendelement(xmldocumentfragmentscannerimpl.java:1782) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2938) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:648) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:511) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:808) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:737) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:119) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(abstractsaxparser.java:1205) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(saxparserimpl.java:522) @ org.apache.tomcat.util.digester.digester.parse(digester.java:1642) @ org.apache.catalina.startup.contextconfig.processdefaultwebconfig(contextconfig.java:687) @ org.apache.catalina.startup.contextconfig.defaultwebconfig(contextconfig.java:624) @ org.apache.catalina.startup.contextconfig.start(contextconfig.java:1075) @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:261) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119) @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4540) @ org.apache.catalina.core.containerbase.start(containerbase.java:1045) @ org.apache.catalina.core.standardhost.start(standardhost.java:785) @ org.apache.catalina.core.containerbase.start(containerbase.java:1045) @ org.apache.catalina.core.standardengine.start(standardengine.java:445) @ org.apache.catalina.core.standardservice.start(standardservice.java:519) @ org.apache.catalina.core.standardserver.start(standardserver.java:710) @ org.apache.catalina.startup.catalina.start(catalina.java:581) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289) @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414) caused by: java.lang.illegalargumentexception: servlet mapping specifies unknown servlet name invoker @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:2671) @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:2651) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.tomcat.util.introspectionutils.callmethodn(introspectionutils.java:959) @ org.apache.catalina.startup.callmethodmultirule.end(webruleset.java:789) @ org.apache.tomcat.util.digester.rule.end(rule.java:229) @ org.apache.tomcat.util.digester.digester.endelement(digester.java:1138) ... 30 more 21.12.2010 14:49:57 org.apache.catalina.startup.contextconfig processdefaultwebconfig severe: occurred @ line 386 column 23 21.12.2010 14:49:57 org.apache.catalina.startup.contextconfig start severe: marking application unavailable due previous error(s) 21.12.2010 14:49:57 org.apache.catalina.core.standardcontext start severe: error getconfigured 21.12.2010 14:49:57 org.apache.catalina.core.standardcontext start severe: context [] startup failed due previous errors 21.12.2010 14:49:57 org.apache.catalina.loader.webappclassloader clearreferencesthreads severe: web application [] appears have started thread named [poller sunpkcs11-darwin] has failed stop it. create memory leak.
anybody, idea?
severe: parse error in default web.xml
java.lang.illegalargumentexception: servlet mapping specifies unknown servlet name invoker
your problem there. should cultivate habit of reading stack traces, not posting them somewhere ;-)
Comments
Post a Comment