Problema iniciando aplicação

3 respostas
A

Tô com problemas pra startar no Tomcat uma aplicação q um amigo me enviou. Eu copio todo o diretório para o Tomcat e quando entro no manager e tento dar o start e me da o erro:

“FAIL - Application at context path /voipbilling could not be started”

o web xml esta da seguinte forma

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
 <context-param>
    <param-name>BILLING_HOME</param-name>
    <param-value>C:\Program Files\Apache Group\Tomcat 4.1\webapps\voipbilling</param-value>
  </context-param>
 <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <servlet-mapping>
       <servlet-name>invoker</servlet-name>
       <url-pattern>/servlet/*</url-pattern>
  </servlet-mapping>

 <!-- Define a Security Constraint on this Application -->
  <security-constraint>
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/conf/*</url-pattern>
   </web-resource-collection>
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/cards/*</url-pattern>
   </web-resource-collection>
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/logs/*</url-pattern>
   </web-resource-collection>
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/schema/*</url-pattern>
   </web-resource-collection>
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/cgi-bin/*</url-pattern>
   </web-resource-collection>	
   <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/scripts/*</url-pattern>
   </web-resource-collection>	
    <auth-constraint>
       <!-- NOTE:  This role is not present in the default users file -->
       <role-name>ispbilling</role-name>
    </auth-constraint>
	
  </security-constraint>

  <!-- Define the Login Configuration for this Application -->
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat ISP Billing Application</realm-name>
  </login-config>

 </web-app>

A estrutura da pasta do projeto esta assim

08/05/2006 11:15 <DIR> .
08/05/2006 11:15 <DIR> …
08/05/2006 11:15 <DIR> billing
08/05/2006 11:15 <DIR> cards
08/05/2006 11:15 <DIR> conf
08/05/2006 11:15 <DIR> customer
08/05/2006 11:15 <DIR> help
24/06/2004 21:44 735 index.html
08/05/2006 11:15 <DIR> invoices
24/06/2004 21:44 705 login.html
08/05/2006 11:15 <DIR> logs
08/05/2006 11:15 <DIR> menuhelp
16/05/2003 23:32 294.912 mysql.exe
08/05/2006 11:15 <DIR> Radius
08/05/2006 11:15 <DIR> schema
08/05/2006 11:15 <DIR> scripts
08/05/2006 11:15 <DIR> services
08/05/2006 11:15 <DIR> vendor
08/05/2006 11:15 <DIR> WEB-INF
3 arquivo(s) 296.352 bytes
16 pasta(s) 1.360.404.480 bytes disponíveis

Alguem pode me ajudar?

3 Respostas

F

Se o arquivo que ele te enviou for o .war vc entra no manager, vai em procurar, acha o .war e da deploy, o projeto aparecera na tala. ai é so clicar…

G

Há algum erro de sintaxe no XML ? para verificar se há agum erro, recomendo a instalção de um plugin XML.

A mesma aplicação estava rodando no TomCat do seu amigo ? qual a versão ?

A

No projeto não existe o arquivo war. No Tomcat dele tambem não funciona, por isso ele me mandou. Só achei estranho q neste projeto não existe o arquivo de context.xml, o context esta especificado no web.xml, tem algo fatando nesse projeto, mas não to conseguindo identificar.

Criado 8 de maio de 2006
Ultima resposta 8 de mai. de 2006
Respostas 3
Participantes 3