Jump to content

Error occurred during deployment - Java Web Application


Recommended Posts

Posted

Boas,

Surgiu-me agora problema, que vou deixar aqui, para o qual gostaria de contar com a ajuda do pessoal e quem sabe haja alguém no grupo com sugestões.

Tem haver com o servidor glassfish (servidor que vem com a instalação do Netbeans). Estou seguindo o tutorial http://netbeans.org/kb/docs/javaee/ecommerce/intro.html (na parte 6) e após fazer um "setting context parameters" obtive esse erro e por ser novato nessas andanças não está a ser fácil descortinar o erro pelo que deixo o log do Netbeans para ajuda:

In-place deployment at C:\Users\Ricardo Lelis\Documents\NetBeansProjects\MediaSpot\build\web
Initializing...
deploy?DEFAULT=C:\Users\Ricardo Lelis\Documents\NetBeansProjects\MediaSpot\build\web&name=MediaSpot&contextroot=/MediaSpot&force=true failed on GlassFish Server 3.1.2
Error occurred during deployment: Exception while deploying the app [MediaSpot] : org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/javaee":module-name, "http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":distributable, "http://java.sun.com/xml/ns/javaee":context-param, "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping, "http://java.sun.com/xml/ns/javaee":listener, "http://java.sun.com/xml/ns/javaee":servlet, "http://java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-config, "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-file-list, "http://java.sun.com/xml/ns/javaee":error-page, "http://java.sun.com/xml/ns/javaee":jsp-config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/javaee":login-config, "http://java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/javaee":ejb-local-ref, "http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/javaee":resource-ref, "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://java.sun.com/xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-ref, "http://java.sun.com/xml/ns/javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/ns/javaee":data-source, "http://java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list, "http://java.sun.com/xml/ns/javaee":absolute-ordering}' is expected.. Please see server.log for more details.
C:\Users\Ricardo Lelis\Documents\NetBeansProjects\MediaSpot\nbproject\build-impl.xml:724: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 2 seconds)

Clicando no link do erro que o log origina, leva-me para o build-impl.xml para a instrução da linha 724 -

<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>

Onde fica guardado o ficheiro server.log, onde supostamente obteria mais informação? Eu não o encontro no source folder.

Regredi o passos para implementar o "setting context parameter" mas curiosamente continuo com o mesmo erro! Mas é estranho porque antes de implementar o "setting context parameters" (instrução anterior), corri o código e funcionou lindamente.

  • 2 weeks later...
Posted

O server.log não fica no directório do código fonte, é o log do servidor, tens de ver no local de instalação do glashfish onde está o ficheiro.

Depois de o encontrares vê os detalhes do erro, deverá ser suficiente para ultrapassares o problema.

10 REM Generation 48K!
20 INPUT "URL:", A$
30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50
40 PRINT "404 Not Found"
50 PRINT "./M6 @ Portugal a Programar."

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.