Chamar Servlet em um HyperLink [RESOLVIDO]

Meu. to quebrando a cabeça aqui nao sai… Queria chamar meu servlet por um link… e da erro no glassfish… =(…

To utilizando o netbeans e já vi vários posts ai de como fazer e não consegui… alguém me ajuda por favor aew… vlw

Servlet está em myservlets/CrmUserContact
Estou rodando o glassfish em localhost:8080

Meu web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
        <servlet-name>DocTreatment</servlet-name>
        <servlet-class>myServlets.DocTreatment</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Benef_Treatment</servlet-name>
        <servlet-class>myServlets.Benef_Treatment</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Err</servlet-name>
        <servlet-class>myServlets.Err</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>create_informat</servlet-name>
        <servlet-class>create_informat</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>startBeans</servlet-name>
        <servlet-class>myServlets.StartBeans</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>rebuildTable</servlet-name>
        <servlet-class>rebuildTable</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>MailController</servlet-name>
        <servlet-class>myServlets.MailController</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>DoLogin</servlet-name>
        <servlet-class>myServlets.DoLogin</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>InformatValidation</servlet-name>
        <servlet-class>myServlets.InformatValidation</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>CrmUserContact</servlet-name>
        <servlet-class>myServlets.CrmUserContact</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>DocTreatment</servlet-name>
        <url-pattern>/DocTreatment</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Benef_Treatment</servlet-name>
        <url-pattern>/Benef_Treatment</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Err</servlet-name>
        <url-pattern>/Err</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>create_informat</servlet-name>
        <url-pattern>/create_informat</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>startBeans</servlet-name>
        <url-pattern>/startBeans</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>rebuildTable</servlet-name>
        <url-pattern>/rebuildTable</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>MailController</servlet-name>
        <url-pattern>/MailController</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>DoLogin</servlet-name>
        <url-pattern>/DoLogin</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>InformatValidation</servlet-name>
        <url-pattern>/InformatValidation</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>CrmUserContact</servlet-name>
        <url-pattern>/CrmUserContact</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>

Qual erro ta dando velhinho???

Quando eu clico no link ele da uma mensagem do glassfish:

HTTP Status 404 -


type Status report

message

descriptionThe requested resource () is not available.

No seu webxml não tem referenciando a classe Crm.
Fiz o teste aqui e funcionou certinho.

Se tiver usando o netbeans vai na na aba projects, pasta WebPages/WEB-INF e abre o webxml por ai que ele ter um editor. Ai você inclui a classe servlet Crm na sua lista de servlets.

href="Crm?id=12&status=16"

Se Crm for mapeada

Nao… usei aquele soh de exemplo… o que to tentando chamar eh o InformatValidation… como fica o link… nao vai de jeito nenhum… Aki ta assim

Verifica se o projeto foi implantado no glassfish corretamente. No console ele mostra as mensagens de erros se houver.

Galera… qdo inicio a aplicação aparece isso no console do glassfish…
identifiquei somente os erros ai de umas classes que tão faltando… más eu criei elas no começo do projeto e não uso mais (deletei)… seria isso?? O q eu faço?

[code]
15/11/2009 19:48:29 com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/Program Files/Java/jdk1.6.0_07\bin\java
-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=Does not exist/lib/hadbjdbc4.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,Does not exist/lib/dbstate.jar,Does not exist/lib/hadbm.jar,Does not exist/lib/hadbmgt.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,Does not exist/lib/dbstate.jar,Does not exist/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Program Files/Java/jdk1.6.0_07/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Sun/AppServer/updatecenter/lib/updatecenter.jar,C:/Sun/AppServer/jbi/lib/jbi.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Sun/AppServer
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=C:/Sun/AppServer/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.ext.dirs=C:/Program Files/Java/jdk1.6.0_07/lib/ext;C:/Program Files/Java/jdk1.6.0_07/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/javadb/lib
-Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin
-Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
-Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:/Sun/AppServer/domains/domain1/logs/jvm.log
-cp
C:/Sun/AppServer/lib/jhall.jar;C:\Sun\AppServer\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
CORE5076: Using [Java HotSpot™ Client VM, Version 1.6.0_07] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
Using MQ RA for Broker lifecycle control
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
REgistering Custom ContextConfig
REgistering Custom Context
JTS5014: Recoverable JTS instance, serverId = [3700]
ADM1079: Initialization of AMX MBeans started
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://Vinicius-PC:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
JMS Service Connection URL is :mq://Vinicius-PC:7676/
MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting…
MQJMSRA_EB1101: EMBEDDED broker started with code =0
MQJMSRA_RA1101: SJSMQ JMSRA Started:DIRECT
LDR5010: All ejb(s) of [MEjbApp] loaded successfully!
EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]
LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!
Not registering AMX MBean against old MBean “com.sun.appserv:j2eeType=WebModule,name=PrjInformat,J2EEServer=server,J2EEApplication=null,category=runtime” due to malformed composite WebModule name.
WEB0302: Starting Sun-Java-System/Application-Server.
JBIFW0010: JBI framework ready to accept requests.
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
validateJarFile(C:\Users\Vinicius\Documents\NetBeansProjects\PrjInformat\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
classLoader = WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader@163956
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@11bbe75
Cannot load create_informat reason : create_informat
java.lang.ClassNotFoundException: create_informat
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:738)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:405)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Cannot load myServlets.Err reason : myServlets.Err
java.lang.ClassNotFoundException: myServlets.Err
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:738)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:405)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Cannot load rebuildTable reason : rebuildTable
java.lang.ClassNotFoundException: rebuildTable
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:738)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:405)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Cannot load create_informat reason : create_informat
java.lang.ClassNotFoundException: create_informat
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:715)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:127)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Cannot load myServlets.Err reason : myServlets.Err
java.lang.ClassNotFoundException: myServlets.Err
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:715)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:127)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Cannot load rebuildTable reason : rebuildTable
java.lang.ClassNotFoundException: rebuildTable
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:715)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:186)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:127)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:813)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:426)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:160)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
deployed with moduleid = PrjInformat
validateJarFile(C:\Users\Vinicius\Documents\NetBeansProjects\PrjInformat\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

[code]

Quando exclui esses servlets que não estou utilizando mais, o mapeamento ainda ficou no web.xml e causava erro qdo eu tentava acessar um servlet… (soh olhar o trace ali…)… Tirei esses mapeamentos e funcionou !!! Obrigado a todos

Estou com um problema semenhante ao seu. Eu uso o servlets do jsf e preciso adicionar mais 2 servlets, como está abaixo:

[code]<?xml version="1.0"?>


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
.jsf
.faces

<servlet>
    <servlet-name>ServletOrgaoGestor</servlet-name>
    <servlet-class>pacote.ServletOrgaoGestor</servlet-class>
</servlet>
<servlet>
    <servlet-name>VisualizaRelatorio</servlet-name>
    <servlet-class>pacote.VisualizaRelatorio</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>ServletOrgaoGestor</servlet-name>
    <url-pattern>/ServletOrgaoGestor</url-pattern>
</servlet-mapping>
<servlet-mapping>
    <servlet-name>VisualizaRelatorio</servlet-name>
    <url-pattern>/VisualizaRelatorio</url-pattern>
</servlet-mapping>
[/code]

O problema é que quando eu chamo uma o link:

<a href="ServletOrgaoGestor">Visualizar Relatórios</a>

ele me dá o erro 404:

[code]HTTP Status 404 - /XXXXXX/pages/relatorio/ServletOrgaoGestor

type Status report

message /XXXXXX/pages/relatorio/ServletOrgaoGestor

description The requested resource (/XXXXXX/pages/relatorio/ServletOrgaoGestor) is not available.
Apache Tomcat/6.0.18[/code]

Alguem tem alguma idéia do que pode ser?

Agradeço.

Amigo… toma cuidado para não ressucitar posts muito antigos… más bem… Como vc resolveu trabalhar com Servlets em JSF??? JSF trabalha com managedBeans… Axo que é por isso q não está funcionando

É verdade, apesar do post não ser tão antigo, as vezes ressucitamos defuntos… rsrsrsrs
eu estava utilizando o servlet do Java Faces, e o problema que aconteceu comigo foi exatamente, que eu coloquei URL pattern nos outros 2. Removi e funcionou.

Valeu.