Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Error with servlets in runtime  RSS feed

 
Andrew Yadlapa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 in the Data Center. The client watned to make a couple of changes and they wated 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 and pull up my login info? 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
Can some body help me with this?
 
Andrew Yadlapa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Andrew", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
[ June 13, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
And please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!