Java.lang.NoSuchMethodException encountered when using jar file

Hi Friends
I am getting this peculiar exception for some time now and not able to figure out why i get it.
I searched the net but seem to not find any proper solution.
Here is what i am trying to do. I am using Eclipse(Latest version) and jdk 1.6.
I have a Java project in my workspace which was previously using Java code to perform DAO look up.
Now i have got an executable .jar file which has this DAO look up code bundled in it and i just need to include it in my project ClassPath. I have done this now and my code compiles properly. Even Eclipse is able to recognize this code.
When i try to run the code i am getting this java.lang.NoSuchMethodException: DAOClass.getValue(java.lang.string)L
The getValue() is present in the DAOClass in the jar file but still i am getting this exception.
I am not able to figure out what the issue is here.
Can you please provide your suggestions about this issue. is there something i am missing out.
Thanks
vikeng21

802944 wrote:
Hi Friends
I am getting this peculiar exception for some time now and not able to figure out why i get it.
I searched the net but seem to not find any proper solution.
Here is what i am trying to do. I am using Eclipse(Latest version) and jdk 1.6.
I have a Java project in my workspace which was previously using Java code to perform DAO look up.
Now i have got an executable .jar file which has this DAO look up code bundled in it and i just need to include it in my project ClassPath. Is the DAO code a jar, which you are attempting to put into another jar? Then there are very specific steps that you must take, outside of the code, to accomplish that.
If the DAO code is not a jar then the following possibilities exist
- You are not putting the code in the executable jar.
- You are putting it in the executable jar incorrectly due to a path problem.

