Results 1 to 1 of 1
- 04-17-2013, 07:12 PM #1Member
- Join Date
- Apr 2013
- Rep Power
Critical and interesting issue: Unable to Load resource <>.dtd
We developed an application named "Receiver" which will run inside Websphere application client container. We have an interface that connects to another application "sender" that has a script named EAC connected to our server with socket and send some commands. We Receiver application on our server works as a Socket server listen on a Port (Ex: 51001) and accepts the commands coming from the Sender application. We will parse that command and trigger a workflow.
The receiver application monitor the Sender. the sender EAC script will send Heartbeat messages. We will maintain Threads to accept and parse the commands (Each thread maintains one command). This main thread uses MINA lib. It works as a socket server and listens at the port 51001.
Once the Receiver application receive the command sent by Sender, We construct an argument array of the command and use WorkFlowCLI.class. The code is below,
String newArgs = new String;
newArgs = "-v";
newArgs = "-opsFile";
newArgs = opsFilePath;
newArgs = "-op";
newArgs = "OneX Access Restriction";
newArgs = "-command";
newArgs = info.getCommandString();
WorkflowCLI cli = new WorkflowCLI();
In the run method, we are getting java.io.IOException: couldn't load resource ops11.dtd But when we see the EAR file which has the JAR of WorkflowCLI.class, it has the ops11.dtd packaged. But when we see the run() method, they are doing class.getResourceAsStream() to load the class instead Thread.currentThread().getContextClassLoader().
Will this cause above exception? We have see another problem, when they do any UPGRADES of Sender applications, we see the similar issue even though no changes in Receiver application. But when we do restart of receiver applicatiion the issue is gone. Why was this happenning?
Appreciate your help.
- By tejkiransharma in forum Apache MavenReplies: 0Last Post: 12-31-2012, 03:44 PM
- By Stoyicker in forum Advanced JavaReplies: 1Last Post: 06-08-2012, 08:11 PM
- By shanthi in forum Java AppletsReplies: 1Last Post: 02-28-2011, 04:55 PM
- By jayyu317 in forum New To JavaReplies: 0Last Post: 03-22-2010, 02:58 AM
- By shantanu.rathore in forum NetBeansReplies: 1Last Post: 02-12-2010, 08:34 AM