Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 21st, 2004, 07:28 AM
Registered User
 
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)



Reply With Quote
  #2 (permalink)  
Old January 21st, 2004, 07:44 AM
Friend of Wrox
 
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
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2004, 12:49 AM
Registered User
 
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

Reply With Quote
  #4 (permalink)  
Old March 1st, 2011, 07:55 AM
Registered User
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to get photo upload using webcam in java

Hi
I want to know how to get photo upload using webcam in java

Regards
Kotaiah.K
Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 02:16 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.