Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with J2EE Configuration

 
Joao Lopes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I�m new to the ranch, so hello all!
I need help configuring J2EE on Windows NT.
Here is the problem:
J2EE is installed and it seems to be running.
When I go to my browser and I do:
http://localhost:8000/index.html
I get that purple html page sent in by the server, saying:
"J2EE 1.2.1
Default Home Page
Congratulations!
Viewing this page means that your Web Server has been installed correctly and is serving files properly."
A friend has a J2EE server in a UNIX machine and he is able to manually deploy simple JSP applications into the server.
Here is what happened when I tryed the same on "my" server:
http://localhost:8000/hellouser.jsp
And i got this back:
"Error: 500
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to load class hello.NameHandler"
The example I am trying to load is the classic hellouser that is send in with Tomcat (it runs fine on Tomcat and there I can deploy it manually, but it does not run on J2EE).
I think my problem is a setup problem, nothing else. So here is my setup info:
CLASSPATH=c:\jdk1.3\;c:\jdk1.3\lib\;c:\jdk1.3\jre\lib\
J2EE_CLASSPATH=c:\j2sdkee1.2.1\lib\
J2EE_HOME=c:\j2sdkee1.2.1
JAVA_HOME=c:\jdk1.3
I deployed the app in:
c:\j2sdkee1.2.1\public_html
This is the same dir where I can find the file index.html served correctly by the server.
So, the contents of c:\j2sdkee1.2.1\public_html are:
29/05/01 10:46 <DIR> .
29/05/01 10:46 <DIR> ..
29/05/01 9:37 <DIR> hello
18/05/01 13:30 96 background.gif
18/05/01 13:30 1 305 duke.waving.gif
18/05/01 13:30 1 004 dukebanner.html
25/05/01 14:41 1 580 hellouser.jsp
27/04/00 13:47 1 408 index.html
25/05/01 14:41 971 response.jsp
All files, except index.html, belong to the hellouser app.
Now for the hot spot.
The package hello is inside the dir hello, and this is what J2EE is having trouble finding.
Here is the content of hello (dir):
29/05/01 9:37 <DIR> .
29/05/01 9:37 <DIR> ..
18/05/01 13:30 431 NameHandler.class
18/05/01 13:30 1 111 NameHandler.java
So, this is it.
After writting this down I am going to try the deployment tool and I think it will work, but the process of doing this manually gives an inside not achived with the deployment tool.
Oh well, maybe I have the picture wrong.
Any help is very welcome.
John
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have discovered that doing things with J2EE is not very simple.

There is a J2EE forum here that may help you more. I know it helps me when I get frustrated.

Use the deploytool and then manually examine all the XML descriptors that it produces. This should help you out. Beware though. If you search for posts by me in J2EE, you'll see I'm at wit's end some days, because that deploytool is quite buggy. (or can be).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic