aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Java socket server running from witin weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Java socket server running from witin weblogic" Watch "Java socket server running from witin weblogic" New topic
Author

Java socket server running from witin weblogic

robert sturn
Greenhorn

Joined: Jul 17, 2008
Posts: 17
I have requirement that my java server program to be running from within weblogic server.

I created a java Server program which is created as a thread.This thread is started when weblogic starts.



Here is the code for actual request handler




sendMessage



When I run the third party client which talks to ths server program I get socket exception saying connection reset.

If I run this server as an independent program it works fine.
Running from within gives socket exception.

Has anyone faced this problem?I would appreciate your reply since I already spent couple of days on this.

Regards
Robert sk
robert sturn
Greenhorn

Joined: Jul 17, 2008
Posts: 17
This is the exception i get..

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)Inside if if(message.isOneLiner() && message.isHeader())
at java.io.BufferedReader.readLine(BufferedReader.java:362)Entering sendMessage
at com.fapd.lpi.mlpi.util.MLPIRequestHandler.handleRequest(MLPIRequestHandler.java:119)
at com.fapd.lpi.mlpi.util.MLPIRequestHandler.run(MLPIRequestHandler.java:190)
at java.lang.Thread.run()V(Unknown Source)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java socket server running from witin weblogic
 
Similar Threads
how to connect to other machine rather than localhost.
Need Help
SocketPermission
Downloading Java 1.5 (or Java 5.0 also Socket programming
Client-Server Problem