Aplication wont start.

hi all ! Im having problems to start my app again.

Im using netbans 5.5 with tomcat 5.7 (already included in the setup). The thing is that Im having this error.

FAIL - Failed to deploy application at context path /Medex

In the contest xml file I have

<?xml version="1.0" encoding="UTF-8"?>

<Context docBase="C:\Program Files (x86)\netbeans-5.5\enterprise3\apache-tomcat-5.5.17\webapps\Medex" path="/Medex"/>

I dont know what Im doing wrong... its being a long time since touched this files...

Thanks for the help !

[676 byte] By [juanmanuelsancheza] at [2007-11-27 5:35:27]
# 1
I forgot to mention the path is the one to netbean's tomcat.Any help please? Im desperate
juanmanuelsancheza at 2007-7-12 15:04:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

After looking to the log file the problems seems to be in the web.xml

thats the one I used before without problems so I dont know where the error might be...

<?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 web-app_2_4.xsd">

<display-name>Servlet SvMedex</display-name>

<description>

Bienvenido a la aplicaci髇 de MEDEX

</description>

<servlet>

<description>Servlet para la aplicaci髇 intranet del centro MEDEX</description>

<servlet-name>SvMedex</servlet-name>

<servlet-class>SvMedex</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>invoker</servlet-name>

<url-pattern>/servlet/*</url-pattern>

</servlet-mapping>

<error-page>

<exception-type>java.lang.Exception</exception-type>

<location>/fallo.jsp</location>

</error-page>

<error-page>

<exception-type>java.lang.NullPointerException</exception-type>

<location>/fallo.jsp</location>

</error-page>

<error-page>

<error-code>500</error-code>

<location>/fallo.jsp</location>

</error-page>

</web-app>

Thanks for the help

Message was edited by:

juanmanuelsanchez

juanmanuelsancheza at 2007-7-12 15:04:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The last time you used those files, were you using an older version of Tomcat? Recent versions require servlets to be in a package, and your servlet is not in a package (according to that XML file).
DrClapa at 2007-7-12 15:04:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
yeah I was using tomcat 5.5 so yes it was an older version. can you tell me a post or something about this package thing?Thanks a lot Dr.Clap
juanmanuelsancheza at 2007-7-12 15:04:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
anyone ? please
juanmanuelsancheza at 2007-7-12 15:04:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...