Problem starting Tomcat in Netbeans

2009-03-13 Thread Carlos Botto
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-namedefault/servlet-name
   
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class

   init-param
 param-namedebug/param-name
 param-value0/param-value
   /init-param
   init-param
 param-namelistings/param-name
 param-valuefalse/param-value
   

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Ron McNulty

Hi Carlos

This line looks odd? Why are there asterisks around it?

  *servlet-classorg.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

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Carlos Botto

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-classorg.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

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Ron McNulty

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-classorg.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

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Carlos Botto

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-classorg.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

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Ron McNulty

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-classorg.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

Re: Problem starting Tomcat in Netbeans

2009-03-13 Thread Carlos Botto

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-classorg.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

Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto

Hi,

I'm having problems to start Tomcat in Netbeans. It was working for a 
long time until suddenly it  stopped. I added a new servlet to the 
web.xml file and after that it broke, even after I removed the new 
servlet didn't work again. I validated web.xml and got no errors, but 
when I validated context.xml I got the following: cvc-elt.1: Cannot find 
the declaration of element 'Context'. [2]


The context.xml first lines are:
?xml version=1.0 encoding=UTF-8?
Context crossContext=true debug=5 docBase=qualitau 
path=/qualitau reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_my_log. suffix=.txt timestamp=true/



I'm using Bundled Tomcat 5.5.17 with NetBeans 5.5.1
The web.xml file is too big to post it here, but I can do it if needed.
Here is the error from the log:

Mar 11, 2009 3:54:58 PM org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
   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.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:898)
   at 
org.apache.catalina.startup.SetNextNamingRule.end(SetNextNamingRule.java:97)

   at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
   at 
org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
   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 

RE: Problem starting Tomcat in Netbeans

2009-03-11 Thread Caldarale, Charles R
 From: Carlos Botto [mailto:carl...@qualitau.com] 
 Subject: Problem starting Tomcat in Netbeans
 
 when I validated context.xml I got the following: cvc-elt.1: 
 Cannot find the declaration of element 'Context'. [2]

Since there is no DTD to validate against, that's not surprising.

 Context crossContext=true debug=5 docBase=qualitau 
 path=/qualitau reloadable=true
 Logger className=org.apache.catalina.logger.FileLogger 
 prefix=localhost_my_log. suffix=.txt timestamp=true/

Tomcat has supported a Logger element in quite some time, so that should come 
out.  Also, the path attribute is illegal when the Context element is in your 
webapp's META-INF/context.xml file (which is where it should be).

 Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
 processContextConfig
 SEVERE: Parse error in default web.xml

Note that the above refers to the *default* web.xml, not the one in your 
webapp's WEB-INF directory.  What did you break in Tomcat's conf/web.xml file?

 Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
 processContextConfig
 SEVERE: Occurred at line 18 column 20

That should give you a pretty good idea of where to look.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto

Chuck,

Thanks for your answer.

I generated the DTD and fixed the config.xml problem.

But the other problem is still there. I didn't touch conf/web.xml, but I 
checked it out anyway and didn't find a problem (should be at line 18 
column 20).


Here are the first 24 lines from conf/web.xml:

?xml version=1.0 encoding=UTF-8?
web-app 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;

version=2.4
   descriptionQualiTau Intranet/description
   display-nameQualiTau Intranet/display-name
  
   listener

   listener-classcom.qualitau.startup.JDBCStartup/listener-class
   /listener
   !-- Basic permissions to access any page on the site --
   security-constraint
   web-resource-collection
   web-resource-nameQualiTau Web Applications/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
   role-nameportal/role-name
   /auth-constraint
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
   /security-constraint

Thanks again



Carlos

Caldarale, Charles R wrote:
From: Carlos Botto [mailto:carl...@qualitau.com] 
Subject: Problem starting Tomcat in Netbeans


when I validated context.xml I got the following: cvc-elt.1: 
Cannot find the declaration of element 'Context'. [2]



Since there is no DTD to validate against, that's not surprising.

  
Context crossContext=true debug=5 docBase=qualitau 
path=/qualitau reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_my_log. suffix=.txt timestamp=true/



Tomcat has supported a Logger element in quite some time, so that should come out.  
Also, the path attribute is illegal when the Context element is in your webapp's 
META-INF/context.xml file (which is where it should be).

  
Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
processContextConfig

SEVERE: Parse error in default web.xml



Note that the above refers to the *default* web.xml, not the one in your 
webapp's WEB-INF directory.  What did you break in Tomcat's conf/web.xml file?

  
Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
processContextConfig

SEVERE: Occurred at line 18 column 20



That should give you a pretty good idea of where to look.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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



Re: Problem starting Tomcat in Netbeans

