It's not a secret anymore!
The moose likes Struts and the fly likes struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts" Watch "struts" New topic


chandana sapparapu
Ranch Hand

Joined: Sep 28, 2002
Posts: 63
I have this JSP which uses some tlds. I have all these tlds directly under web-inf. I get the following exception. Could you tell me if it's an issue with placing files at the wrong location?
The struts.jar file is in its right position (under lib directory of the web app)
Someone please help me!
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<title><bean:message key="index.title"/></title>
<body bgcolor="white">
<h2>Create a book</h2>
<html:form action="" method="GET">
Title:<html:text property="title"/> <br/>
<html:submit property="submit"/>
Error 500--Internal Server Error
at jsp_servlet.__createbook._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl$
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
We have a special forum just for Struts questions, so I have moved this thread there for you.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The TLD references in your JSP are correct, and the struts.jar is in WEB-INF/lib as it should be. So, the next question is, which class is the NoClassDefFoundError referring to? Does the stack trace really not tell the name of the missing class?
If I had to guess, I'd say you're missing some commons-* library from your WEB-INF/lib directory. Here's a list of the .jar files my Struts 1.1 distribution has included in the sample webapp's lib directory:

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: struts
It's not a secret anymore!