Java.lang.NoSuchMethodError using beans and JSP

Hi,
I get a
java.lang.NoSuchMethodError: Unit.UnitBean.execSQL(Ljava/lang/String; Ljava/sql/ResultSet;
when i try to call that method from my jsp page. I can call all other methods in teh bean but I can't understand why it can't find execSQL when it finds every thing else.
Any help would be greatly appreciated.
Mike
Heres a copy of my java bean code:
package Unit;
import java.sql.*; 
import java.io.*; 
public class UnitBean
     Connection con;
     String error;
     public boolean connect() throws ClassNotFoundException,SQLException
          String StudentNumber = "xxx";
          String strHost = "xxxx";
          String strConnectURL = ("jdbc:postgresql://" + strHost + "/");
          String strUser = "xxxx";
          String strPassword = "xxxxx";
          Class.forName("org.postgresql.Driver");
          con = DriverManager.getConnection(strConnectURL, strUser, strPassword);     
          return true;
     public void disconnect() throws SQLException
          con.close();
     public ResultSet execSQL(String sql)throws SQLException
          Statement s = con.createStatement();
          ResultSet rs = s.executeQuery(sql);
          return rs;
     public String test()
          String Mike="HIHIHIHIHI";
          return Mike;
}And the jsp code:
<%@ page language="java" contentType="text/html"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="Unit" class="Unit.UnitBean" scope="page"/>
<html>
     <head>
          <title>Test My Bean!!!!???!!?!</title>
     </head>
     <body>
          <%
               String SQL ="Select * from unit where unitid='CMPS2B26'";
               ResultSet rs =null;
               try
                    Unit.connect();
                    rs = Unit.execSQL(SQL);
                    while(rs.next())
                              out.println(rs.getString("unitid"));
                    Unit.disconnect();     
               catch(Exception e)
                    out.println("<p>Problem with jsp code" +e);
          %>
          This is a jsp page.
          <p><a href = "http://stuweb3.cmp.uea.ac.uk/~xxxx/index.html">Click here for home page</a>
     </body>
</html>

Yeah, that worked great, thanks a lot. I thought that JSP compiled when you changed it and then visited it, but i've tried that. I just ran ant stop start on my server and it's all working.
Thanks again :)
Mike

Similar Messages

  • Java.lang.NoSuchMethodError using BasicHttpContext

    Hello
    I want to write a simple ChatClient.
    package com.inz.chat.client;
    import java.io.IOException;
    import java.io.InputStream;
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.ClientProtocolException;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
    public class ChatClient
         private HttpClient httpClient;
         private String servletUrl;
         public ChatClient(String urlPrefix)
              this.servletUrl = urlPrefix + "ChatServlet";
              this.httpClient = new DefaultHttpClient();
              connectWithServer();
         private void connectWithServer()
              System.out.println("connect to " + servletUrl);
              HttpGet httpget = new HttpGet(servletUrl);
              try {
                   HttpResponse response = this.httpClient.execute(httpget);
                   HttpEntity entity = response.getEntity();
                   if (entity != null)
                       InputStream instream = entity.getContent();
              } catch (ClientProtocolException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public static void main(String[] args)
              String prefix = "http://127.0.0.1:8080/InzChat/";
              new ChatClient(prefix);
    }But when i start the program i always get:
    Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpContext: method <init>()V not found
         at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:273)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
         at com.inz.chat.client.ChatClient.connectWithServer(ChatClient.java:30)
         at com.inz.chat.client.ChatClient.<init>(ChatClient.java:22)
         at com.inz.chat.client.ChatClient.main(ChatClient.java:48)I tried to use httpcore-4.0.jar and httpcore-4.1.jar, but the error is always the same. In other projects I used httpcore-4.1.jar to establish http connections without any problems, but here is something wrong...
    Next to the jre1.6 classes and the tomcat 6 classes I have appframework-1.03.jar, commons-codec-1.4.jar, commons-logging-1.1.1.jar, httpclient-4.1.1.jar, httpclient-cache-4.1.1.jar, httpmime-4.1.1.jar set to the classpath, but there seems to be a problem
    I' m using Eclipse for develpoment and I hope someone knows what to do here...
    Kind regards,
    Chang
    Edited by: Chang on 02.09.2011 04:58

    Hello EJP thanks for your answer.
    I put the jar files in the Project Properties->Java Build Path dialog to the project like i did it many times before. Now i added httpcore-4.0.jar and httpcore-4.1.jar to the classpath, but no difference the error is still the same. I don't know which jar files get used at runtime.
    Alternatively i put the jar files in a lib folder under the WEB-INF folder, but the error leaves the same.
    Can you please explain me the solution a little more detailed.
    Kind regards,
    Chang

  • Java.lang.IllegalAccessException using Reflection and SSL

    Hi all,
    I am getting the java.lang.IllegalAccessException when trying to access the field's value. I'm passing an object that has it's fields set. I'm trying to determine the object passed to my method, get the object's fields, get the field values and store them in an array for later processing. The italic line is where the error occurs. I'm running SSL and my constructors for the objects that I'm passing are all declared "public".
    Can anyone help me fix this problem or suggest a better way?
    Thanks.
    *my method
        public void setHtFields( Object obj ) throws Exception
            setAction( "view" );
            setRecType( obj.getClass().getName() );
            Field flds[] = obj.getClass().getDeclaredFields();
            String fieldList = "";
            String value = "";
            for ( int x=0; x<flds.length ; x++ )
    value = flds[x].get(obj).toString();            htFields.put( flds[x].getName(), value);
                fieldList +=  flds[x].getName() + "::" + value + "~";
            setFieldValue( fieldList );
            insertRecord();
            return;
    * stack trace
    java.lang.IllegalAccessException
         at java.lang.reflect.Field.get(Native Method)
         at com.yoursummit.utils.historyLogging.setHtFields(historyLogging.java:276)
         at org.apache.jsp.edit_emp_jsp._jspService(edit_emp_jsp.java:99)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:479)

    The object your are invoking setHtFields on must be declaring some private or protected fields which you can't access.
    If you try printing the thrown IllegalAccessException message, not just a stack trace, you will see which exacly one.

  • Help!!! JSP, java.lang.NoSuchMethodError (made me fed up)

    It is very very confused to me. The same code works very well under
    http://localhost:8084 can not work on http://10.28.XX.XX:8080
    It is a login program. It is very simple, to pass a userID and password to a JavaBean. If Bean checkes the user is valid, then telephone number will return. The follwing code is my fragment code..
    Bean code..
    public String getRoomNumber() {
    return roomNumber;
    public String getTelephoneNumber() {
    return telephone;
    JSP code
    if(userIsExist && userIsValid)
    userName = login.getUserName();
    roomNumber = login.getRoomNumber();
    division = login.getDivision();
    telephone = login.getTelephoneNumber();
    This code works very well under the localhost:8084, it can not work on the 10.28.XX.XX:8080
    Also getUserName, getRoomNumber and getDivision can work, only getTelephoneNumber can not work.
    It will gerate error
    javax.servlet.ServletException: login.LoginBean.getTelephoneNumber()Ljava/lang/String;
         root cause
    java.lang.NoSuchMethodError: login.LoginBean.getTelephoneNumber()Ljava/lang/String;
    Very very strange.
    Thanks for any helps

    Thank you very much for your reply. You are correct.
    Tomcat version on port 10.28.XX.XX:8048 is 5.0.19 and
    on port 8080 is 5.0.28. I assuem maybe I install two
    different Tomcat versions cause the problem. Thank you
    sooooo much.
    But I am still a bit confused, the same code can be
    run on 5.0.19 and can't on 5.0.28.
    DaanBut, if they are different versions of Tomcat, they are not the same instance of Tomcat. That means you are editing/testing with a JavaBean that you are not running with.
    1) Make sure you put the Bean (and its package) in the WEB-INF/classes directory of the running Tomcat instance.
    2)Try restarting the running Tomcat server (at http://10.28.xxx.xxx:8080) to be sure that the newest Bean is being used in the application.
    3) Always deploy your applications (move from testing (localhost) to running server) using a WAR file. This will force the context to reload, and ensure you are using the most current version of the classes in the application. This is especially important in cases where you do no have access to restart the server as suggested in #2) If you need help on how to deploy via WAR, search these forums, and google.

  • Java Beans and JSP Arrays

    Hi..
    I am trying to pass a 2D String array to a Java Bean and i am getting
    "java.lang.NoSuchMethodError"
    Any Ideas?
    Thanks
    Joe
    Jsp Call
    Sorts s = new Sorts();
    s.getTotal(items);
    "items[][]" is a 2 dimentional arrays and size can vary..
    Java Bean
    public class Sorts implements Serializable {
    public double getTotal(String sItems[][]){
    double aSum=0;
    for(int i=0;i<sItems[0].length;i++){
    aSum=aSum+(Double.parseDouble(sItems[1])*Double.parseDouble(sItems[2][i]));
    return aSum;

    Can someone show me how to pass a 2 Dimentional Array to a Java Bean method? obviously i am doing something wrong.
    Joe
    Hi..
    I am trying to pass a 2D String array to a Java Bean
    and i am getting
    "java.lang.NoSuchMethodError"
    Any Ideas?
    Thanks
    Joe
    Jsp Call
    Sorts s = new Sorts();
    s.getTotal(items);
    "items[][]" is a 2 dimentional arrays and size can
    vary..
    Java Bean
    public class Sorts implements Serializable {
    public double getTotal(String sItems[][]){
    double aSum=0;
    for(int i=0;i<sItems[0].length;i++){
    aSum=aSum+(Double.parseDouble(sItems[1])*Double.pars
    Double(sItems[2][i]));
    return aSum;

  • Java.lang.NoSuchMethodError from CMP bean

    Hello guys,
    Iam trying to convert some of my BMP beans to CMP. I removed all the SQL from the EJB and changed my deployment profile. My deployment went fine..(i was able to generate the SQL's) and the tables were successfully created...but when i run the application it throws:
    java.lang.NoSuchMethodError: BookEJB: method ejbFindByPrimaryKey(Ljava/lang/String;)Ljava/lang/String; not found
    on ejbFindByPrimaryKey method..The primary key is of type java.lang.String which gets mapped to a VARCHAR2(255) on my table..Iam using J2EE RI with Oracle8i on win2000... My EJB doesn't contain the ejbFindByPrimaryKey method but my HOME interface contains the findByPrimaryKey method..
    ANy help would be appreciated!!
    TIA
    Clement

    hi!
    i think you should define ejbFindByPrimaryKey() method yourself, because its a requirment that you have to define ejbFindByPrimaryKey () .
    bye.

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo. ini

    Hi,
    I encountered this error when first deploying my Web App in the Apache Tomcat 5.5.7 Manager and launching my login .jsp:
    Any ideas? *.tld files?
    Thsiis a vendors *.war file so I am very unsure of code(jsp's) used.
    Need more info?
    Please let me know.
    TIA!
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    Aug 3, 2005 4:40:44 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:179)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)

    Hi,
    Apparently changig the CLASSPATH did the trick.(changing path to servlet-api.jar)
    We can view the JSP's in the WAR file now without exceptions, able to use the Logon.jsp page now.
    Else, Thanks for the insight to looking inside the WAR file...
    [root@msnweb webapps]# jar tvf optix-web.war | grep -i "api"
    124720 Thu Aug 04 13:09:28 CDT 2005 WEB-INF/lib/xml-apis.jar
    [root@msnweb webapps]# jar tvf optix-web.war | grep -i "servlet"
    11930 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/DataStreamServlet.class
    5203 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/DeleteFolderItemServlet.class
    12307 Thu Aug 04 13:09:26 CDT 2005 WEB-INF/classes/OpenObjectServlet.class
    66697 Thu Aug 04 13:09:28 CDT 2005 WEB-INF/lib/servlet-lib.jar
    I just looked in the /Webapps dir where Tomcat extracted the *.war file and put the JSP's, that correct as well?

  • Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo

    Hi All,
    I am getting the following error when i create a jsf jsp page and build it in jdeveloper.
    Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    when i build the application by simply creating jsp not jsf jsp then it works well.
    Could you any tell me how to fix this? i searched in forums but i didn't find relevant solution.
    Thanks,
    Udhaya

    Hi!
    Can you tell us what version of JDeveloper you are using, and what steps you took to create the JSF page? Like, write from scratch or use the JSF page wizard?
    Also, can you check your project properties, and check that the JSF libraries are included, and JSF tag libraries set up?
    Regards,
    Jeroen van Veldhuizen

  • Java.lang.NoSuchMethodError when try to use RDBMS WLI adapter sp2

    Hi,
    We have encountered a problem when trying to use the latest version of the WLI
    RDBMS adapter downloaded from the website.
    This adapter comes as an ear file of size 4026K.
    Has anyone been able to get this version to work??
    Was using the earlier version of size 3278K happily but found a few bugs in it
    so wanted to use the later version but when we do, we can't call any Application
    View services.
    When we try to call a service we get the error:
    java.lang.NoSuchMethodError at com.ibi.beardbms.cci.InteractionImpl.execute(InteractionImpl.java:217)
    at
    com.bea.adapter.cci.AbstractDocumentRecordInteraction.execute(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean_g38mgs_EOImpl.invokeService(ApplicationViewBean_g38mgs_EOImpl.java:732)

    Hi Adam,
    You need to get Patch CR095687 in order to use this adapter with SP2, (and
    stop this exception). It's mentioned in the release notes
    (http://edocs.bea.com/wladapters/rdbms/docs70sp2/pdf/relnotes.pdf), a the
    bottom of page 3. You need to contact BEA support for this patch.
    Dave
    "Adam Finlayson" <[email protected]> wrote in message
    news:3ea8f771$[email protected]..
    >
    Hi,
    We have encountered a problem when trying to use the latest version of theWLI
    RDBMS adapter downloaded from the website.
    This adapter comes as an ear file of size 4026K.
    Has anyone been able to get this version to work??
    Was using the earlier version of size 3278K happily but found a few bugsin it
    so wanted to use the later version but when we do, we can't call anyApplication
    View services.
    When we try to call a service we get the error:
    java.lang.NoSuchMethodError atcom.ibi.beardbms.cci.InteractionImpl.execute(InteractionImpl.java:217)
    at
    com.bea.adapter.cci.AbstractDocumentRecordInteraction.execute(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    atcom.bea.wlai.client.bean.ApplicationViewBean_g38mgs_EOImpl.invokeService(App
    licationViewBean_g38mgs_EOImpl.java:732)

  • Java.lang.NoSuchMethodError implementing stateless session bean

    Hello all,
    I am running Weblogic 5.1 on Windows 2000 using the JDK 1.2.2 and the
    J2SDKEE 1.2.1.
    I have created and successful deployed a state session bean as provided
    by the example given at this url:
    http://www.weblogic.com/docs51/examples/ejb/basic/statelessSession/index.html
    Upon running the client I get the following error:
    Beginning TraderClient...
    user: system
    Creating a trader
    There was an exception while creating and using the Trader.
    This indicates that there was a problem communicating with the server:
    java.rmi.RemoteException: ; nested exception is:
         weblogic.rmi.ServerError: A RemoteException occurred in the server method
    - with nested exception:
    [java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method
    findMethodInfo(Ljava/lang/String;)Lweblogic/ejb/internal/MethodInfo; not
    found]
    End statelessSession.Client...
    Here is my classpath for starting the Trader Client:
    java -ms64m -mx128m -classpath
    %WEBLOGIC_HOME%\classes;%WEBLOGIC_HOME%\lib\weblogic510sp11.jar;%WEBLOGIC_HOME%\lib\weblogic510sp11boot.jar;%WEBLOGIC_HOME%\lib\weblogicaux.jar;%WEBLOGIC_HOME%\lib\weblogicbeans.jar;%WEBLOGIC_HOME%\lib\weblogic-tags-510.jar;%WEBLOGIC_HOME%\lib\rmiForMs;%J2SDK_HOME%/lib/j2ee.jar;D:\jdk1.2.2/lib/dt.jar;%PM_ROOT%/lib/hoejbserver.jar;%PM_ROOT%/lib/jcert.jar;%PM_ROOT%/lib/jndi.jar;%PM_ROOT%/lib/jnet.jar;%PM_ROOT%/lib/jsse.jar;%PM_ROOT%/lib/junit.jar;%PM_ROOT%/lib/ldap.jar;%PM_ROOT%/lib/pminput.jar;%PM_ROOT%/lib/pmipdr.jar;%PM_ROOT%/lib/pmopenview.jar;%PM_ROOT%/lib/pmtmn.jar;%PM_ROOT%/lib/pmtools.jar;%PM_ROOT%/lib/pmutil.jar;%PM_ROOT%/lib/pricemaker.jar;%PM_ROOT%/lib/providerutil.jar;%PM_ROOT%/lib/test.jar;%PM_ROOT%/lib/classes12.zip;%PM_ROOT%/lib/hoejbserver.jar;%PM_ROOT%/lib/hoejbclient.jar
    com.rii.pricemaker.ho.ejb.client.trader.TraderClient
    "t3://localhost:7001" "system" "weblogic"
    Here is my startup script for the web logic server:
    java -classpath c:\weblogic\classes\boot
    -Dweblogic.class.path=c:\weblogic\classes;c:\weblogic\license;c:\weblogic\lib\weblogicaux.jar;c:\weblogic\myserver\serverclasses
    -Djava.security.manager
    -Djava.security.policy==c:\weblogic\weblogic.policy
    -Dweblogic.system.home=c:\weblogic weblogic.Server
    Could anyone please give me a clue as to what I might be doing wrong?
    Thanks
    Bediako George

    Thanks alot Matthew, reordering my classpath as follows when starting
    the server did the trick:
    java -classpath
    c:\weblogic\lib\weblogic510sp11boot.jar;c:\weblogic\classes\boot;
    -Dweblogic.class.path=C:\weblogic\lib\weblogic510sp11.jar;c:\weblogic\classes;c:\weblogic\license;c:\weblogic\lib\weblogicaux.jar;c:\weblogic\myserver\serverclasses
    -Djava.security.manager
    -Djava.security.policy==c:\weblogic\weblogic.policy
    -Dweblogic.system.home=c:\weblogic weblogic.Server
    I am placing this here as a benefit to others.
    Thanks again,
    Bediako
    Matthew Shinn wrote:
    Hi,
    You might try running ejbc on the jar file again. Also, if your server has a service pack installed, make sure it is at the head of the classpath when invoking ejbc.
    - Matt
    Bediako George wrote:
    Hello all,
    I am running Weblogic 5.1 on Windows 2000 using the JDK 1.2.2 and the
    J2SDKEE 1.2.1.
    I have created and successful deployed a state session bean as provided
    by the example given at this url:
    http://www.weblogic.com/docs51/examples/ejb/basic/statelessSession/index.html
    Upon running the client I get the following error:
    Beginning TraderClient...
    user: system
    Creating a trader
    There was an exception while creating and using the Trader.
    This indicates that there was a problem communicating with the server:
    java.rmi.RemoteException: ; nested exception is:
    weblogic.rmi.ServerError: A RemoteException occurred in the server method
    - with nested exception:
    [java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method
    findMethodInfo(Ljava/lang/String;)Lweblogic/ejb/internal/MethodInfo; not
    found]
    End statelessSession.Client...
    Here is my classpath for starting the Trader Client:
    java -ms64m -mx128m -classpath
    %WEBLOGIC_HOME%\classes;%WEBLOGIC_HOME%\lib\weblogic510sp11.jar;%WEBLOGIC_HOME%\lib\weblogic510sp11boot.jar;%WEBLOGIC_HOME%\lib\weblogicaux.jar;%WEBLOGIC_HOME%\lib\weblogicbeans.jar;%WEBLOGIC_HOME%\lib\weblogic-tags-510.jar;%WEBLOGIC_HOME%\lib\rmiForMs;%J2SDK_HOME%/lib/j2ee.jar;D:\jdk1.2.2/lib/dt.jar;%PM_ROOT%/lib/hoejbserver.jar;%PM_ROOT%/lib/jcert.jar;%PM_ROOT%/lib/jndi.jar;%PM_ROOT%/lib/jnet.jar;%PM_ROOT%/lib/jsse.jar;%PM_ROOT%/lib/junit.jar;%PM_ROOT%/lib/ldap.jar;%PM_ROOT%/lib/pminput.jar;%PM_ROOT%/lib/pmipdr.jar;%PM_ROOT%/lib/pmopenview.jar;%PM_ROOT%/lib/pmtmn.jar;%PM_ROOT%/lib/pmtools.jar;%PM_ROOT%/lib/pmutil.jar;%PM_ROOT%/lib/pricemaker.jar;%PM_ROOT%/lib/providerutil.jar;%PM_ROOT%/lib/test.jar;%PM_ROOT%/lib/classes12.zip;%PM_ROOT%/lib/hoejbserver.jar;%PM_ROOT%/lib/hoejbclient.jar
    com.rii.pricemaker.ho.ejb.client.trader.TraderClient
    "t3://localhost:7001" "system" "weblogic"
    Here is my startup script for the web logic server:
    java -classpath c:\weblogic\classes\boot
    -Dweblogic.class.path=c:\weblogic\classes;c:\weblogic\license;c:\weblogic\lib\weblogicaux.jar;c:\weblogic\myserver\serverclasses
    -Djava.security.manager
    -Djava.security.policy==c:\weblogic\weblogic.policy
    -Dweblogic.system.home=c:\weblogic weblogic.Server
    Could anyone please give me a clue as to what I might be doing wrong?
    Thanks
    Bediako George

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext:

     

              I Have exactly the same error and I would like to have a solution.....
              It happens when weblogic tries to compile a jsp page.
              So the result on the browser is the original jsp page: The jsp tags are not parsed.
              This problem exists on my Weblogic 4.5.1 sp11 (on unix) nut not on my weblogic 4.5.2 NT ?
              Any idea ?
              Thanks.
              Chris Opacki <[email protected]> wrote:
              >Has anyone had this error and found a way to fix it?
              >
              >java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext: method
              ><init>(Ljavax/servlet/jsp/JspFactory;)V not found
              

  • Error java.lang.NoSuchMethodError while using Lexalytics

    Hello,
    I have a Linux 64bit environment with the complete Endeca Information Discovery 2.4 installed. When I try to use the Text Enrichment component I get the error:
    java.lang.NoSuchMethodError
    I have edited the .bash_profile file with the parameters that are needed to use Lexalytics:
    lxainstall=/home/oracle/Oracle/Endeca/Lexalytics
    export lxainstall
    LD_LIBRARY_PATH=$lxainstall/salience/lib
    export LD_LIBRARY_PATH
    JAVA_HOME=/usr/java/jdk1.6.0_45
    export JAVA_HOME
    JAVA_OPTS="-Djava.library.path=$LD_LIBRARY_PATH"
    export JAVA_OPTS
    PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$lxainstall
    export PATH
    Also when I try to export the LD_LIBRARY_PATH and reboot my system, my desktop doesn't load and I see no icons on my desktop. I can start programs with the top menu.
    I have installed version 5.1 of Lexalytics.
    Does anybody know why I get this error?
    Thanks!
    Marco

    Hi Marco, I had the same problem. Instead of loading LD_LIBRARY_PATH in .BASH_PROFILE I made a shell script that first load LD_LIBRARY_PATH and then start integrator. Now it is working fine for me.

  • Hi frnds i want to help in servlet,java bean and JSP

    hi friends i'm right now in M.SC(IT) and i want to do project in SERVLET,,JAVA BEANS and JSP ,
    so pls give me a title about that
    NOTE: I develop a project in group(2 persons there)
    my email id is : [email protected] , [email protected] , [email protected]

    You cannot pair your iPod to a cell phone, so forget about it.
    The only way you can get free WiFi is to hang out at a Denny's, a Starbucks, or a truck stop, and I don't think your parents would approve....

  • Java.lang.NoSuchMethodError but method is found in both java and class file

    Hi All,
      I am working on adding a new component to Trips and Expense but I'm getting an exception and I have no idea why.  Its claiming a java.lang.NoSuchMethodError in class IPrivateVcTraAllMyTrips yet the method is there.
      When I step through the code I can get to the point where it tries to attach the component then before it actually crashes, I hold ctrl and click on the method that it claims does not exist.  The code brings me to the IPrivateVcTraAllMyTrips java code and to the method ... so it is there in my sources.  I then went to my bin directory and decompiled the IPrivateVcTraAllMyTrips class and found the method there as well.  It seems as tho its not actually being deployed.
      Does anyone have any suggestions?
    Exception Stack ##
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NoSuchMethodError: com.sap.xss.tra.vc.allmytrips.wdp.IPrivateVcTraAllMyTrips.wdGetFcObjectSelectionComponentUsage()Lcom/sap/tc/webdynpro/progmodel/api/IWDComponentUsage;
        at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTrips.onInit(VcTraAllMyTrips.java:262)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTrips.onInit(InternalVcTraAllMyTrips.java:408)
        at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTripsInterface.onInit(VcTraAllMyTripsInterface.java:175)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface.onInit(InternalVcTraAllMyTripsInterface.java:205)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface$External.onInit(InternalVcTraAllMyTripsInterface.java:399)

    I wish it were that simple.  I have restarted but it still threw the same exception.
    I ended up reimporting everything again and starting from scratch (a 4 hour process to get back to where I was).  The issue is no more.
    thx for your reply

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.

    Hi ..
    i make a simple struts application for login check which when i try to run tomcat i got the following error
    i have installed Apache Tomcat/5.5.17, jdk1.5.0_09, eclipse 3.2
    please tell me whats wrong with configuration
    becoz same code working fine well in different machin..........
    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: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:576)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Could you include the content of your JSP page?

Maybe you are looking for

  • Yahoo & YouTube won't open in Safari, blank page only

    Just bought a new MBP 13" and set up a user account (no parental controls) and Yahoo and YouTube will not open in Safari, Chrome or Firefox.   I get a blank page whenever I attempt to access either of these two websites in Safari.  These sites will n

  • Adobe Reader 9 Print Freeze - includes Fix

    Since installing Adobe Reader 9 on one computer, I cannot print a .pdf file from that computer. The print process freezes at the small "Progress" pop-up (0 progress) - eventually freezing the computer altogether - forcing a computer reset. Windows XP

  • Drag and Drop not working with windows 8.1

    we using windows 8.1 for a few days now so we installed visual basic .net 2012 and starting our projects again we used in windows 7 but now it seems that the drag and drop doesn't work in windows 8.1 we only gets a forbidden icon when we drag it over

  • Workflow tables

    Hi, we are implemented the code for KO01(internal orders) for bdc and we need to trigger the workflow for approvel internal orders .can you tell me which table it is updateing the approvel process(means approvel manager,date,time status) in workflow.

  • OBIEE 11g on Linux - do I need a DB Client Installed???

    I have installed an 11gR2 database on an OEL Virtual Machine, and on a separate VM installed OBIEE 11.1.1.5. The RCU created the metadata required for BI - and out of the box, OBIEE works absolutely fine. Now I'm trying to migrate a database and RPD