Similar Messages

  • Java.lang.NullPointerException encountered when configuring backup settings

    Hello all,
    I've been trying this morning to configure backup settings in the 10g Enterprise Manager. I logged in as SYSOPER, selected Maintenance/Configure Backup Settings, set the Disk Backup Logation to "e:\oracle_backups", but when I click OK, I get the following:
    500 Internal Server Error
    java.lang.NullPointerException
         at oracle.sysman.emo.util.rec.RmanObject.resetExcludedTSList(RmanObject.java:1331)
         at oracle.sysman.db.util.rec.ConfigController.onApply(ConfigController.java:486)
         at oracle.sysman.db.util.DBJobController.handleEvent(DBJobController.java:980)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:376)
         at oracle.sysman.db.util.UtilControllerResolver.handleRequest(UtilControllerResolver.java:128)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:285)
         at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:133)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Can anyone suggest what's causing this error and how to resolve it?

    I've since discovered the immediate cause of this problem - it was because I was logged in as SYSOPER rather than as SYSDBA. Once I logged back in as SYSDBA, the crash disappeared and the settings were saved successfully.
    It'd be nice if the EM trapped this and gave a proper error message rather than crashing within Java, though.
    Message was edited by:
    ptipper

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Error while opening a dwg file :java.lang.NoSuchMethodException: Method

    Hello Experts,
    I tried to integrate WebCenter Content with Autovue ,the integration was good untill i get this error while trying to open a dwg file checked in Content Server using View in Autovue option in Actions :
    java.lang.NoSuchMethodException: Method fileOpen(com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, <null>, java.lang.Boolean, <null>) not found in class com.cimmetry.jvueserver.VCETConnection
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.d(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ah.run(Unknown Source)
    Any suggestions would help me,
    Thanks in Advance
    Raj

    Hi Raj,
    The solution to this problem is posted in My Oracle Support:
    Error: "java.lang.NoSuchMethodException: Method fileOpen" when Trying to View Files Using AutoVue Integrated to Oracle Universal Content Management (UCM) (Doc ID 1341644.1).
    It has all the details, step by step.
    Jeff

  • Ssl_accetp failed when java visual machine tries to load jar file

    my web server uses openssl to implement https protocol .
    my webpage contains a jar file.( "archive=droptext.jar")
    JVM failed to load this jar from web server (using https protocol).
    because Server failed to make a ssl connection after a ssl_accept failed error .(the function "SSL_accept (ssl)" failed)
    if I use class file instead of jar file. JVM can successfully make a connection with server and load the class file.
    I have no choice but to use jar file because the applet contains more than one class file.

    >
    Try putting the domain names in the Windows hosts files with their numeric addresses. That should bypass any DNS lookup. If you have central maintenance you can update all the hosts files when IP address change.
    We have considered this option, but then we have the same problem described on c). IP maintentance. IPs change often and we cannot control it.
    Malcolmmc, paul.miner, jschell,
    I think the problem is Netbios resolution, rather than DNS one. The sites that figure on java.policy file, are not available in terms of Netbios (they are not LAN clients), so they are only visibles on DNS resolution. But Java still tries to resolve them with Netbios first, so I think there's a timeout on this resolution (not the DNS one) . This timeout causes the problem.
    But, anyway .... Why is Java trying to resolve those names ??? In fact, Java will only have to match the site you are visiting with the site specified on java.policy (just a String comparison). Why does Java need to resolve (netbios & dns) the names on java.policy? I cannot figure out why.
    Thank you all.
    Marc

  • Java.lang.NoSuchMethodException Using Method.invoke(...)

    I try to use Method.invoke() to invoke a method from a class. The method
    has parameters with type JTextArea and JMyFrame, but I got the error
    messages java.lang.NoSuchMethodException . Any ideas???
    If I remove parameter "JFrame mainFrame" in start() method and it is working fine. Not sure why JMyFrame will throw this exception, as JMyFrame is derived from JFrame class
    public class MyFrame extends JFrame
         try
    ClassLoader loader
    = new MyClassLoader(Integer.parseInt("3"));
    Class c = loader.loadClass("NewMenuPackage.NewMenu");
    Class[] params = { JTextArea.class, JMyFrame.class };
         Method m = c.getMethod("start", params);
         Object obj = c.newInstance();
    m.invoke(obj,
         new Object[] {
              textArea,
              JMyFrame.this
    catch (Throwable e)
    JOptionPane.showMessageDialog(this, e);
    package NewMenuPackage;
    import javax.swing.*;
    public class NewMenu
         private static JMenuItem menuItem = new JMenuItem("New Menu");
         public static JMenuItem getJMenuItem()
              return menuItem;
         public static void start(JTextArea textArea, JFrame mainFrame)
              System.out.println("NewMenu->start()...");
    }

    Your "params" Class array has to specify the exact classes of the method, not subclasses. The line that is causing the NoSuchObjectException to be thrown is "c.getMethod("start", params);".
    You have to write your own reflection utility methods to find a method that matches on parameter subclasses.

  • Java.lang.NoSuchMethodException while using LookupDispatchAction

    hi,
    I am just a novice java developer, developing an application which requires more than one submit button in a single form, for which i have extended LookupDispatchAction class. However i am unable to fix the error with the message java.lang.NoSuchMethodException, which appears whenever i click on the buttons in spite of having the method in the action class. Below is the code snippet. I request if anyone could help me out. Thanks.
    JSP
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix = "html" %>
    <%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%>
    <html><body>
    <html:form action="homeSearch.do">
    <table>
    <tr>
         <td><strong>Search by Email</strong></td>
         <td><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.eSearch"/>
         </html:submit></td>
    </tr>
    <tr>
         <td><strong>Search by Eid</strong></td>
         <TD><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.idSearch"/>
         </html:submit> </TD>
    </tr>
    <tr>
         <td><strong>Search by Phone</strong></td>
         <td><html:submit property="dowhat">
              <bean:message key="ldApp.submit.button.pSearch"/>
         </html:submit></td>
    </tr>
    </table>
    </html:form></body></html>
    struts-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
      <data-sources />
      <form-beans >
            <form-bean name="tmpForm" type="org.apache.struts.action.DynaActionForm" />
      </form-beans>
      <global-exceptions />
      <global-forwards >
                <forward name="email" path="/emailHome.jsp"/>
                <forward name="id" path="/idHome.jsp"/>
                <forward name="phone" path="/PhoneHome.jsp"/>
      </global-forwards>
      <action-mappings>
           <action path="/homeSearch" name="tmpForm" type="com.lookup.struts.myLDAction"
                     parameter="dowhat" scope="request" input="/Home.jsp"
                     >
                <forward name="email" path="/emailHome.jsp"/>
                <forward name="id" path="/idHome.jsp"/>
                <forward name="phone" path="/PhoneHome.jsp"/>
           </action>
      </action-mappings>
      <message-resources parameter="com.lookup.struts.ApplicationResources" />
    </struts-config>
    myLDAction class
    public class myLDAction extends LookupDispatchAction {
         protected Map getKeyMethodMap() {
              // TODO Auto-generated method stub
                   Map mp = new HashMap();
              mp.put("ldApp.submit.button.eSearch", "EmailSearch");
              mp.put("ldApp.submit.button.idSearch", "IDSearch");
              mp.put("ldApp.submit.button.pSearch", "PhoneSearch");     
                   return mp;
         public ActionForward EmailSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{
              DynaActionForm df = (DynaActionForm)af;
              // do search logic
              return am.findForward("email"); // forwards to a jsp page
         public ActionForward IDSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{
         DynaActionForm df = (DynaActionForm)af;
         // do search logic
         return am.findForward("id");  // forwards to a jsp page          
         public ActionForward PhoneSearch(ActionForm af, ActionMapping am,
                   HttpServletRequest req, HttpServletResponse res) throws Exception{     
         DynaActionForm df = (DynaActionForm)af;
         // do search logic
         return am.findForward("phone");  // forwards to a jsp page
    {cod*e}*
    *Error*Jan 13, 2009 1:58:56 PM org.apache.struts.actions.DispatchAction dispatchMethod
    SEVERE: Action[homeSearch] does not contain method named 'EmailSearch'
    java.lang.NoSuchMethodException: com.lookup.struts.myLDAction.EmailSearch(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         at java.lang.Class.getMethod(Class.java:978)
    Edited by: Chinglai on 13 Jan, 2009 1:29 PM
    Edited by: Chinglai on 13 Jan, 2009 2:01 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    First thing is I don't know anything about struts, you should have posted in some other forum like that for JSP or other....
    From the exception, I can say that maybe method signature needs to be:
    public ActionForward EmailSearch( ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)instead of:
    public ActionForward EmailSearch(ActionForm af, ActionMapping am, HttpServletRequest req, HttpServletResponse res) throws ExceptionBut don't take my advice to be authentic in any way, thats just a hunch....
    And yes, change other method signatures also, if I'm correct , by any chance.
    Thanks!

  • Java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.

    All:
    I have completed the following:
    1. Downloaded the JavaMail 1.4.2 API.
    2. From this downloaded API I had extracted the mail.jar file (timestamp 2009-02-26 13:28) to my C:\Program Files\Tomcat 6.0\lib directory
    3. Downloaded the jaf-1_0_2-upd2 API
    4. From this downloaded API I had extracted the activation.jar file (timestamped 2005-05-07 21:14) also to my C:\Program Files\Tomcat 6.0\lib directory.
    In Eclipse I have created a simple JSP page that calls a POJO that is to read a particular email box using IMAP. In this POJO I have code to set up the Properties, Session and Store objects as such:
    Line 1 Properties properties = System.getProperties();
    Line 2 properties.put("mail.from", "[email protected]");
    Line 3 properties.put("mail.debug","true");
    Line 4 session = Session.getDefaultInstance(properties, null);
    Line 5 session.setDebug(debug);
    Line 6 printData("About to get store object...");
    Line 7 store = session.getStore("imap");
    In eclispe, I click "Debug on Server" and Tomcat starts, begins to display my JSP and then I am dropped on the line of code in my POJO where I set a breakpoint (Line 1). Now I single step through the code. The code throws the following execption when it executes line 7 of the above code :
    (Line 6 ==>) About to get store object...
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.<init>(javax.mail.Session, javax.mail.URLName)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.getConstructor(Unknown Source)
         at javax.mail.Session.getService(Session.java:782)
         at javax.mail.Session.getStore(Session.java:574)
         at javax.mail.Session.getStore(Session.java:536)
         at javax.mail.Session.getStore(Session.java:515)
         at emailTest.readEmails.processMail(readEmails.java:62)
         at emailTest.readEmails.<init>(readEmails.java:24)
         at org.apache.jsp.emailTest_jsp._jspService(emailTest_jsp.java:94)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    There are no jar files defined in my project's classpath. The only jar file found in the project is in the WEB-INF\lib folder wherein I have a jndi.jar (timstamp 5/5/2009 8:10AM) file.
    I put the activation.jar file and the mail.jar file in my Tomcat.6\lib folder according item 4 of the JavaMail Sessions section of the Apache Tomcat JNDI Resources HOW_TO found here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
    Can anybody please tell me what I need to do to get around this error? Do I perhaps have the wrong versions of one or more jar files?
    FYI: I have also put these same two jar files in my projects classpath and still recevied the same exception. Because I am invoking a POJO from a JSP should these jar files be in my projects classpath in addition to the tomcat\lib directory, or should they only be in the projects' classpath?
    Thanks to all for your time in responding.
    Gary

    bshannon:
    Thank you for your resonse. Your response got me to thinking that my instance of Ecliplse that I had had running yesterday was behaving a little strangely so this morning I closed everything I had running on my workstation and closed down the machine and rebooted. When I finally opend up Eclipse again and ran my JSP program calling my POJO, the code no longer threw the exception. Apparently Eclipse can have its tempermental moments.
    Also, let it be known that while everything is working for me now, I performed a small experiment. I moved the activiation.jar and mail.jar from my project\WEB-INF\lib folder and put them in the the C:\Program Files\Tomcat 6.0\lib directory. Then, when I ran my program I once again recieved the java.lang.NoSuchMethodException error. When I moved these jar files back from the Tomcat diretory to my project\WEB-INF\lib directory, the program worked just fine.
    Thanks again
    Gary

  • Java.lang.NoSuchMethodException

    Hi,
    I'm a beginner in learning CMP EJB. I've encountered the below error, when I tried to create a CMP EJB using a servlet.
    I am using pointbase as my database.
    INFO: CORE3276: Installing a new configuration
    INFO: CORE3280: A new configuration was successfully installed
    INFO: WEB4004: Closing web application environment for virtual server [server1]
    INFO: LDR5010: All ejb(s) of [StorageDeviceApp] loaded successfully!
    WARNING: CORE3229: Quality of service (QOS) is disabled in the HTTP service. Un
    able to turn on QOS features.
    INFO: CORE3276: Installing a new configuration
    INFO: WEB0100: Loading web module [StorageDeviceApp:servlet.war] in virtual serv
    er [server1] at [defaultContext]
    INFO: WEB0116: Using alternate deployment descriptor [C:\Sun\AppServer7\domains\
    domain1\server1\applications\j2ee-apps\StorageDeviceApp_1\servlet_war/../servlet
    .xml] for web module [StorageDeviceApp:servlet.war]
    INFO: CORE3282: stdout: looking up java:comp/env/ejb/jndiStorageDevice
    INFO: CORE3282: stdout: lookup ok
    INFO: CORE3282: stdout: creating stocker 88
    INFO: CORE3282: stdout: setting entity context
    INFO: CORE3282: stdout: finished setting context
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
    WARNING: CORE3283: stderr: at com.sun.enterprise.util.Utility.invokeSetMeth
    odCaseInsensitive(Utility.java:373)
    WARNING: CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionP
    ool.createDataSource(JdbcConnectionPool.java:238)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.
    createResource(JdbcUrlAllocator.java:80)
    SEVERE: RAR5027:Unexpected exception in resource pooling
    com.sun.enterprise.resource.PoolingException
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAl
    locator.java:100)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.
    java:74)
    at com.sun.enterprise.resource.SystemJdbc10XaAllocator.createResource(Sy
    stemJdbc10XaAllocator.java:52)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
    urces(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
    haredResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
    rce(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
    onSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
    anagerImpl.java:263)
    at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnectio
    n(SystemJdbcDataSource.java:226)
    at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(System
    JdbcDataSource.java:154)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImp
    l.getConnection(TransactionHelperImpl.java:171)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnect
    ion(EJBHelper.java:169)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getDBName(SQLPersistenceManagerFactory.java:781)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
    ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
    at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
    ceBean_826330090_ConcreteImpl.java:255)
    at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
    (StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
    at device._StorageDeviceHome_Stub.create(Unknown Source)
    at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:921)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
    3)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:3346)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
    592)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
    at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodE
    WARNING: Cannot get database metadata: database product name.
    java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: setdataSourceName
    at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnectio
    n(SystemJdbcDataSource.java:252)
    at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(System
    JdbcDataSource.java:154)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImp
    l.getConnection(TransactionHelperImpl.java:171)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnect
    ion(EJBHelper.java:169)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getDBName(SQLPersistenceManagerFactory.java:781)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
    ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
    at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
    ceBean_826330090_ConcreteImpl.java:255)
    at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
    (StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
    at device._StorageDeviceHome_Stub.create(Unknown Source)
    at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:921)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
    3)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:3346)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
    592)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
    at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    INFO: Bean StorageDevice method ejbCreate: problems during ejbCreate; parameters
    : Stocker88, 88
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the
    vendor type for the data store.
    NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResour
    ceException
    java.lang.NoSuchMethodException: setdataSourceName
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getDBName(SQLPersistenceManagerFactory.java:802)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
    erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
    actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
    ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
    at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
    ceBean_826330090_ConcreteImpl.java:255)
    at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
    (StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
    at device._StorageDeviceHome_Stub.create(Unknown Source)
    at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:921)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
    3)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:3346)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
    592)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
    at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
    at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
    at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcXAConnection.
    <init>(JdbcXAConnection.java:74)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbc10XaAll
    ocator.createResource(SystemJdbc10XaAllocator.java:52)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.initPool(IASNonSharedResourcePool.java:416)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
    rcePool.getResource(IASNonSharedResourcePool.java:520)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
    etResourceFromPool(PoolManagerImpl.java:263)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbcDataSou
    rce.internalGetConnection(SystemJdbcDataSource.java:226)
    WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbcDataSou
    rce.getConnection(SystemJdbcDataSource.java:154)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    ejb.EJBHelper.getConnection(EJBHelper.java:169)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:78
    1)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:
    709)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFac
    tory.java:598)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
    ryImpl.java:770)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
    ryImpl.java:660)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl.jdoGetPersistenceManager(StorageDeviceBean_826330090_ConcreteImpl.java:539)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl.ejbCreate(StorageDeviceBean_826330090_ConcreteImpl.java:255)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
    .java:27)
    WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
    Source)
    WARNING: CORE3283: stderr: at StorageDeviceServlet.init(StorageDeviceServle
    t.java:40)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
    Servlet(StandardWrapper.java:921)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
    (StandardWrapper.java:813)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.load
    OnStartup(StandardContext.java:3346)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.star
    t(StandardContext.java:3592)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
    ContainerBase.java:1123)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(S
    tandardHost.java:638)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
    ContainerBase.java:1123)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start
    (StandardEngine.java:345)
    WARNING: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Em
    bedded.java:957)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebCon
    tainer.java:426)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstanc
    e(WebContainer.java:514)
    WARNING: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostIni
    t(J2EERunner.java:170)
    WARNING: CORE3283: stderr: Caught an exception.
    WARNING: CORE3283: stderr: java.rmi.ServerException: RemoteException occurred in
    server thread; nested exception is:
    WARNING: CORE3283: stderr: java.rmi.RemoteException: nested exception is: c
    om.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the
    vendor type for the data store.
    WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
    prise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName; n
    ested exception is:
    WARNING: CORE3283: stderr: com.sun.jdo.api.persistence.support.JDOFatalInte
    rnalException: Failed to get the vendor type for the data store.
    WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
    prise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Uti
    l.wrapException(Util.java:364)
    WARNING: CORE3283: stderr: at javax.rmi.CORBA.Util.wrapException(Util.java:
    277)
    WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
    Source)
    WARNING: CORE3283: stderr: at StorageDeviceServlet.init(StorageDeviceServle
    t.java:40)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
    Servlet(StandardWrapper.java:921)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
    (StandardWrapper.java:813)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.load
    OnStartup(StandardContext.java:3346)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.star
    t(StandardContext.java:3592)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
    ContainerBase.java:1123)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(S
    tandardHost.java:638)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
    ContainerBase.java:1123)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start
    (StandardEngine.java:345)
    WARNING: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Em
    bedded.java:957)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebCon
    tainer.java:426)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstanc
    e(WebContainer.java:514)
    WARNING: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostIni
    t(J2EERunner.java:170)
    WARNING: CORE3283: stderr: Caused by: java.rmi.RemoteException: nested exception
    is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to ge
    t the vendor type for the data store.
    WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
    prise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName; n
    ested exception is:
    WARNING: CORE3283: stderr: com.sun.jdo.api.persistence.support.JDOFatalInte
    rnalException: Failed to get the vendor type for the data store.
    WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
    prise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
    WARNING: CORE3283: stderr: at com.sun.enterprise.iiop.POAProtocolMgr.mapExc
    eption(POAProtocolMgr.java:451)
    WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
    ke(BaseContainer.java:545)
    INFO: CORE3280: A new configuration was successfully installed
    INFO: WEB4004: Closing web application environment for virtual server [server1]
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
    .java:33)
    WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
    Source)
    WARNING: CORE3283: stderr: ... 13 more
    WARNING: CORE3283: stderr: Caused by: com.sun.jdo.api.persistence.support.JDOFat
    alInternalException: Failed to get the vendor type for the data store.
    WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
    prise.repository.J2EEResourceException
    WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:80
    2)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:
    709)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFac
    tory.java:598)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
    ryImpl.java:770)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
    ryImpl.java:660)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl.jdoGetPersistenceManager(StorageDeviceBean_826330090_ConcreteImpl.java:539)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl.ejbCreate(StorageDeviceBean_826330090_ConcreteImpl.java:255)
    WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
    pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
    .java:27)
    WARNING: CORE3283: stderr: ... 14 more
    INFO: CORE5022: All ejb(s) of [StorageDeviceApp] were unloaded successfully!
    WARNING: CORE3229: Quality of service (QOS) is disabled in the HTTP service. Un
    able to turn on QOS features.
    INFO: CORE3276: Installing a new configuration
    INFO: CORE3280: A new configuration was successfully installed
    INFO: WEB4004: Closing web application environment for virtual server [server1]

    Most probably you have an error in resources setup. Please check the <resources> section of the instance server.xml
    or via the admin ui.
    Regards,
    Marina

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

  • WebLogic Test Client,  throws java.lang.NoSuchMethodException

    In weblogic server 10.3, the  WebLogic Test Client,  throws java.lang.NoSuchMethodException for “any” soap fault message from the web  service.
    In Detail:
    Our web services uses JAX-WS spec and are deployed in WebLogic server 10.3.The web service ear file is generated using standard ant utility. We are using “WebLogic Test Client” available through WebLogic server administration console .The issue is, for “any” soap fault message from the web service, the test client generates “java.lang.NoSuchMethodException:” . The key point is we are creating this class. We are not using our own client. WebLogic Test Client 's service response section has the following stack trace.
    S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
    <faultcode>S:Server</faultcode>
    <faultstring>java.lang.NoSuchMethodException: our.custom.package.name.jaxws.IllegalStateWSFaultExceptionBean.setErrorCode(java.lang.String)</faultstring>
    <detail>
    <ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" class="com.sun.xml.ws.encoding.soap.SerializationException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
    <message>java.lang.NoSuchMethodException: our.custom.package.name.jaxws.IllegalStateWSFaultExceptionBean.setErrorCode(java.lang.String)</message>
    <ns2:stackTrace>
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="328" method="createDetailFromUserDefinedException" />
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="306" method="getFaultDetail" />
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="170" method="createSOAPFaultMessage" />
    <ns2:frame class="com.sun.xml.ws.server.sei.EndpointMethodHandler" file="EndpointMethodHandler.java" line="265" method="invoke" />
    <ns2:frame class="com.sun.xml.ws.server.sei.SEIInvokerTube" file="SEIInvokerTube.java" line="93" method="processRequest" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync" />
    <ns2:frame class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process" />
    <ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle" />
    <ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle" />
    <ns2:frame class="com.sun.xml.ws.transport.http.servlet.ServletAdapter" file="ServletAdapter.java" line="134" method="handle" />
    <ns2:frame class="weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke" file="HttpServletAdapter.java" line="272" method="run" />
    <ns2:frame class="weblogic.wsee.jaxws.HttpServletAdapter" file="HttpServletAdapter.java" line="185" method="post" />
    <ns2:frame class="weblogic.wsee.jaxws.JAXWSServlet" file="JAXWSServlet.java" line="180" method="doPost" />
    <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="727" method="service" />
    <ns2:frame class="weblogic.wsee.jaxws.JAXWSServlet" file="JAXWSServlet.java" line="64" method="service" />
    <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="820" method="service" />
    <ns2:frame class="weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction" file="StubSecurityHelper.java" line="227" method="run" />
    <ns2:frame class="weblogic.servlet.internal.StubSecurityHelper" file="StubSecurityHelper.java" line="125" method="invokeServlet" />
    <ns2:frame class="weblogic.servlet.internal.ServletStubImpl" file="ServletStubImpl.java" line="292" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.ServletStubImpl" file="ServletStubImpl.java" line="175" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction" file="WebAppServletContext.java" line="3498" method="run" />
    <ns2:frame class="weblogic.security.acl.internal.AuthenticatedSubject" file="AuthenticatedSubject.java" line="321" method="doAs" />
    <ns2:frame class="weblogic.security.service.SecurityManager" line="unknown" method="runAs" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext" file="WebAppServletContext.java" line="2180" method="securedExecute" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext" file="WebAppServletContext.java" line="2086" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.ServletRequestImpl" file="ServletRequestImpl.java" line="1406" method="run" />
    <ns2:frame class="weblogic.work.ExecuteThread" file="ExecuteThread.java" line="201" method="execute" />
    <ns2:frame class="weblogic.work.ExecuteThread" file="ExecuteThread.java" line="173" method="run" />
    </ns2:stackTrace>
    <ns2:cause class="java.lang.NoSuchMethodException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
    <message>our.custom.package.name.jaxws.IllegalStateWSFaultExceptionBean.setErrorCode(java.lang.String)</message>
    <ns2:stackTrace>
    <ns2:frame class="java.lang.Class" file="Class.java" line="1605" method="getMethod" />
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="323" method="createDetailFromUserDefinedException" />
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="306" method="getFaultDetail" />
    <ns2:frame class="com.sun.xml.ws.fault.SOAPFaultBuilder" file="SOAPFaultBuilder.java" line="170" method="createSOAPFaultMessage" />
    <ns2:frame class="com.sun.xml.ws.server.sei.EndpointMethodHandler" file="EndpointMethodHandler.java" line="265" method="invoke" />
    <ns2:frame class="com.sun.xml.ws.server.sei.SEIInvokerTube" file="SEIInvokerTube.java" line="93" method="processRequest" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun" />
    <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync" />
    <ns2:frame class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process" />
    <ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle" />
    <ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle" />
    <ns2:frame class="com.sun.xml.ws.transport.http.servlet.ServletAdapter" file="ServletAdapter.java" line="134" method="handle" />
    <ns2:frame class="weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke" file="HttpServletAdapter.java" line="272" method="run" />
    <ns2:frame class="weblogic.wsee.jaxws.HttpServletAdapter" file="HttpServletAdapter.java" line="185" method="post" />
    <ns2:frame class="weblogic.wsee.jaxws.JAXWSServlet" file="JAXWSServlet.java" line="180" method="doPost" />
    <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="727" method="service" />
    <ns2:frame class="weblogic.wsee.jaxws.JAXWSServlet" file="JAXWSServlet.java" line="64" method="service" />
    <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="820" method="service" />
    <ns2:frame class="weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction" file="StubSecurityHelper.java" line="227" method="run" />
    <ns2:frame class="weblogic.servlet.internal.StubSecurityHelper" file="StubSecurityHelper.java" line="125" method="invokeServlet" />
    <ns2:frame class="weblogic.servlet.internal.ServletStubImpl" file="ServletStubImpl.java" line="292" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.ServletStubImpl" file="ServletStubImpl.java" line="175" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction" file="WebAppServletContext.java" line="3498" method="run" />
    <ns2:frame class="weblogic.security.acl.internal.AuthenticatedSubject" file="AuthenticatedSubject.java" line="321" method="doAs" />
    <ns2:frame class="weblogic.security.service.SecurityManager" line="unknown" method="runAs" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext" file="WebAppServletContext.java" line="2180" method="securedExecute" />
    <ns2:frame class="weblogic.servlet.internal.WebAppServletContext" file="WebAppServletContext.java" line="2086" method="execute" />
    <ns2:frame class="weblogic.servlet.internal.ServletRequestImpl" file="ServletRequestImpl.java" line="1406" method="run" />
    <ns2:frame class="weblogic.work.ExecuteThread" file="ExecuteThread.java" line="201" method="execute" />
    <ns2:frame class="weblogic.work.ExecuteThread" file="ExecuteThread.java" line="173" method="run" />
    </ns2:stackTrace>
    </ns2:cause>
    </ns2:exception>
    </detail>
    </S:Fault>
    </S:Body>
    </S:Envelope>

    Thanks for your assistance. Here is the log from weblogic. You may find "xxx" and "yyy" terms. these are given to our specific project oriented names. If you need any further info please let me know. Again a brief about the issue. when the service returns a fault soap message, the server trying to set the error code in a class generated by it's own where the method is not avilable. this happens for all fault soap message. In case of right response from the service no issues. all are working fine.
    Note: Max 3000 characters are allowed to post. so truncating initial stack trace.
    Thanks, ganesh.
    <xxx JDBC connection is xxx.jdbc.driver.LogicalConnection@2e0bd8e
    Bound datums[Lxxx.sql.STRUCT;@1b2d059
    xxx JDBC connection is xxx.jdbc.driver.LogicalConnection@1aa0f36
    xxx JDBC connection is xxx.jdbc.driver.LogicalConnection@191d9ba
    Bound datums[Lxxx.sql.STRUCT;@1dc70ec
    xxx JDBC connection is xxx.jdbc.driver.LogicalConnection@1def11c
    xxx JDBC connection is xxx.jdbc.driver.LogicalConnection@2683f76
    Bound datums[Lxxx.sql.STRUCT;@197400e
    Caused by: our.package.name.integration.services.exception.IllegalStateWSFaultException: Service Provider API did not return any object back.
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService.findxxxxxx(xxxService.java:576)
    at sun.xxxlect.GeneratedMethodAccessor763.invoke(Unknown Source)
    at sun.xxxlect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.xxxlect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingxxxlection(AopUtils.java:281)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.invokeJoinpoint(xxxlectiveMethodInvocation.java:187)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:154)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    at $Proxy188.findxxxxxx(Unknown Source)
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService_n3bi9u_WSOImpl.__WL_findxxxxxx_WS(xxxService_n3bi9u_WSOImpl.java:75)
    at sun.xxxlect.GeneratedMethodAccessor762.invoke(Unknown Source)
    at sun.xxxlect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.xxxlect.Method.invoke(Method.java:597)
    at weblogic.wsee.server.ejb.WsEjb.invoke(WsEjb.java:50)
    at weblogic.wsee.jaxws.WLSEjbInstanceResolver$WLSEjbInvoker.invoke(WLSEjbInstanceResolver.java:187)
    ... 30 more
    Caused by: java.lang.IllegalStateException: Service Provider API did not return any object back.
    at our.package.name.soa.enabler.service.provider.engine.ServiceInvoker.invoke(ServiceInvoker.java:156)
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService.findxxxxxx(xxxService.java:545)
    ... 56 more
    Nov 21, 2008 9:38:27 AM com.sun.xml.ws.server.sei.EndpointMethodHandler invoke
    INFO: Service Provider API did not return any object back.
    our.package.name.integration.services.exception.IllegalStateWSFaultException: Service Provider API did not return any object back.
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService.findxxxxxx(xxxService.java:576)
    at sun.xxxlect.GeneratedMethodAccessor763.invoke(Unknown Source)
    at sun.xxxlect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.xxxlect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingxxxlection(AopUtils.java:281)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.invokeJoinpoint(xxxlectiveMethodInvocation.java:187)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:154)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.xxxlectiveMethodInvocation.proceed(xxxlectiveMethodInvocation.java:176)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    at $Proxy188.findxxxxxx(Unknown Source)
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService_n3bi9u_WSOImpl.__WL_findxxxxxx_WS(xxxService_n3bi9u_WSOImpl.java:75)
    at sun.xxxlect.GeneratedMethodAccessor762.invoke(Unknown Source)
    at sun.xxxlect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.xxxlect.Method.invoke(Method.java:597)
    at weblogic.wsee.server.ejb.WsEjb.invoke(WsEjb.java:50)
    at weblogic.wsee.jaxws.WLSEjbInstanceResolver$WLSEjbInvoker.invoke(WLSEjbInstanceResolver.java:187)
    at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:71)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.IllegalStateException: Service Provider API did not return any object back.
    at our.package.name.soa.enabler.service.provider.engine.ServiceInvoker.invoke(ServiceInvoker.java:156)
    at xxx.xxx.yyy.integration.services.xxxservice.xxxService.findxxxxxx(xxxService.java:545)
    ... 56 more
    com.sun.xml.ws.encoding.soap.SerializationException: java.lang.NoSuchMethodException: xxx.xxx.yyy.integration.services.xxxservice.jaxws.IllegalStateWSFaultExceptionBean.setErrorCode(java.lang.String)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.createDetailFromUserDefinedException(SOAPFaultBuilder.java:328)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.getFaultDetail(SOAPFaultBuilder.java:306)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.createSOAPFaultMessage(SOAPFaultBuilder.java:170)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:265)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoSuchMethodException: xxx.xxx.yyy.integration.services.xxxservice.jaxws.IllegalStateWSFaultExceptionBean.setErrorCode(java.lang.String)
    at java.lang.Class.getMethod(Class.java:1605)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.createDetailFromUserDefinedException(SOAPFaultBuilder.java:323)
    ... 30 more

  • Java.lang.NoSuchMethodException in RPC style WS in WL6.1

    Hi,
    I am facing some veered exception in the RPC style WS. The SS-EJB that I used as the web service is working fine when I directly try to access the EJB.
    When I wrote a client I get the following exception on the server side.
    <Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> <[WebAppServletContext(2318716,w
    -services,/web-services)] Root cause of ServletException
    <Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> <[WebAppServletContext(2318716,w
    -services,/web-services)] Root cause of ServletException
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getMethod(Class.java:888)
    at weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter.java:78)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.java:700)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.java:643)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.java:588)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:368)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.java:242)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletContext.java:2456)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Following is the code that's written on the client side.
    ProjectBrokerWSClient client = new ProjectBrokerWSClient();
    // Obtaining the initial context.
    Context context = new InitialContext();
    // Making a lookup for the required servlet.
    WebServiceProxy proxy = (WebServiceProxy)context.lookup(http://localhost:7001/PB/PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl" );
    SoapMethod method = proxy.getMethod("selfTest");
    Object result = method.invoke(new Object[]{"# Test message #"});
    The function in the bean is as follows.
    public String selfTest(String ostrMessage){
    log("inside selfTest()" + ostrMessage);
    return "# M e s s a g e r e c e i v e d #";
    Please let me know if some thing is wrong out here or I have missed out any conf.
    cheers.
    n a v i n.
    [att1.html]

    yes i have done the ContextFactory settings.
    cheers,
    navin.
    "Per Mengshoel" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    Have you tried setting the ContextFactory before
    creating it :
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    //you might want to add this too
    h.put("weblogic.soap.verbose", "true" );
    Context context = new InitialContext(h);
    -Per
    "Navin Sidhaye" <[email protected]> wrote:
    Hi,
    I am facing some veered exception in the RPC style WS. The SS-EJB that
    I =
    used as the web service is working fine when I directly try to access
    =
    the EJB.
    When I wrote a client I get the following exception on the server side.
    <Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> =
    <[WebAppServletContext(2318716,w
    -services,/web-services)] Root cause of ServletException
    <Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> =
    <[WebAppServletContext(2318716,w
    -services,/web-services)] Root cause of ServletException
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getMethod(Class.java:888)
    at =weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter=
    ..java:78)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at =weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.jav=
    a:700)
    at =weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.j=
    ava:643)
    at =weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.ja=
    va:588)
    at =weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:3=
    68)
    at =weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
    a:242)
    at =weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
    a:200)
    at =weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletC=
    ontext.java:2456)
    at =weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.jav=
    a:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Following is the code that's written on the client side.
    ProjectBrokerWSClient client =3D new ProjectBrokerWSClient();
    // Obtaining the initial context.
    Context context =3D new InitialContext();
    // Making a lookup for the required servlet.
    WebServiceProxy proxy =3D =
    (WebServiceProxy)context.lookup(http://localhost:7001/PB/PBBeanSL.PBHomeS=
    L/PBBeanSL.PBHomeSL.wsdl" );
    SoapMethod method =3D proxy.getMethod("selfTest");
    Object result =3D method.invoke(new Object[]{"# Test message =
    The function in the bean is as follows.
    public String selfTest(String ostrMessage){
    log("inside selfTest()" + ostrMessage);
    return "# M e s s a g e r e c e i v e d #";
    Please let me know if some thing is wrong out here or I have missed out
    =
    any conf.
    cheers.
    n a v i n.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV><FONT face=3DTahoma size=3D2>Hi,</FONT></DIV>
    <DIV><FONT face=3DTahoma size=3D2>I am facing some veered exception
    =
    in the RPC=20
    style WS. The SS-EJB that I used as the web service is working fine when
    =
    I=20
    directly try to access the EJB.</FONT></DIV>
    <DIV><FONT face=3DTahoma size=3D2>When I wrote a client I get the =
    following=20
    exception on the server side.</FONT></DIV>
    <DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D1><Jan 30, 2002 11:41:54 AM IST>
    =
    <Error>=20
    <HTTP> =
    <[WebAppServletContext(2318716,w<BR>-services,/web-services)]=20
    Root cause of ServletException<BR><Jan 30, 2002 11:41:54 AM IST>=20
    <Error> <HTTP>=20
    <[WebAppServletContext(2318716,w<BR>-services,/web-services)] Root
    =
    cause of=20
    ServletException<BR></FONT><FONT face=3DArial size=3D2><FONT=20
    size=3D1>java.lang.NoSuchMethodException<BR> =
    ; =20
    at java.lang.Class.getMethod0(Native=20
    Method)<BR> at=20
    java.lang.Class.getMethod(Class.java:888)<BR> &nbs=
    p; =20
    at=20weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter=
    ..java:78)<BR> =20
    at=20
    javax.servlet.GenericServlet.init(GenericServlet.java:258)<BR> =
    ; =20
    at=20weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.jav=
    a:700)<BR> =20
    at=20weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.j=
    ava:643)<BR> =20
    at=20weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.ja=
    va:588)<BR> =20
    at=20weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:3=
    68)<BR> =20
    at=20weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
    a:242)<BR> =20
    at=20weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
    a:200)<BR> =20
    at=20weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletC=
    ontext.java:2456)<BR> =20
    at=20weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.jav=
    a:2039)<BR> =20
    at=20
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)<BR> &n=
    bsp; =20
    at=20weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)<BR></FONT></FON=
    T></DIV>
    <DIV><FONT size=3D2><FONT size=3D1><FONT face=3DTahoma =
    size=3D2>Following is the code=20
    that's written on the client side.</FONT></FONT></FONT></DIV>
    <DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D1> =20
    ProjectBrokerWSClient client =3D new =
    ProjectBrokerWSClient();</FONT></DIV>
    <DIV><FONT face=3DArial size=3D1></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D1>
    =
    // Obtaining=20
    the initial context.<BR> Context
    =
    context =3D=20
    new InitialContext();<BR></FONT><FONT face=3DArial =
    size=3D1></FONT></DIV>
    <DIV><FONT face=3DArial><FONT size=3D1> =
    //=20
    Making a lookup for the required=20
    servlet.<BR> WebServiceProxy proxy
    =
    =3D=20
    (WebServiceProxy)context.lookup(</FONT><A =
    href=3D"http://localhost:7001/PB/"><FONT=20
    size=3D1><A=20
    href=3D"http://localhost:7001/PB/PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl=
    ">http://localhost:7001/PB/</FONT></A><FONT=20
    size=3D1>PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl</A>" =
    );</FONT></FONT></DIV>
    <DIV><FONT face=3DArial size=3D1> =
    SoapMethod=20
    method =3D proxy.getMethod("selfTest");<BR></FONT><FONT face=3DArial
    =
    size=3D2><FONT=20
    size=3D1> Object result =3D =
    method.invoke(new=20
    Object[]{"# Test message #"});</FONT></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2><FONT =
    size=3D1></FONT></FONT> </DIV>
    <DIV><FONT size=3D2><FONT size=3D1><FONT face=3DTahoma size=3D2>The =
    function in the bean=20
    is as follows.</FONT></FONT></FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=3DArial size=3D1>
    =
    public String=20
    selfTest(String ostrMessage){</FONT></DIV>
    <DIV><FONT face=3DArial size=3D1></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D1> =20
    log("inside selfTest()" +=20
    ostrMessage);<BR> &n=
    bsp; return=20
    "# M e s s a g e r e c e i v e d=20
    #";<BR> }<BR></FONT></DIV>=
    <DIV><FONT size=3D1><FONT face=3DTahoma size=3D2>Please let me know if
    =
    some thing is=20
    wrong out here or I have missed out any conf.</FONT></FONT></DIV>
    <DIV><FONT size=3D1><FONT face=3DTahoma =
    size=3D2></FONT></FONT> </DIV>
    <DIV><FONT size=3D1><FONT face=3DTahoma =
    size=3D2>cheers.</FONT></FONT></DIV>
    <DIV><FONT size=3D1><FONT face=3DTahoma size=3D2><STRONG>n a v i=20
    n.</STRONG></FONT></DIV></FONT>
    <DIV><FONT face=3DArial size=3D1> </DIV></FONT>
    <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT =
    size=3D2></FONT> </DIV>
    <DIV><BR></DIV></FONT></FONT></BODY></HTML>

  • WebLogic 10gR3 Portal Remote EJB gives java.lang.NoSuchMethodException

    We are migrating from WebLogic 11g to WebLogic 10gR3 Portal. The application we have currently works with 11g. Since migrating to 10gR3 we are now recieving the following error while calling a remote EJB.
    java.lang.NoSuchMethodException: com.xyz.SomeService_um3hps_SomeServiceRemoteImpl_1030_WLStub.login(java.lang.String, java.lang.String, com.xyz.User, com.xyz.Journal)
    at java.lang.Class.getMethod(Class.java:1605)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.getTargetMethod(RemoteBusinessIntfProxy.java:162)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:53)
    at $Proxy161.login(Unknown Source)
    at com.xyz.SomeServlet.service(PortalLoginServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.xyz.presentation.jsf.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:114)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Version: WebLogic 10gR3 Portal
    The call is being made from one cluster to another in the same domain.
    There are two separate ear files that make up the application. One EAR contains the application, the other contains services. The services ear is deployed to one cluster, and the application to another cluster. Remote EJB calls are made from the application to the services. If these ears are in separate clusters, the calls fail with the error above. If the EARs are deployed within the same cluster, the calls work correctly.
    Thanks
    Edited by: user7719024 on Feb 17, 2010 2:40 PM

    Hi,
    As u are migrating from WebLogic 11g to WebLogic 10gR3 Portal so it will be best if you can generate the Artifacts like Stubs...etc using APPC compiler of WebLogic 10gR3 Portal.
    Then deploy the EAR/WAR on WebLogic 10gR3 Portal Server. http://jaysensharma.wordpress.com/2010/02/08/weblogic-specific-appc-ant-task/
    Thanks
    Jay SenSharma

  • Error while using .jar file instead of class file.

    Hello friends,
    I created a java class which are referred and called from other jsp\xml and java files. I compiled this java class and everything is working properly. However, I do not want to use class files but want to use jar files instead. So, I created a jar file of this class file by using the command "jar -cvf jarfilename.jar".I kept the jar file in its respective folder .Also, I removed the class file from its path, just to see that the jar file will work automatically.
    Unfortunately, I am getting an error:
    java.lang.RuntimeException: Component.createComponent(...) Component class not found: <java class path>. I also tried giving the path of this jar file in the classpath. This also does not seem working.
    How to solve this problem?
    Thanks,
    Ranjith M.V
    Edited by: RanjithM.V on May 11, 2008 10:34 PM

    You probably populated the jar file incorrectly.
    A common mistake is to include the path that you had on the classpath, in the jar file.
    So a person will have a classpath like this: /foo/
    And a class in a package bar, like this:
    package bar;So that other classes would include the file like this:
    import bar.TheClass;And the class file is on the filesystem like this:
    .../foo/bar/TheClass.classThen they'll create the jar file including the foo directory, so if they list the jar's contents, they'll see the above (/foo/bar/TheClass.class). But this is wrong. It should start off so that the jar entries start with the top-level package names (like /bar/TheClass.class).
    Maybe you've done that.

  • Using .jar files

    I was able to use .jar files in Java programs that I write on my computer. I could write a program that used an import statement to bring in classes contained in a .jar file.
    One day, I was trying to incorporate a jar file folder directly into my windows operating system by using the environmental variable called CLASSPATH. Unfortunately, I made the mistake of screwing up my PATH variable. I fixed my PATH variable back up by adding the directory to the bin folder inside of the Java folder as is described commonly by the documentation for installing the Java SE on windows computer.
    Since that day, I have not been able to use .jar files using an import statement. My computer is unable to find the .jar files even if I specify the exact directory. Even the IDE(netbeans) that I use is unable to find and use .jar files. I have found that I can open up .jar files and pull the contents that I need out of said .jar files, but I have a project that does not allow me to open up the .jar files and extract the needed classes.
    I have googled this problem so much that I have read hundreds of posts about .jar files, and I cant find anyone in a situation that is similar to mine. If I take my files to another computer with Java SE installed, then my source code can access the .jar files just fine. For some reason, my work computer seems to hate using .jar files. I have no idea what could be the problem. There is no information in the java documentation on troubleshooting with this problem, and the most confusing part is that it worked perfectly fine until That one day
    Does anyone have any ideas?
    Specific technical details:
    I need to pull the Stopwatch.class file from a stdlib.jar file. In the past I had done this by using an import statement inside of my program:
    "import stdlib.Stopwatch; "
    Using this command to compile:
    "javac -cp .;(directory path to .jar file); source.java"
    This used to work. Now when using the javac command I get error messages
    1. Error points directly to import statement. Arrow directed at the period after stdlib.
    "cannot find symbol"
    2. Error message pointing to all instances of the class that I was attempting to import into my program.
    Thanks for reading
    Edited by: 955611 on Aug 28, 2012 7:22 PM

    I read your post. I want to compile this project by using the "-classpath" option in the javac command. After screwing up important system variables once, I do not want to continually have to play with system variable in order to compile projects. To quote from the website that you linked:
    Using the JDK tools' -classpath option
    The JDK tools java, jdb, javac, and javah have a -classpath option which replaces the path or paths specified by the CLASSPATH environment variable while the tool runs. This is the recommended option for changing class path settings, because each application can have the class path it needs without interfering with any other application.
    The runtime tool java has a -cp option, as well. This option is an abbreviation for -classpath.
    For very special cases, both java and javac have options that let you change the path they use to find their own class libraries. The vast majority of users will never to need to use those options, however.
    Clearly, the "-classpath" option in the javac is intended to replace the need to play with important system variables. I guess my post boils down to the question of "Why doesn't this command work for me?". I followed your suggestion by removing the bin directories and adding the stdlib.jar directory directly into the system variable itself. Here is the following output from my command prompt:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Lelo>E:
    E:\>cd Programs\Java
    E:\Programs\Java>javac testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>echo %CLASSPATH%
    C:\Program Files\Java\jre6\lib\ext\QTJava.zip;E:\Programs\Java\stdlib.jar;
    E:\Programs\Java>javac -classpath .;E:\Programs\Java\stdlib.jar; testy.java
    testy.java:1: error: package stdlib does not exist
    import stdlib.Stopwatch;
    ^
    1 error
    E:\Programs\Java>
    I still received the same errors. It seems that even adding the directories into the system variable will not work for me.

Maybe you are looking for

  • Actual cost at the time of Goods Receipt

    Hi All, When I create Goods Receipt, I am getting actual cost in WBS Element. As per customer request, When I do the Goods Issue then only actual cost has to come to WBS Element. 1. Is it due to statistical cost element cretaed for inventory account

  • I figured out how to go back to 2.0 on 3G iPhone

    After Mobile Me and 2.0.1 rendered my 3G iphone unusable and having no way to restore to 2.0... I finally gave up. Restored as new iPhone about 15 times Restored from backup about 15 times Hard resets daily Turn on then off daily Reset Network settin

  • GIF files (MIME attachments) in incoming mail display too large

    This happens only in messages I get from my service provider about msgs their Spam filter catches. They attach small GIF files to differentiate the kinds of Spam in the list, i.e. money offers, gift offers. The first time each image appears it's the

  • Termination Date in Employee Self Service

    Dear All, In Employee Self Service Termination Date is defaulting as System Date when employee is initiating the termination. So employee is not able to edit the Date. After approval it is storing directly in to the form. In this case employee is not

  • My iPad Air speakers only work on some apps??

    The speakers on my iPad Air only work on some apps??