wood burning stoves 2.0*
The moose likes Tomcat and the fly likes basic Tomcat deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "basic Tomcat deployment" Watch "basic Tomcat deployment" New topic
Author

basic Tomcat deployment

Nick D Fisher
Greenhorn

Joined: Oct 03, 2006
Posts: 3
Hi,

I've written my simple JSP application using JDeveloper 10g, and I'm now trying to deploy it to work on an HP-UX server with Tomcat 4.0.

I've managed to get it running from Tomcat on Windows by copying some basic jars and classes to the C:\tomcat\common\classes directory, and everything works fine.

However, I have now tried copying these same files to the same installation on my HP-UX server and I'm getting hundreds of errors. Every time I sort one out it gives me another.

I'm just wondering what would be the basic files I'd need to deploy to my Tomcat server in order to get just a simple page like the following to compile?


<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<jbo:ApplicationModule id="AppModuleDataControl" definition="DataBindings.AppModuleDataControl" releasemode="Stateful" />
</body>
</html>
<jbo:ReleasePageResources />


I've already copied some of the obvious files like DataTags.tld, datatags.jar, bc4jhtml.jar, and made sure they're on the Classpath, but it's not working like it is on Windows.

I'm sure once I know what the basic files are, I can easily work the rest out for myself.

Any help much appreciated!

Many thanks,

Nick.
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi Nick,
Try to put a simple jsp page which just says "Hello world" or something and try to run that and see if you basic setup is good in HP-UX server. If this is success, then try your own page. If you still get errors look in to the tomcat logs and post some of the errors here which will give us better idea to help you.


Regards,
Sivaraman.L
Nick D Fisher
Greenhorn

Joined: Oct 03, 2006
Posts: 3
Hi Sivaraman,

Yes, just a normal jsp page on it's own works fine. All the default jsp example pages are working.

It also works fine if I use the following code:

<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>

hello world

</body>
</html>

So I know it's picking up my DataTags.tld file ok. It's only when you add the ApplicationModule tag that things start to go wrong. This is the error that appears in my browser:


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Unknown Source)
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
org.apache.jsp.test3_jsp._jspService(org.apache.jsp.test3_jsp:89)
org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
org.apache.jasper.servlet.JspServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError
oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:152)
org.apache.jsp.test3_jsp._jspService(org.apache.jsp.test3_jsp:72)
org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
org.apache.jasper.servlet.JspServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



Nick
Nick D Fisher
Greenhorn

Joined: Oct 03, 2006
Posts: 3
Anyone?!

I've been working on this all weekend but still not found a solution. :-/

Cheers,

Nick
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
java.lang.NoClassDefFoundError sounds like some sort of version clash to me. What are the versions of Java and Tomcat on the system that does work versus the versions on the system that doesn't.
NOTE: Tomcat pays NO attention to classpath environment settings - see the tomcat docs on class-loader-howto.html
Bill
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where is your app?
Where is your custom tag's TLD?
Where are the classes for your custom tags?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic Tomcat deployment