2009-03-11 Thread Carlos Botto
   extensionxsl/extension
   mime-typeapplication/xml/mime-type
 /mime-mapping
 mime-mapping
   extensionxslt/extension
   mime-typeapplication/xslt+xml/mime-type
 /mime-mapping
 mime-mapping
   extensionxul/extension
   mime-typeapplication/vnd.mozilla.xul+xml/mime-type
 /mime-mapping
 mime-mapping
   extensionxwd/extension
   mime-typeimage/x-xwindowdump/mime-type
 /mime-mapping
 mime-mapping
   extensionZ/extension
   mime-typeapplication/x-compress/mime-type
 /mime-mapping
 mime-mapping
   extensionz/extension
   mime-typeapplication/x-compress/mime-type
 /mime-mapping
 mime-mapping
   extensionzip/extension
   mime-typeapplication/zip/mime-type
 /mime-mapping
 !--  Default Welcome File List 
= --
 !-- When a request URI refers to a directory, the default servlet 
looks  --
 !-- for a welcome file within that directory and, if 
present,  --
 !-- to the corresponding resource URI for display.  If no welcome 
file   --
 !-- is present, the default servlet either serves a directory 
listing,   --
 !-- or returns a 404 status, depending on how it is 
configured.  --
 
!--  
--
 !-- If you define welcome files in your own application's 
web.xml--
 !-- deployment descriptor, that list *replaces* the list 
configured  --
 !-- here, so be sure that you include any of the default values 
that --
 !-- you wish to 
include. --

 welcome-file-list
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   welcome-fileindex.jsp/welcome-file
 /welcome-file-list
/web-app



Thanks again



Carlos


Carlos Botto wrote:

Chuck,

Thanks for your answer.

I generated the DTD and fixed the config.xml problem.

But the other problem is still there. I didn't touch conf/web.xml, but 
I checked it out anyway and didn't find a problem (should be at line 
18 column 20).


Here are the first 24 lines from conf/web.xml:

?xml version=1.0 encoding=UTF-8?
web-app 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;

version=2.4
   descriptionQualiTau Intranet/description
   display-nameQualiTau Intranet/display-name
 listener
   listener-classcom.qualitau.startup.JDBCStartup/listener-class
   /listener
   !-- Basic permissions to access any page on the site --
   security-constraint
   web-resource-collection
   web-resource-nameQualiTau Web Applications/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
   role-nameportal/role-name
   /auth-constraint
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
   /security-constraint

Thanks again



Carlos

Caldarale, Charles R wrote:
From: Carlos Botto [mailto:carl...@qualitau.com] Subject: Problem 
starting Tomcat in Netbeans


when I validated context.xml I got the following: cvc-elt.1: Cannot 
find the declaration of element 'Context'. [2]



Since there is no DTD to validate against, that's not surprising.

 
Context crossContext=true debug=5 docBase=qualitau 
path=/qualitau reloadable=true
Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_my_log. suffix=.txt timestamp=true/



Tomcat has supported a Logger element in quite some time, so that 
should come out.  Also, the path attribute is illegal when the 
Context element is in your webapp's META-INF/context.xml file 
(which is where it should be).


 
Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
processContextConfig

SEVERE: Parse error in default web.xml



Note that the above refers to the *default* web.xml, not the one in 
your webapp's WEB-INF directory.  What did you break in Tomcat's 
conf/web.xml file?


 
Mar 11, 2009 3:54:58 PM org.apache.catalina.startup.ContextConfig 
processContextConfig

SEVERE: Occurred at line 18 column 20



That should give you a pretty good idea of where to look.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
PROPRIETARY MATERIAL and is thus for use only by the intended 
recipient. If you received this in error, please contact the sender 
and delete the e-mail and its attachments from all computers.


-
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

Re: Problem starting Tomcat in Netbeans

2006-05-29 Thread Marc Farrow

I don't know why you have the Common folder of tomcat in your classpath.
that should not be needed.



On 5/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


On Mon, May 29, 2006 at 12:31:12AM +0800, Justin See wrote:

 I've tried to search for it but couldn't find an answer.
 Please try to help me.

 I've created an application and deployed and run successfully in the
 first PC.  I copied everything over, installed everything as the
 first PC.

 1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib.

 2) Added this to the server.xml:

 Context

  Resource name=jdbc/MySQLDB auth=Container
type=javax.sql.DataSource username=root
password=password
driverClassName= com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/transport
maxActive=8 maxIdle=4/

 /Context

 3) Added this to the web.xml

 descriptionMySQL Connection/description
   resource-ref
descriptionDB Connection/description
res-ref-namejdbc/MySQLDB/res-ref-name
res-type javax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref

 4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans-
 5.0\enterprise2\jakarta-tomcat-5.5.9\common
 lib

 Now when i deploy and start the application on the Tomcat, Tomcat
 logs give me this error:

 May 28, 2006 10:46:10 PM
 org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans

 SEVERE: createMBeans: Throwable

 java.lang.NullPointerException

at org.apache.catalina.mbeans.MBeanUtils.createObjectName(
 MBeanUtils.java:1079)

Are you using the Tomcat server distributed with NB, have you set this
one up as an external server in NB or is this problem occurring
outside of NB?

