SonalPSPL Bagmar

Greenhorn
+ Follow
since Jul 29, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by SonalPSPL Bagmar

this is the complete error ...

HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\appraisal\org\apache\jsp\jsp\Login_jsp.java:8: cannot access java.lang.Object


Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
implements org.apache.jasper.runtime.JspSourceDependent {
^
1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28
20 years ago
JSP
Hi,
I am new to J2EE technology. I am trying to write a jsp page. but while executing it is giving the following error :

=======================================================================
HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
=======================================================================

Any clues ?

Regards
SONAL
20 years ago
JSP
Hi all ,

why is the result of following code = 5 ? while ++i gives the result as 6 !

int i = 5;
i = i++;
System.out.println(i);

Regards
SONAL
Hi all,
the following cmd gives me an Exit status as '1' i.e. unsuccessful termination. any comments ?

Process cmd_su = Runtime.getRuntime().exec("su - imail -c 'cd lib;imservping'");

whereas this cmd works perfectly fine
Process cmd_su = Runtime.getRuntime().exec("su - imail -c 'id' ");


Regards
SONAL
20 years ago
Process cmd_su = Runtime.getRuntime().exec("su - imail");
20 years ago
Hi all,
i want to pass password to a unix command. is there anything wrong with the following code snippet....??its not writing the password there...

//---------------------------------------------------------------------
BufferedReader stdInput = new BufferedReader(new InputStreamReader(cmd_su.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(cmd_su.getErrorStream()));
OutputStream stdOut = cmd_su.getOutputStream();
String pswd = "mypwd";

stdOut.write(pswd.getBytes());
stdOut.flush();
//----------------------------------------------------------------------

Thanks
SONAL
20 years ago
Hi all,
i want to run various unix cmds like su, cd ,and also shell scripts thru java prg..
but using Runtime.getRuntime().exec("su - imail") , i am not able to attain control over the imail user id over the session. is it that the process runs and terminates? i want to actually switch to user imail thru java code.
any help ? also when i do
Runtime.getRuntime().exec("cd bin") , i want to be physically located at that position.

any alternative ?


Regards
SONAL
20 years ago
HI all,
i want to run various Unix cmds thru a java prg. following is the code which i have written.
-------------------------------------------------------------------
import java.io.*;

class Run
{
public static void main(String[] args)
{
String ls_str;
try{
Process cmd_su = Runtime.getRuntime().exec("cd /users");

BufferedReader ls_in = new BufferedReader(new InputStreamReader(cmd_su.getInputStream()));

try {
while ((ls_str = ls_in.readLine()) != null) {
System.out.println(ls_str);
}
} catch (IOException e){
System.exit(0);

}

}catch(Exception e){
e.printStackTrace();
}
}
}
--------------------------------------------------------------------
why is it that i cant see the dir changed to /users ?also the cmd
su (switch users) doesnt work !!!
any pointers will help me solving my problem ...

Thanks & Regards
SONAL
20 years ago
Hi all,
I want to check through my java code whether a database instance is running or not . any directions??


SONAL
Hi All
i want to check through java code whether my oracle database on the server machine (solaris platform) is up and running.
How can i do that? any hints / ideas....


Regards
SONAL
Hi all,

Does anybody know how can i run an .exe file , say notepad or edit or my.exe, from javascript.
Is there any in-built function to do that job.


Regards
SONAL
Hi all,

i m getting the err as

Database property 'dbLogin' not available

when trying to run my .java file .
plz can anyone help me solving it

Regards
SONAL
20 years ago
Hi All,
i m facing the following error when trying to run my code...

Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at com.openwave.cdp.device.SSPMDeviceDataStore.<clinit>(SSPMDeviceDataStore.java:129)


Can anyone explain to me whatz the cause of this ...

Regards
SONAL
20 years ago
Hi all,
i want to know whether my function returns some value or it returns NULL .
something like

if(valueExists(request.getParameter("domainId")))
{
}

Plz can anyone tell me the solution or alternate method to do this ...

Regards
SONAL
20 years ago
root:>javac TestClient.java

error: Class javax.naming.Referenceable not found in class org.apache.axis.client.Service.


can anyone help me solving ths problem....
i have included appropriate jar files in the classpath

Regards
SONAL
20 years ago