permaculture playing cards*
The moose likes Servlets and the fly likes jsp/Ultradev/Tomcat/Access/Sybase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp/Ultradev/Tomcat/Access/Sybase" Watch "jsp/Ultradev/Tomcat/Access/Sybase" New topic
Author

jsp/Ultradev/Tomcat/Access/Sybase

Kimberley Nolder
Greenhorn

Joined: Aug 24, 2001
Posts: 2
Hi,
I'm new to this list. I have searched everywhere and bugged everyone I see with a java book. I'm using the following tools to create jsp pages. I wish I knew my problem. I can not get my results.jsp to show up! I keep getting Error 500. I'm not sure if I set my classpath correctly. I'm not even sure if I need a local copy of a tools.jar file (the one my UNIX admin told me about). This is what I typed in my sysedit:
SET PATH=%PATH%;%JAVAHOME%\BIN
SET CLASSPATH=%Classpath%;C:\jakar~1\usr\java\lib\tools.jar;
SET TOMCAT_HOME=c:\tomcat
I've been following instructions from every place I can find a mention of jsp and jakarta. Can anyone give me a clue? My intention is to have a searchable employee database. Type in a last name and bring up data from the sybas table. If I can elaborate please let me know. I don't know enough to form a good question.
Thanks so much!
Kimberley
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

(the one
my UNIX admin told me about). This is what I typed in my sysedit:
SET PATH=%PATH%;%JAVAHOME%\BIN
SET CLASSPATH=%Classpath%;C:\jakar~1\usr\java\lib\tools.jar;
SET TOMCAT_HOME=c:\tomcat

Looks fishy to me...UNIX ADMIN suggesting this for
Windows PATH.........
anyways......thats not important.
Are you able to run Tomcat JSP tutorials?
Where did you place your results.jsp file?
I mean the folder?
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
Do you have JDK installed at all? We need more info to help you out.
Kimberley Nolder
Greenhorn

Joined: Aug 24, 2001
Posts: 2
No, my UNIX system admin didn't give me that path. I tried to infer it from other sources. About the jdk, I have JConnect, is this the same thing as a java development kit? I know my classpath is all wrong. My Unix admin told me I need the following in my classpath: classpath=/usr/java/lib/tools.jar. The thing is, he doesn't know anything about Java and I don't know anything about UNIX or java. I only know html (forms) and databases.
I don't know how to write it correctly when I look at sysedit. I'm working with my files directly on the server. Here is the error message I'm getting now.
Error: 500
Location: /Jakarta/Details/Results.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Bad file argument to include
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(Compiled Code)
at org.apache.jasper.JasperException.(Compiled Code)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled Code)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled Code)
at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compiled Code)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled Code)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
My problem (one of them anyway) is that none of my books tell me how to work with all this software together. Since I don't know Java, I can't "figure out" how to do this on my own. I have been working on this for so long. I truly appreciate your responses. I'm been trying this for so long I can't give up!
Oh, and I don't understand enough to know what to do with a jdk -even though I had one and recently deleted it.
Thank you,
Kimberley
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Goto your tomcat\bin dir and start your tomcat server.
Then point your browser to the following URL: http://localhost:8080
You should see the tomcat homepage and you should be
able to run the examples (servlet eand JSP examples). Thats the first step to verify
that your tomcat server is up and running correctly. Don't worry abt the classpath,
its not important with Tomcat, which automatically sets its own classpath.
(Assuming you have defined TOMCAT_HOME and JAVA_HOME env variables correctly)
Then copy your Results.jsp file to the webapps\examples
folder (for now) and access it like all other examples.
Let us know if you need more help.
Good luck.
- satya


[This message has been edited by Madhav Lakkapragada (edited August 27, 2001).]
mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
Form what i read on the Sybase JConnect is just a set of database drivers.
This is what you need in order to create jsp pages.
-JDK1.3 form http://java.sun.com for whatever system you are going to run it. Download it, install it and configure it.
-tomcat from http://jakarta.apache.org/ Download it, install it and configure it.
When you have all this set up, you are ready to go. Without it you will not get anywhere. So where does the ultradev fit in all this?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp/Ultradev/Tomcat/Access/Sybase