Problemas Deploy

8 respostas
S

Estou deployando meu war e está dando este problema:

java.lang.reflect.InvocationTargetException
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

Só que o xerces está lá no lib, alguém tem alguma idéia ?

8 Respostas

_fs

Talvez algum dos xmls de configuração não esteja no formato esperado.

A exceção contém apenas esse trecho que você postou?

jgbt

coloca todo o stack do erro, e a estrutura da tua app, p/ facilitar.

[]'s

S
test:test:

[junit] Running com.nexxera.sig.web.httpunit.TestHttpUnitAddEntityAction

java.lang.reflect.InvocationTargetException

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at com.meterware.httpunit.parsing.NekoHTMLParser.parse(NekoHTMLParser.java:41)

at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:255)

at com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1111)

at com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:688)

at com.meterware.httpunit.javascript.JavaScript.load(JavaScript.java:89)

at com.meterware.httpunit.javascript.JavaScriptEngineFactory.load(JavaScriptEngineFactory.java:58)

at com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)

at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:122)

at com.meterware.httpunit.WebClient.getResponse(WebClient.java:113)

at com.nexxera.sig.web.httpunit.TestHttpUnitAddEntityAction.testAddEntity(TestHttpUnitAddEntityAction.java:42)

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

at junit.framework.TestCase.runTest(TestCase.java:154)

at junit.framework.TestCase.runBare(TestCase.java:127)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at junit.framework.TestSuite.runTest(TestSuite.java:208)

at junit.framework.TestSuite.run(TestSuite.java:203)

at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)

at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:848)

at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:556)

at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:532)

at org.apache.tools.ant.Task.perform(Task.java:341)

at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)

at com.werken.werkz.Goal.fire(Goal.java:639)

at com.werken.werkz.Goal.attain(Goal.java:575)

at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)

at com.werken.werkz.Goal.attain(Goal.java:573)

at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)

at com.werken.werkz.Goal.attain(Goal.java:573)

at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)

at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:127)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)

at com.werken.werkz.Goal.fire(Goal.java:639)

at com.werken.werkz.Goal.attain(Goal.java:575)

at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)

at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)

at org.apache.maven.cli.App.doMain(App.java:488)

at org.apache.maven.cli.App.main(App.java:1239)

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

at com.werken.forehead.Forehead.run(Forehead.java:551)

at com.werken.forehead.Forehead.main(Forehead.java:581)

[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3,004 sec
jgbt

nexxera é?
pergunta p/ pequeno gafanhoto…hauhauahuahu!!!

ta rodando pelo ant? tem que colocar no classpath dele tmb.

[]'s

S

Heeehe qualé Joao Cerveja !!

Meu … to rodando pelo maven e ele tá no classpath do maven!

jgbt

pow, nunca usei o maven…
se tu rodar o testCase direto pelo eclipse funciona?

[]'s

S

Funciona hehe, e vai por mim ant é coisa do passado a moda agora é usa o maven irado (puta que pariu que fraca).

È estou desistindo já …

jgbt

se pelo eclipse funciona, então é prob no maven mesmo.
pelo ant não da esses problemas…hehehe.

[]'s

Criado 4 de março de 2005
Ultima resposta 4 de mar. de 2005
Respostas 8
Participantes 3