p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Java and JDK > JSP Basics
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 21st, 2004, 08:28 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Root Cause:java.lang.NoSuchMethodError: java.util.

i am using Tomcat4.0 and Struts 1.1, and i am getting following Error when i run my application. Can anyone help me regarding this problem.
thanks in advance


Root Cause:
java.lang.NoSuchMethodError: java.util.logging.Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    at org.apache.commons.logging.impl.Jdk14Logger.log(Jd k14Logger.java:126)
    at org.apache.commons.logging.impl.Jdk14Logger.info(J dk14Logger.java:193)
    at org.apache.struts.util.PropertyMessageResources.(P ropertyMessageResources.java:127)
    at org.apache.struts.util.PropertyMessageResourcesFac tory.createResources(PropertyMessageResourcesFacto ry.java:90)
    at org.apache.struts.util.MessageResources.getMessage Resources(MessageResources.java:577)
    at org.apache.struts.action.ActionServlet.initInterna l(ActionServlet.java:1329)
    at org.apache.struts.action.ActionServlet.init(Action Servlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:366)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:856)
    at org.apache.catalina.core.StandardWrapper.allocate( StandardWrapper.java:621)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:215)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invok e(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2366)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:164)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:566)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:462)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNe xt(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.p rocess(HttpProcessor.java:1005)
    at org.apache.catalina.connector.http.HttpProcessor.r un(HttpProcessor.java:1098)
    at java.lang.Thread.run(Unknown Source)



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old January 21st, 2004, 08:44 AM
Friend of Wrox
Points: 370, Level: 6
Points: 370, Level: 6 Points: 370, Level: 6 Points: 370, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is it something simple; like not importing the java.util.logging.Logger class?

Cheers

Martyn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2004, 01:49 AM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No martyn i did try that but that did't solved my problem.
ok this is my action class code:

package Classes;

import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class AddBookAction extends Action
{
  public ActionForward execute(ActionMapping mapping, ActionForm form,
                                 HttpServletRequest request,HttpServletResponse response)
        {
          ServletContext ctx = servlet.getServletContext();
          Catalog catalog = (Catalog)ctx.getAttribute("catalog");
          ShoppingCart cart = (ShoppingCart)form;
          int book = Integer.parseInt(request.getParameter("index"));
          cart.addBook((Book)catalog.get(book));
          return mapping.findForward("success");

          }

}


Regards:

Anees

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
java.lang.StackOverflowError ravi_sri24 XSLT 31 February 1st, 2008 09:48 AM
problem with java.util.Date kanoorani Java Basics 1 April 20th, 2007 02:48 AM
java.lang.IllegalStateException: priyatowin J2EE 0 September 13th, 2006 11:57 PM
java.lang.StackOverFlowError mrafeeq J2EE 1 August 10th, 2006 04:34 PM



All times are GMT -4. The time now is 11:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc