Solved

Cant get log in page of my Jsp application

Posted on 2008-10-30
7
393 Views
Last Modified: 2013-12-02
Hello,

I have Win 2003 R2, with SQL server 2005 installed and application developed in Jsp. This application is not developed by me, but I made all the setup for this application using its installation guide and changing the required parameters in the files.

The two services which are required for this application to run are appearing in windows services. But when I open browser in final step I am getting this message which I am attaching here with. I personally think it is connectivity issue with DB. Please guide me.

from this error log I am assuming it is DB connectivity issue
--------------------------------------------------
10/29/2008 17:07:05 [EROR] cannot instantiate a connection pool  com.jnetdirect.jsql.m: Failed Logon:com.jnetdirect.jsql.m: TCP/IP connection failed to host:java.net.ConnectException: Connection refused: connect url:jdbc:JSQLConnect://192.168.2.10/database=NmPLUSDB
com.jnetdirect.jsql.m: Failed Logon:com.jnetdirect.jsql.m: TCP/IP connection failed to host:java.net.ConnectException: Connection refused: connect url:jdbc:JSQLConnect://192.168.2.10/database=NmPLUSDB
-------------------------------------------------

The error appearing in IE 7 is attached in code snippet,

Kind Regards,
Wajeeh
Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
 

--------------------------------------------------------------------------------
 

type Exception report
 

message Internal Server Error
 

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
 

exception 
 

javax.servlet.ServletException: sun/tools/javac/Main

	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

	at java.lang.Thread.run(Thread.java:595)
 
 

root cause 
 

java.lang.NoClassDefFoundError: sun/tools/javac/Main

	at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)

	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)

	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)

	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)

	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

	at java.lang.Thread.run(Thread.java:595)
 
 
 

--------------------------------------------------------------------------------

Open in new window

0
Comment
Question by:wajeeh_r
  • 4
  • 3
7 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22839174
i think its not able to find jdk.have u installed jdk in ur system.
0
 

Author Comment

by:wajeeh_r
ID: 22839191
Yes,
I have JDK installed in C:\jdk1.5.0_12 and I also set variable JAVA_HOME and NMPlus_HOME where NmPlus is my DB in Sql server 2005.

Regards,
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22839227
are you able to ping this ip 192.168.2.10
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:wajeeh_r
ID: 22839235
Yes, I am able to ping this IP from my laptop and it is also viewable in IP Scan
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22839364
can you write sample java program to check whether you are able to connect the DB or not?
0
 

Author Comment

by:wajeeh_r
ID: 22839411
I am not much into programming, but looking at code I can understand the program flow. If you can help me sending me this sample code so that I can make required parameter changes and run it then.

Thanks,
Wajeeh
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 125 total points
ID: 22839436

public class Test {

public static void main(String args[]) {

    

            try { 

            

            	String url = "url:jdbc:JSQLConnect://192.168.2.10/database=NmPLUSDB"; //You need to modify according to ur 

            	//jdbc 

            	Class.forName("oracle.jdbc.driver.OracleDriver");//u need to replace with ur jdbc driver

            	Connection con;

            

                	con = DriverManager.getConnection(url,

                	"username", "passeord");

             

            	
 

} catch(Exception ex) {

ex.printStackTrace();

}

}

}

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem with Pie chart in Jsp 20 181
method reurn 7 83
eclipse luna javeEE perspecive missing 5 79
java JDK Download 7 65
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now