Solved

Cant get log in page of my Jsp application

Posted on 2008-10-30
7
395 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

14 Experts available now in Live!

Get 1:1 Help Now