This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes MalformedURLException while testing Actionservlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "MalformedURLException while testing Actionservlets" Watch "MalformedURLException while testing Actionservlets" New topic

MalformedURLException while testing Actionservlets


Joined: Mar 04, 2003
Posts: 3
Hi there,

I've got the following problem:

While trying to run an ActionServletTest with Mock strutstest i get the following error: java.lang.NullPointerException
at<init>( Code))
at org.apache.xerces.impl.XMLEntityManager.startEntity(
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(
at org.apache.xerces.parsers.StandardParserConfiguration.parse(
at org.apache.xerces.parsers.StandardParserConfiguration.parse(
at org.apache.xerces.parsers.XMLParser.parse(
at org.apache.xerces.parsers.AbstractSAXParser.parse(
at org.apache.commons.digester.Digester.parse(
at org.apache.struts.action.ActionServlet.initServlet(
at org.apache.struts.action.ActionServlet.init(
at javax.servlet.GenericServlet.init(
at servletunit.struts.MockStrutsTestCase.getActionServlet(
at servletunit.struts.MockStrutsTestCase.actionPerform(
at nl.iza.reis.informatieverzoek.actions.InformatieVerzoekActionTest.testVerstuurInformatieVerzoekMetOntbrekendeDrukwerkId(
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(
at junit.framework.TestCase.runBare(
at junit.framework.TestResult$1.protect(
at junit.framework.TestResult.runProtected(
at junit.framework.TestSuite.runTest(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

It starts when the actionPerform() methode is called in the testmethode. I'm using IBM websphere 5.0. It seems that the struts-config.xml cannot be found. I checked the url but and thats the correct url.

Tried to find it with google but without succes.

Thanks in forward!
I agree. Here's the link:
subject: MalformedURLException while testing Actionservlets
jQuery in Action, 3rd edition