File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Connectivity issue while running app on local system!!! Problem detailed clearly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connectivity issue while running app on local system!!! Problem detailed clearly" Watch "Connectivity issue while running app on local system!!! Problem detailed clearly" New topic
Author

Connectivity issue while running app on local system!!! Problem detailed clearly

Andrew Yadlapa
Greenhorn

Joined: Jun 13, 2007
Posts: 10
Hi, I am new to working on WSAD . We have an application that needs the user to log in before he can do anything . Basically the login page is the first page.

This application is running in our runtime environment well and good at the Data Center. The client wanted to make a couple of changes and they wanted me to do that on WSAD. But when I deploy that ear file onto WSAD of my system and try to run it, it doesn't seem to be catching up the servlets well . Is it because of my system unable to connect to the DataBase tables(DB2) and pull up my login info ? I get the connectivity issues mentioned below as soon as I try to run the application. The problem I'm getting is - It says

1) Did not realize init() exception thrown by servlet DownLoadServlet: javax.servlet.ServletException: TcpIpConnection.connect(): Cannot call connect method until both IP address and port have been set.

2) [Servlet Error]-[DownLoadServlet]: Failed to load servlet: java.net.UnknownHostException: TcpIpConnection.connect(): Cannot call connect method until both IP address and port have been set.

The "cannot call ...bla bla bla was set by us to notify if either port no or IP Address are not specified."


I gave it the properties file giving it which port to connect to and which ip address to connect to. But alas it won't. Am I placing it in the wrong place ? Are there some settings/preferences that we need to set for WSAD before it can actually pick up connection issues from application? Please clarify and help me out.
Thanks,
Your dearest dumb fellow
Andrew Yadlapa
Greenhorn

Joined: Jun 13, 2007
Posts: 10
Here is a prt of error log I get when I try to log in.
It keeps on saying port number is 0 and IP addres is ""
[6/13/07 9:35:39:828 PDT] 413e49ce WebGroup I SRVE0180I: [TCM] [/tcm] [Servlet.LOG]: /index.jsp: init
[6/13/07 9:55:43:688 PDT] 5bf789ce WebGroup I SRVE0180I: [TCM] [/tcm] [Servlet.LOG]: /Pages/index_login.jsp: init
[6/13/07 9:56:00:110 PDT] 5a73c9ce SystemOut O Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserServlet: UserServlet.doTask(): Page=UserLogin, Bttn=Login
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserServlet: problem reading namespace bindings : javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: tcm/PORT: First component in name tcm/PORT not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserServlet: properties file has a non numeric port number: java.lang.NumberFormatException: For input string: ""
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.networking.TcpIpConnection: TcpIpConnection.setPort(): port is 0
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserServlet: problem reading namespace bindings : javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: tcm/IP_ADDRESS: First component in name tcm/IP_ADDRESS not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.networking.TcpIpConnection: TcpIpConnection.setIpAddr(): ip address is
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.networking.TcpIpConnection: TcpIpConnection.connect(): java.net.UnknownHostException: TcpIpConnection.connect(): Cannot call connect method until both IP address and port have been set.
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserDataBean: Problem communicating with mainframe: java.net.UnknownHostException: TcpIpConnection.connect(): Cannot call connect method until both IP address and port have been set.
Wed Jun 13 09:56:00 PDT 2007: gov.ca.dhs.tcm.user.UserServlet: UserServlet.gotoPage(): Page=6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connectivity issue while running app on local system!!! Problem detailed clearly