Newbie - Error when trying to view .jsp file on newly running server.

Hello, I'm new and trying to view a .jsp file on my webserver and get this error:

java.io.IOException: CreateProcess: javac -d C:\Blazix\jspdir -classpath C:\Blazix\blazix.jar;C:\Blazix\classes; C:\Blazix\jspdir\desisoft_jsp_intro_jsp1152122045640.java error=2

*The .jsp file I want to view is in the correct folder, and I can view the same file if it is renamed as an .html extension. Plz Help!!!Thanks

[424 byte] By [dunnw45] at [2007-11-26 8:30:32]
# 1
Please check whether you are setting JAVA_HOME environment vairable properly, javac.exe should be in %JAVA_HOME%\bin directory.
floyd at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

What does the JSP contain? Have you tried a simple JSP without any special functions? Does that work? How about catching the exception within the JSP. Will the JSP run and display correctly (of course, without the excepted content)?

Here is an example of how you can catch the exception and prevent the JSP from failing (or at least how to prod it to display despite the error):

<body>

<%

// yada yada yada some code

try{

// Yada yada yada the code that may have the IO problem

// Yada yada yada

}catch(IOException io){

System.err.println("Here is the exception: "+io.toString());

}

%>

Please post back and let us know.

dailysun

dailysun at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

I am having a similar problem. In fact, the exact same problem. I am using Blazix. I have created a local server and can access it just fine. There are no problems displaying HTML files, but when I access a JSP file I get that Dunnw45 gets.

None of the HTML features display, only the error in plain text on a white background. In the Java console window the exception seems to orgininate in: Java.lang.processImpl.create(Native Method) (there are more lines to the error, but I can't copy and paste the error).

I tired writing the example code you suggest, dailysun. But I got the same error. Plain HTML that simply has the extension changed to JSP crashes.

I am using Java SE 1.6.0 beta. Perhaps this is the problem(?).

Birdy at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
it always helps if you could provide your web server version, OS platform. jdk 1.6 is not yet a supported platform on web server 6.1. can't you try with jdk 5.0 or 1.4.2.xhow did you change the jdk version - did you do through admin console ?
chilideveloper at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 5
I am using Blazix 1.2.6 on Windows XP.So the problem is my version of Java? How do I go about testing it with an older version (without uninstalling a reinstalling?) What do you mean, "...change the jdk version"? I downloaded the self-extractor from Sun's website.
Birdy at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...
# 6

well, I am more puzzled by your response than before !. sounds like Blazix is a very different product compared to Sun Java System Web Server (which is what this meant this forum is meant for ) and probably needs a reverse proxy plugin to talk to Sun Java System Web Server.

Are you not posting this question in the wrong forum ?

thanks

chilideveloper at 2007-7-6 21:51:10 > top of Java-index,Web & Directory Servers,Web Servers...