If it is occurring when you 'run project' from within NB, then you may
want to connect with the NetBeans user mailing list.  Additionally, if
the application functions properly within NB but blows up when you
deploy the .war file, the same applies.  Occasionally, there can be
intricacies with deployment internally as opposed to externally.
Usually, in my limited experience, this is because of difficulties in
properly specifying the location of libraries.

Thanks.

mp

--
Michael Powe[EMAIL PROTECTED]Naugatuck CT USA


47.3% of all statistics are made up on the spot. - Steven Wright






--
Marc Farrow


Problem starting Tomcat in Netbeans

2006-05-28 Thread Justin See

Dear all,

I've tried to search for it but couldn't find an answer.
Please try to help me.

I've created an application and deployed and run successfully in the first
PC.
I copied everything over, installed everything as the first PC.


1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib.

2) Added this to the server.xml:

Context

 Resource name=jdbc/MySQLDB auth=Container
   type=javax.sql.DataSource username=root password=password
   driverClassName= com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/transport
   maxActive=8 maxIdle=4/

/Context

3) Added this to the web.xml

descriptionMySQL Connection/description
  resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/MySQLDB/res-ref-name
   res-type javax.sql.DataSource/res-type
   res-authContainer/res-auth
  /resource-ref



4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans-
5.0\enterprise2\jakarta-tomcat-5.5.9\common
lib

Now when i deploy and start the application on the Tomcat,
Tomcat logs give me this error:


May 28, 2006 10:46:10 PM
org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans

SEVERE: createMBeans: Throwable

java.lang.NullPointerException

   at org.apache.catalina.mbeans.MBeanUtils.createObjectName(
MBeanUtils.java:1079)

   at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java
:496)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:569)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:365)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:534)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:497)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:659)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:627)

   at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(
ServerLifecycleListener.java:277)

   at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent
(ServerLifecycleListener.java:128)

   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)

   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:676)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)

   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:324)

   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

java.lang.reflect.InvocationTargetException

   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:324)

   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Caused by: java.lang.NullPointerException

   at java.util.Hashtable.put(Hashtable.java:393)

   at org.apache.catalina.core.StandardContext.resourcesStart(
StandardContext.java:3741)

   at org.apache.catalina.core.StandardContext.start(
StandardContext.java:3925)

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java
:718)

   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)

   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:442)

May 28, 2006 10:46:11 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

May 28, 2006 10:46:11 PM org.apache.catalina.core.StandardEngine start

   at org.apache.catalina.core.StandardService.start(
StandardService.java:450)

INFO: Starting Servlet Engine: Apache Tomcat/5.5.9

   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:683)

May 28, 2006 10:46:11 PM org.apache.catalina.core.StandardHost start

   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)

INFO: XML validation disabled

   ... 6 more


Thanks in advance!

--
Regards,
Justin See


Re: Problem starting Tomcat in Netbeans

2006-05-28 Thread michael
On Mon, May 29, 2006 at 12:31:12AM +0800, Justin See wrote:

 I've tried to search for it but couldn't find an answer.
 Please try to help me.
 
 I've created an application and deployed and run successfully in the
 first PC.  I copied everything over, installed everything as the
 first PC.
 
 1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib.
 
 2) Added this to the server.xml:
 
 Context
 
  Resource name=jdbc/MySQLDB auth=Container
type=javax.sql.DataSource username=root password=password
driverClassName= com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/transport
maxActive=8 maxIdle=4/
 
 /Context
 
 3) Added this to the web.xml
 
 descriptionMySQL Connection/description
   resource-ref
descriptionDB Connection/description
res-ref-namejdbc/MySQLDB/res-ref-name
res-type javax.sql.DataSource/res-type
res-authContainer/res-auth
   /resource-ref

 4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans-
 5.0\enterprise2\jakarta-tomcat-5.5.9\common
 lib
 
 Now when i deploy and start the application on the Tomcat, Tomcat
 logs give me this error:

 May 28, 2006 10:46:10 PM
 org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans
 
 SEVERE: createMBeans: Throwable
 
 java.lang.NullPointerException
 
at org.apache.catalina.mbeans.MBeanUtils.createObjectName(
 MBeanUtils.java:1079)

Are you using the Tomcat server distributed with NB, have you set this
one up as an external server in NB or is this problem occurring
outside of NB?

If it is occurring when you 'run project' from within NB, then you may
want to connect with the NetBeans user mailing list.  Additionally, if
the application functions properly within NB but blows up when you
deploy the .war file, the same applies.  Occasionally, there can be
intricacies with deployment internally as opposed to externally.
Usually, in my limited experience, this is because of difficulties in
properly specifying the location of libraries.

Thanks.

mp

-- 
Michael Powe[EMAIL PROTECTED]   Naugatuck CT USA


47.3% of all statistics are made up on the spot. - Steven Wright


pgpLFFfwaKKrS.pgp
Description: PGP signature