Ron,
I already did what you suggest. I created errors on purpose on that file
and got a different error. What it's interesting is that I created some
errors below the line 18 and it changed the error message and error line.
This the computer where I develop and I run bundled Tomcat for debugging
purposes.
Thank for your help Ron, I'll keep trying.
Carlos
Ron McNulty wrote:
Hi Carlos
If your Tomcat is starting OK from its normal /bin/startup.sh or
/bin/startup.bat script, then there is nothing wrong with your web.xml
file. So that suggests Netbeans is not using that web.xml, or is doing
something really strange (Setting CATALINA_HOME wrongly?).
I would try putting a few lines of garbage in web.xml, and see if you
get a different startup error. That will lock down if the complaint is
in fact from conf/web.xml.
Maybe we are the wrong NG to help. (I am an Eclipse user myself).
Also, do you need to start Tomcat from within Netbeans? I'm almost
certain it will support Tomcat's remote debugging option, which allows
independent startup.
Regards
Ron
----- Original Message ----- From: "Carlos Botto" <carl...@qualitau.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, March 14, 2009 12:41 PM
Subject: Re: Problem starting Tomcat in Netbeans
Ron,
I did it. Also I deleted the line and typed it again.
Thanks
Carlos
Ron McNulty wrote:
Hi Carlos
The error is coming from Digester, whose job in life is simply to
parse XML files and read them into objects. Have you opened web.xml
with a hex editor and checked for non-ascii characters?
Regards
Ron
----- Original Message ----- From: "Carlos Botto"
<carl...@qualitau.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, March 14, 2009 12:04 PM
Subject: Re: Problem starting Tomcat in Netbeans
Hi Ron,
There are no * in the code, those in the email were put on purpose
to underline the 18th. line.
Thanks
Carlos
Ron McNulty wrote:
Hi Carlos
This line looks odd? Why are there asterisks around it?
*<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>*
Regards
Ron
----- Original Message ----- From: "Carlos Botto"
<carl...@qualitau.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, March 14, 2009 11:43 AM
Subject: Problem starting Tomcat in Netbeans
Sorry for bothering the list with the same problem again, but
this problem has became a nightmare at this point.
Bundled Tomcat 5.5.17 on Netbeans is not starting and I'm getting
the following error:
*SEVERE: Parse error in default web.xml
java.lang.NullPointerException*
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751)
at
org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:781)
at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:721)
at
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:977)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:278)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardContext.init(StandardContext.java:5130)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3945)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 13, 2009 3:26:56 PM org.apache.catalina.startup.ContextConfig
processContextConfig
*SEVERE: Occurred at line 18 column 20*
This is what I have in the first lines of my conf/web.xml (the
18th. line is in black).
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>jsp</servlet-name>
*<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>*
<init-param>
<param-name>mappedfile</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
I've tried different things, like replacencing the conf/web.xml
with the one in production but nothing has worked at this point.
I'll really appreciate any input on this.
Carlos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org