Servlet cannot find local interface

I have created a session bean called "UsersManagementBean" and his local interface called "UsersManagement".
After deploying the application on JBoss server i got the error "PackageName.UserManagement not bound".
my jndi tree view shows (under global jndi namespace)-
  +- UsersManagementBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy85 implements interface PackageName.UsersManagement,interface org.jboss.ejb3.JBossProxy)code related from the servlet-
  @EJB
    UsersManagement mng;
    mng=(UsersManagement)context.lookup(UsersManagement.class.getName());local interface-
@Local
public interface UsersManagement
{}session bean-
@Stateless
public class UsersManagementBean implements UsersManagement
{}what's wrong?
why can't he find the local interface?
thanks in advanced.

According to the EJB 2.0 spec:
"A local client of an entity bean may be a session bean, a
message-driven bean, or another entity bean."
This is not exclusive list, servlets and JSPs also can work with local EJB interfaces. Please note that your WEB app. and EJBs should be deployed in the same EAR.
The question is, can I use a JNDI lookup for the local
Home and EJBObject interfaces, rather than having the
overhead of using the RMI based remote implementationsYes you can. You will need to define local ref in web.xml descriptor:
<ejb-local-ref>
    <ejb-ref-name>ejb/CarmichaelSessionRef</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>carmichaelbeans.beans.CarmichaelSessionLocalHome</local-home>
    <local>carmichaelbeans.beans.CarmichaelSessionLocal</local>
    <ejb-link>CarmichaelSession</ejb-link>
  </ejb-local-ref>lookup you bean in java:comp/env context:
InitialContext ic = new InitialContext();
            CarmichaelSessionLocalHome home =  (CarmichaelSessionLocalHome) ic.lookup("java:comp/env/ejb/CarmichaelSessionRef");Maris Orbidans

Similar Messages

  • Peoplesoft Adapter -Cannot find component interface

    Hi all,
    I was able to successfully generate the wsdl file for a Component Interface "LOCATION" in the application explorer. However, on using this wsdl in my bpel project and subsequently executing the interface, i am getting the following error message in bpel console.
    <Invoke_1_LOCATION_OutputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="output_LOCATION">
    <PS8 xmlns="urn:iwaysoftware:adapter:peoplesoft:ci:response">
    <error>Cannot find Component Interface {LOCATION} (91,2)</error>
    </PS8>
    </part>
    </Invoke_1_LOCATION_OutputVariable>
    I have checked the configuration multtiple times now. Nothing seems to be missing or wrong in the configuration.
    Has anyone faced similar issue? Could any configuration be missing.
    Is this error raised at the adapter side or on peoplesoft? Is the communication with PeopleSoft actually taking place?

    John,
    Following could be the reasons:
    1. Make sure that the path in the jar file for the class files(PeopleSoft CI java api) exactly matches the following:
    \PeopleSoft\Generated\CompIntfc
    Upper and lower case differences should be followed exactly.
    2. The Java API for the selected component interface is not found in the API JAR file. Please check the Java API for the class file for the CI. If not found, please add the class file for the CI.
    3. The component interface name is mentioned incorrectly in the request document.
    4. If you are using 10.1.3.x version of SOA Suite, then make sure that the component interface jar is included in the server.xml. Please see the details for this in the 10.1.3.x application adapter installation guide.
    5. Following could also be an issue:
    LOCATION Component Interface
    Explanation
    When you attempt to access the LOCATION Component Interface using the Human Resources application, release 8.80.000, a failure occurs during runtime and the following message is displayed:
    Component Interface Not Found
    This is due to a problem in the way the PeopleSoft application has been delivered and is not related to the PeopleTools release.
    Workaround
    Perform the following steps:
    1. Open the component interface in the PeopleTools Application Designer.
    2. Make a small change to the component interface.
    3. Undo the change.
    4. Save the component interface.
    This procedure resets certain internal PeopleSoft data structures, which enables the Adapter for PeopleSoft to find the component interface. This has been observed in the LOCATION Component Interface running on the Human Resource applications release 8.8.000 on several different releases of PeopleTools, but it may
    occur in other component interfaces as well.
    Edited by: Siva Krishnajee on Jul 6, 2009 1:18 PM
    Edited by: Siva Krishnajee on Jul 6, 2009 1:36 PM

  • Sometimes my browser cannot find local website

    Sometimes my browser cannot find local website or internet site. It disconnect, also does Apple e-mail. I have to restart to get the connection back. I've to do that several times a day which is very frustrating.
    Anyone had a similar problem?
    p.s. this happened before I upgraded to 10.6.4

    Hey kwaysonFL,
    What is the IP address of the iPod touch?
    Does the touch show a Mac address? Goto Settings>General>About>Wi-Fi address
    Can the iPod touch load the apple.com web page using the IP address? Launching Safari and going to 17.149.160.49
    Try making the iPhone forget the network as described here:
    http://docs.info.apple.com/article.html?artnum=305715
    Jason

  • Servlet cannot find Bean

    I am trying to access a java bean through a servlet..
    the bean is defined in the package com.mycomp
    when i use this bean using test.jsp it works fine it finds the package com.mycomp.. but when i am using the Servlet it cannot find the package...when i am trying to compile the servlet it says it cannot resolve the symbol class ConnectionBean
    it cannot find the package com.mycomp
    your help will be appreciatied....
    here is the structure of files:
    tomcat
    webapps
    myapp
    jsp
    -test.jsp
    WEB-INF
    classes
    -PropertyServlet.java
    -PropertyServlet.class
    -ConnectionBean.java
    com
    mycomp
    -ConnectionBean.class
    I have tried importing in the servlet import com.mycomp.*; but i still get an error com.mycomp not found...
    I have also tried importing the class itself by import com.mycomp.ConnectionBean;
    I still get the package com.mycomp not found;
    is there any xml file or anything that i need to edit so servlets can read the packages located in classes folder?

    me also same problem...
    this class path is included in server itself..
    or we can set during compiling time...
    then this is my compile.bat file please check
    set classpath=%CLASSPATH%; ./WEB-INF/classes;
    @echo off
    javac -d ./WEB-INF/classes/ ./dev/beans/*.java
    javac -d ./WEB-INF/classes/ ./dev/ContentManagement/beans/*.java
    javac -d ./WEB-INF/classes/ ./dev/servlets/*.java
    and my servlet file like this below..
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.deploy.servlet.*;
    public class ControlServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("Testing");
    /*          if (request.getParameter("pageName")=="CEOSpeak")
                   CEOBean CB = new CEOBean();
                   if (request.getParameter("actionType")=="add")
                   else if (request.getParameter("actionType")=="edit")
                   else if (request.getParameter("actionType")=="delete")
                        if(CB.deleteCEO(request.getParameter("CEOId")))
                             response.sendRedirect("CEO_Speaks.jsp");

  • Servlet cannot find helper class

    Hello
    Under WEB-INF/classes I put ServletExample and SingletonExample. Compiling ServletExample, that makes use of SingletonExample, works.
    In the directory WEB-INF/classes I also have another direcotry, test. And in WEB-INF/classes/test I put again ServletExample and SingletonExample.
    Here I have tried in several ways to compile the servlet, but I always get an:
    Cannot find symbol class SingletonExample.
    I tried writing package test at the top of both files, and even at the top of only one of these two.
    I even tried to make WEB-INF/classes/test/ServletExample make use of SingletonExample residing in WEB-INF/classes, but I didnt succeded.
    What happens when you have subdirectory in WEB-INF/classes/? I think this is a MUST, to have subdirectory in large webapplication, so I really dont want to put everything in the classes directory.
    Do you how to resolve this prolem? And: if Im in WEB-INF/classes/test and want to referr from a servlet residing in this direcory to a Singleton/helper class residing in WEB-INF/classes/, which approach do I have to use?
    Thanks
    Paolo

    Jeez, you aren't gonna get very far in Java like this.
    CLASSPATH is wrong - again. You're supposed to give JARs and paths where the class loader is supposed to look, not the actual .class file.
    Also, you're not telling the compiler to put the .class file in the package directory structure.
    Your example is pretty awful. Try this:
    Put this code into c:\common
    package common;
    import common.test.TestDown;  // What the hell is this?  There is no package test, but there is a package named common.test
    public class TestUp
       public void sayHello()
          System.out.println("Hello.....");
    }Put this code into c:\common\test
    package common.test;
    import common.TestUp;
    public class  TestDown
       public TestDown()
            TestUp testUp = new TestUp();
            testUp.sayHello();
       public static void main(String[] args)
            new TestDown();
    }Open a command shell and navigate to c:\, then do the following:
    Directory of c:
    07/01/2005  03:43 PM    <DIR>          .
    07/01/2005  03:43 PM    <DIR>          ..
    07/01/2005  03:45 PM    <DIR>          common
                   0 File(s)              0 bytes
                   3 Dir(s)  74,909,675,520 bytes free
    C:\>javac -d . common\*.java
    C:\>javac -d . common\test\*.java
    C:\>java -classpath . common.test.TestDown
    Hello.....Once you've got your head around this, go learn Ant and have it compile your projects properly.
    %

  • Waveburner cannot find audio interface

    Under preferences, Waveburner cannot find my audio interface. It plays back through the internal sound card. Any fix to this problem?
    Running Logic Pro 9, Focusrite Saffire Pro firewire interface

    http://support.apple.com/kb/TS2138
    problem solved

  • Openssh and dhcpcd updated today - now sftp cannot find local servers

    Hi folks,
    I did my update thing this evening 'packer -Syu' and openssh was updated to 6.6p1
    [2014-03-19 18:44] [PACMAN] upgraded openssh (6.5p1-2 -> 6.6p1-1)
    and dhcpcd was updated to 6.3.2-1
    [2014-03-19 18:43] [PACMAN] upgraded dhcpcd (6.3.1-2 -> 6.3.2-1)
    and then sftp stopped working as it was ok before the updates.
    I get error messages like this:
    [dellgx270:steve] /home/steve
    1442 20140319 234019 $ sftp laptop.local
    ssh: Could not resolve hostname laptop.local: Inappropriate ioctl for device
    Couldn't read packet: Connection reset by peer
    [dellgx270:steve] /home/steve
    1443 20140319 234030 $ _
    This is how I network my machines. Its much lighter on resources than either NFS or Samba, but is a bit tricky to configure at first go. The Arch Wiki has some older stuff in it and is a bit confusing for first-time users but I also 'googled' other forums and eventually got things configured correctly. Ubuntu flavors work out of the box, but Arch needs some extra leg-work to get things organized.
    I tried removing the ~/.ssh/known_hosts files but that didn't work. Since the error was a resolver issue (according to my error messages) I tried using the IP address of the laptop.local machine 192.168.2.10 and that worked both at the command line and via my file manager thunar (I run XFCE on all my boxes because it works well and with a few additions I can get it to do what I want) ...
    Problem is, the IP addresses are assigned by dhcpcd (which means they can get reassigned somewhere else) so I would prefer using the host.local names in scripts and bookmarks etc.
    Anyone else having issues of this sort? Inquiring minds need to know!
    Regards,
    Steve Dupuis
    Oracle DBA, Unix and NT Systems Management Services
    SGC/EDP Consultants INC. Ottawa, CANADA
    mailto:[email protected]

    From the Arch Wiki - Networking - Avahi page (this is what I've been using for more than a year):
    "Avahi is a free Zero-configuration networking (zeroconf) implementation, including a system for multicast DNS/DNS-SD service discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to. It is licensed under the GNU Lesser General Public License (LGPL)."
    I don't use hosts file or anything else to resolve the names of the local workstations and/or devices. I have a relatively new Sagemcom fibre router / modem device, and it has been working well since installation ..
    What I've been trying to say - as in my initial post - that this worked properly before I did the dhcpcd update. I'll recheck all the settings for dhcpcd, ssh and sftp (and anything else in my networking configurations) to see if anything is in error. There were no .pacnew files created during that software update. I'll post anything that I learn.
    Regards,
    Steve Dupuis

  • Helper class invoking by servlet cannot find file.

              Hi,
              I have the following file structure in the war for my web application.
              WEB-INF/classes/com/olf/servlets/AppServlet.class
              WEB-INF/classes/com/olf/util/CommonUtil.class
              WEB-INF/classes/com/olf/util/JndiUtil.class
              WEB-INF/classes/com/olf/util/jndi.xml
              When the JndiUtil is invoked by the CommonUtil , the JndiUtil has no problem to
              locate the jndi.xml; however, when
              the JndiUtil class is invoked by the AppServlet. An exception thrown from the
              JndiUtil states that it can't locate
              the XML file from WebLogic Home directory. Does anyone know why the search is
              done on WebLogic Home or even got up there?
              Any help is greatly appreciate!
              kenny
              In AppServlet.class
              ===================
              public void init(ServletConfig config) throws ServletException
                   InitialContext ic = JndiUtil.getInstance().getInitialContext();
              In JndiUtil.class
              public final static JndiUtil getInstance()
                   SAXParserFactory factory = SAXParserFactory.newInstance();
                   SAXParser saxParser = factory.newSAXParser();
                   saxParser.parse(new File("jnid.xml"), handler);
                   catch (SAXException e){
                        e.printStackTrace();
                        System.out.println("SAXException:" + e.getMessage());
              Below is the exception thrown by the SAX parser
              org.xml.sax.SAXParseException: File "file:C:/bea/wlserver6.1/jndi.xml" not found.
              at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1088)
              at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
              at weblogic.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:310)
              at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:966)
              at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
              at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
              at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
              at javax.xml.parsers.SAXParser.parse(SAXParser.java:286)
              at com.olf.util.JndiUtil.getInstance(JndiUtil.java:59)
              at com.olf.servlets.AppServlet.init(AppServlet.java:60)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Since your class may be used by other subsystems also you can write a
              small abstract class or an interface for example
              interface ResourceHandler {
              public InputStream getStream();
              and make our method take ResourceHandler as an argument.
              which can be used as follows
              JndiUtil.someMethod(new ResourceHandler(){
              public InputStream getStream(String name){
                             return context.getResourceAsStream("name");
              u can create a new inner class to serve a different purpose..
              e.g. standalone
              JndiUtil.someMethod(new ResourceHandler(){
              public InputStream getStream(String name){
                             return new FileInputStream(name);
              hope this helps
              nagesh
              PS: ooh yes, make this method throw an IOException      
              and also you can use an abstract class if u have any
              common logic to be added to this class..
              Kenny wrote:
              >
              > Nagesh,
              >
              > Thanks for the thought! However, by using the ServletContext, the JndiUtil class
              > would be tighted to the Servlet Container because it expects the caller passing
              > in a ServletContext. I would like to make the JndiUtil class shared by other
              > components in the system instead of only serving Servlets.
              >
              > Do you know if there is a way to locate a file in the system regardless which
              > container the call is in?
              >
              > Thanks!
              > kenny
              > Nagesh Susarla <[email protected]> wrote:
              > >try using ServletContext.getResourceAsStream()
              > >
              > >Kenny wrote:
              > >>
              > >> Hi,
              > >>
              > >> I have the following file structure in the war for my web application.
              > >>
              > >> WEB-INF/classes/com/olf/servlets/AppServlet.class
              > >>
              > >> WEB-INF/classes/com/olf/util/CommonUtil.class
              > >> WEB-INF/classes/com/olf/util/JndiUtil.class
              > >> WEB-INF/classes/com/olf/util/jndi.xml
              > >>
              > >> When the JndiUtil is invoked by the CommonUtil , the JndiUtil has no
              > >problem to
              > >> locate the jndi.xml; however, when
              > >> the JndiUtil class is invoked by the AppServlet. An exception thrown
              > >from the
              > >> JndiUtil states that it can't locate
              > >> the XML file from WebLogic Home directory. Does anyone know why the
              > >search is
              > >> done on WebLogic Home or even got up there?
              > >>
              > >> Any help is greatly appreciate!
              > >> kenny
              > >>
              > >> In AppServlet.class
              > >> ===================
              > >> public void init(ServletConfig config) throws ServletException
              > >> {
              > >> ...
              > >>
              > >> InitialContext ic = JndiUtil.getInstance().getInitialContext();
              > >> ...
              > >> }
              > >>
              > >> In JndiUtil.class
              > >>
              > >> public final static JndiUtil getInstance()
              > >> {
              > >> ...
              > >>
              > >> SAXParserFactory factory = SAXParserFactory.newInstance();
              > >> SAXParser saxParser = factory.newSAXParser();
              > >> saxParser.parse(new File("jnid.xml"), handler);
              > >>
              > >> ...
              > >> catch (SAXException e){
              > >> e.printStackTrace();
              > >> System.out.println("SAXException:" + e.getMessage());
              > >> }
              > >> ...
              > >> }
              > >>
              > >> Below is the exception thrown by the SAX parser
              > >>
              > >> org.xml.sax.SAXParseException: File "file:C:/bea/wlserver6.1/jndi.xml"
              > >not found.
              > >> at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1088)
              > >> at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
              > >> at weblogic.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:310)
              > >> at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:966)
              > >> at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:123)
              > >> at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:125)
              > >> at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
              > >> at javax.xml.parsers.SAXParser.parse(SAXParser.java:286)
              > >> at com.olf.util.JndiUtil.getInstance(JndiUtil.java:59)
              > >> at com.olf.servlets.AppServlet.init(AppServlet.java:60)
              > >> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700)
              > >> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643)
              > >> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588)
              > >> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
              > >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              > >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              > >> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
              > >> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              > >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • External servlets cannot find initialize

    I'm trying to get the Portal to execute servlets for external providers and I'm having difficulties.
    The instructions from the provider had me change the zone.properties to include an alias for the servlet and init parameters for the alias
    servlet.webexportlet.code=oracle.portal.provider.v1.http.HttpProvider
    servlet.webexportlet.initArgs=provider_root=<path to directory containing provider.xml>,sessiontimeout=180000
    When I go to test the portlet, I get an exception in jserv.log
    (ERROR) ajp12: Servlet Error: ClassNotFoundException: oracle.portal.provider.v1.http.HttpProvider
    It couldn't find the HttpProvider class
    Found a directory path ..../oracle/portal/provider/v1 that contained a provider.jar file. This may not be the correct one though. It's path doesn't seem to relate to the portal.
    Created wrapper.classpath=<above path to provider.jar file > in jserv.properties.
    Then when I test it, it seems to find the HttpProvider class. I then get the following error.
    webexportlet/oracle.portal.provider.v1.http.HttpProvider: init
    (ERROR) ajp12: Servlet Error: Initialization error while loading the servlet: No Provider class defined via this servlet's initArgs
    The first line of the provider.xml file in the directory pointed to as the provider_root in the initArgs contains the following:
    <provider class="oracle.portal.provider.v1.http.DefaultProvider" session="true">
    so it does look like the provider class is defined. May not be finding it in provider.jar file though. Not sure. Certain it's not a typo in the path to the provider.xml file.
    There are three different servlets we're trying to add with the provider.xml file in different directories and they all give the same error.
    Stuck from here. Any help you can provide will be a great assistance.

    what version of the portal are you using?
    What version of the JPDK are you using?

  • SBS 2008 cannot find local router after router is changed

    Hello,
    I changed the router on my SBS 2008 server. Because I wanted more speed anticipating increasing cloud demands for bandwidth (my ISP provides 100 MB and earlier router chokes @ 48MB), I thought my network would be faster if I used the router to provide DHCP
    since SBS only supports 1 NIC.
    That was a big mistake.
    So I disabled DHCP on the new router and tried to use the Fix My Network Wizard to "fix my network".
    The results are very strange.
    I got all the messages about opening ports discussed elsewhere on this forum. But that's not the strange part.
    When I run the connect to the internet wizard , it reports that it found the router and provides the correct IP addresses for both it and the server. However, it did not find my new router at all. Instead, it finds the ISP's router
    which, of course, it cannot configure. (How it picked the correct IP addresses is also beyond me.)
    The router is a NetGear SRX.... I reset it to factory, disabled DHCP and assigned the fixed IP and DNS server information for our ISP.
    Does anybody have any idea why this new router cannot be found and how to fix it.(I have read all the similar posts but none apply.)
    Thanks.
    Murray
    M Whipps

    Sounds funky, let's go back to basic and start from fresh. Try performing these steps in exact order.
    1. Disconnect all Ethernet cables from new router
    2. Reset the router to factory defaults, usually with a paperclip tip, check manual
    3. Connect a computer to one of the LAN ports, do not use the server
    4. Configure the computer's IP address, if needed, to coincide with router
    5. Log into router and configure LAN IP to match your old router's LAN IP
    6. Disable DHCP Server in the router
    7. Disconnect computer from LAN port
    8. Connect Server to LAN port
    9. As a test, you should now be able to login into router, from the server, do not make any changes
    10. Re-run the Connect to Internet Wizard
    11. The wizard may not be able to configure the firewall, that is ok, you can manually do it later
    12. Once Wizard finishes, connect ISP to the WAN/Internet port
    13. Log into router and configure the internet connection
    you should now have internet going now on the rest of the network.

  • Servlet cannot find applet class.. HELP..DONT REPLY..SOLUTION FOUND

    Hi.. can anybody help me.. with this age old problem?
    I have an applet.. which generates a pie chart .. Pie.class. If i embed it in a normal HTML page.. it runs smoothly.
    Now the problem is.. in my servlet i tried to do this
    out.println("<applet code=Pie.class codebase=/mywebapp/  height=300 width=300">);etc..
    but when the servlet runs.. the applet is not initalised .. so instead of having the applet i have a 'x' sign.. .. To diagnose the problem better.. i right click on the area that is supposed to be the applet and select 'Open Java Console' . ..there i see.. a ClassNotFound Exception.
    I have kept the Pie.class in the WEB-INF -> classes Folder ( where all the other class files of the servlets are kept ).
    Can anybody help me??
    Thanks in advance
    Hi guys sorry to bother u.. i have found the soln. myslef... my mistake was to place the applet class in web-inf-> class folder.. as soon as i placed it outside the folder.. it worked superbly. Thanks anyway
    Message was edited by:
    arijit_datta

    me also same problem...
    this class path is included in server itself..
    or we can set during compiling time...
    then this is my compile.bat file please check
    set classpath=%CLASSPATH%; ./WEB-INF/classes;
    @echo off
    javac -d ./WEB-INF/classes/ ./dev/beans/*.java
    javac -d ./WEB-INF/classes/ ./dev/ContentManagement/beans/*.java
    javac -d ./WEB-INF/classes/ ./dev/servlets/*.java
    and my servlet file like this below..
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.deploy.servlet.*;
    public class ControlServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("Testing");
    /*          if (request.getParameter("pageName")=="CEOSpeak")
                   CEOBean CB = new CEOBean();
                   if (request.getParameter("actionType")=="add")
                   else if (request.getParameter("actionType")=="edit")
                   else if (request.getParameter("actionType")=="delete")
                        if(CB.deleteCEO(request.getParameter("CEOId")))
                             response.sendRedirect("CEO_Speaks.jsp");

  • Servlet cannot find classes when in a EAR

              Hi
              I have a EAR that contains a EJB module and a web application module.
              The Web application module contains two servlets to be deployed. One is Action
              Servlet (struts.jar) and the other is our home-made. I am able to deploy the
              WAR and JAR separately, but when these are packaged in an EAR I get the following
              errors
              <03-Oct-2003 11:14:58 o'clock BST> <Error> <HTTP> <BEA-101254> <[ServletContext(id=6832671,name=payments-web,context-path=/payments-web)]:
              Servlet class org.apache.struts.action.ActionServlet for servlet action could
              not be handled by the classloader with classpath C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war;C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war\WEB-INF\classes;C:\bea2\user_projects\domains\paymentsdomain\.\myserver\.wlnotdelete\extract\myserver_payments_payments-web\jarfiles\WEB-INF\lib\struts30440.jar.
              java.lang.ExceptionInInitializerError.>
              <03-Oct-2003 11:14:58 o'clock BST> <Error> <HTTP> <BEA-101216> <Servlet: "action"
              failed to preload on startup in Web application: "payments-web".
              javax.servlet.ServletException: [HTTP:101254][ServletContext(id=6832671,name=payments-web,context-path=/payments-web)]:
              Servlet class org.apache.struts.action.ActionServlet for servlet action could
              not be handled by the classloader with classpath C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war;C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war\WEB-INF\classes;C:\bea2\user_projects\domains\paymentsdomain\.\myserver\.wlnotdelete\extract\myserver_payments_payments-web\jarfiles\WEB-INF\lib\struts30440.jar.
              java.lang.ExceptionInInitializerError.
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3236)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181)
              at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3154)
              at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5637)
              at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:866)
              at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2017)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2058)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              <03-Oct-2003 11:14:58 o'clock BST> <Warning> <Deployer> <BEA-149004> <Failures
              were detected while initiating Deploy task for application payments.>
              <03-Oct-2003 11:14:58 o'clock BST> <Error> <Deployer> <BEA-149201> <Failed to
              complete the deployment task with ID 1 for the application payments.
              weblogic.management.DeploymentException:
              Exception:weblogic.management.ApplicationException: start() failed.
              Module: payments-web Error: java.lang.ExceptionInInitializerError
              My observations are
              1. The servlet has been located.
              2. Please note the <Warn> message that the ActionServlet class could not be handled
              by the classloader. What does this mean ???
              3 I also tried putting these jars in APP-INF/lib but got the same errors
              I am using WLS 8.1 SP1 on XP professional
              Thanks
              Jasmeet
              

              Just to add on to that ...
              If I put all my required/referemced application classes and dependent classes
              in System CLASSPATH, the whole deploys and runs quite nicely.
              Is that allowed ?? Would it not be better to have some application level classloading
              rather than going for the system classpath
              thanks
              jasmeet
              "jasmeet" <[email protected]> wrote:
              >
              >Hi
              >
              >I have a EAR that contains a EJB module and a web application module.
              >The Web application module contains two servlets to be deployed. One
              >is Action
              >Servlet (struts.jar) and the other is our home-made. I am able to deploy
              >the
              >WAR and JAR separately, but when these are packaged in an EAR I get the
              >following
              >errors
              >
              ><03-Oct-2003 11:14:58 o'clock BST> <Error> <HTTP> <BEA-101254> <[ServletContext(id=6832671,name=payments-web,context-path=/payments-web)]:
              >Servlet class org.apache.struts.action.ActionServlet for servlet action
              >could
              >not be handled by the classloader with classpath C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war;C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war\WEB-INF\classes;C:\bea2\user_projects\domains\paymentsdomain\.\myserver\.wlnotdelete\extract\myserver_payments_payments-web\jarfiles\WEB-INF\lib\struts30440.jar.
              >java.lang.ExceptionInInitializerError.>
              ><03-Oct-2003 11:14:58 o'clock BST> <Error> <HTTP> <BEA-101216> <Servlet:
              >"action"
              >failed to preload on startup in Web application: "payments-web".
              >javax.servlet.ServletException: [HTTP:101254][ServletContext(id=6832671,name=payments-web,context-path=/payments-web)]:
              >Servlet class org.apache.struts.action.ActionServlet for servlet action
              >could
              >not be handled by the classloader with classpath C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war;C:\bea2\user_projects\domains\paymentsdomain\myserver\upload\payments.ear\payments-web.war\WEB-INF\classes;C:\bea2\user_projects\domains\paymentsdomain\.\myserver\.wlnotdelete\extract\myserver_payments_payments-web\jarfiles\WEB-INF\lib\struts30440.jar.
              >java.lang.ExceptionInInitializerError.
              > at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
              > at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3236)
              > at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3181)
              > at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3154)
              > at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5637)
              > at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:866)
              > at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2017)
              > at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2058)
              > at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
              > at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
              > at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
              > at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
              > at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
              > at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
              > at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
              > at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
              > at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
              > at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >>
              ><03-Oct-2003 11:14:58 o'clock BST> <Warning> <Deployer> <BEA-149004>
              ><Failures
              >were detected while initiating Deploy task for application payments.>
              ><03-Oct-2003 11:14:58 o'clock BST> <Error> <Deployer> <BEA-149201> <Failed
              >to
              >complete the deployment task with ID 1 for the application payments.
              >weblogic.management.DeploymentException:
              >Exception:weblogic.management.ApplicationException: start() failed.
              > Module: payments-web Error: java.lang.ExceptionInInitializerError
              >
              >
              >
              >My observations are
              >1. The servlet has been located.
              >2. Please note the <Warn> message that the ActionServlet class could
              >not be handled
              >by the classloader. What does this mean ???
              >3 I also tried putting these jars in APP-INF/lib but got the same errors
              >
              >
              >I am using WLS 8.1 SP1 on XP professional
              >
              >
              >Thanks
              >Jasmeet
              

  • Using Cisco VPN cannot find local SMB shares

    I'm trying to help a colleague get remote VPN access to our office. I have a Macbook Pro and a Macbook Air which work fine. I gave my colleague a step-by-step how to and he seems to have followed it correctly. He can connect using the VPN connection just fine. However, when he goes to connect to our SMB server, he gets an error saying the server is not found.
    I told him to try it using the IP address of the server on our local LAN and he says he gets the same error dialog.
    Both the DNS name and the IP address work fine for me on both of my machines.
    I need ideas of what else to check in his Mac configuration that might be the cause of this failure. Alturnatively, is there a way to "dump" his settings to a text file or something that I can compare to mine to give me a clue?

    Thank you, fupin
    Sabrina's suggestion to edit the pbk file worked. I changed the setting from 1 to 0 and connected to the remote network via the VPN and am still able to access the local DFS shares.
    As per the OPs comments, the username and password I am using for the remote network are both different from the credentials I am using on the local network.
    ... take the steps in the KB 822707 to resolve it:
    1). Locate the .pbk file that contains the entry that you dial. To do so, click Start, click Search, type *.pbk in the All or part of the file name box, and then
    click Search.
    2). Open the file in Notepad.
    3). Locate the following entry: UseRasCredentials=1
    4). Modify the entry to the following: UseRasCredentials=0
    5). On the File menu, click Save, and the click Exit.
    Cheers!

  • How to get Initial context of Local Interface in weblogic 8.1

    I have developed a local entity bean but i wouldnt able to initial context of that bean
    CAN ANYBODY HELP ME
    bean deployment descriptor
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <!--
    ** This file was automatically generated by EJBGen 2.16
    ** Build: 20031001-1049
    -->
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CabinBean</ejb-name>
    <home>my.CabinRemoteHome</home>
    <remote>my.CabinRemote</remote>
    <ejb-class>my.CabinBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>True</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>CabinBean</abstract-schema-name>
    <cmp-field>
    <field-name>bedCount</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>deckLevel</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>shipId</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    <security-identity>
    <use-caller-identity/>
    </security-identity>
    </entity>
    <entity>
    <ejb-name>CabinLocal</ejb-name>
    <local-home>my.CabinLocalHome</local-home>
    <local>my.CabinLocalLocal</local>
    <ejb-class>my.CabinLocal</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>True</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>CabinLocal</abstract-schema-name>
    <cmp-field>
    <field-name>bedCount</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>deckLevel</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>shipId</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    <ejb-local-ref>
    <ejb-ref-name>LocalCabin</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>CabinLocalHome</local-home>
    <local>CabinLocal</local>
    <ejb-link>LocalCabin</ejb-link>
    </ejb-local-ref>
    <security-identity>
    <use-caller-identity/>
    </security-identity>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>CabinLocal</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <method>
    <ejb-name>CabinBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    <ejb-client-jar>EjbClient</ejb-client-jar>
    </ejb-jar>
    ************************************** Client Code****************
    package com;
    import my.CabinBean;
    import my.CabinRemoteHome;
    import my.CabinRemote;
    import javax.naming.InitialContext;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import javax.rmi.PortableRemoteObject;
    import weblogic.jndi.Environment;
    public class Test
        public static void main(String args[])
            try{
                 Context context = getInitialContext();
                          Object cab = context.lookup("CabinLocalHome");
                ///**********-- Exception is thrown at this point -******************
                System.out.println("============ done====");
                Context ct = getInitialContext();
                Object ref = ct.lookup("CabinHomeRemote");
                CabinRemoteHome home = (CabinRemoteHome)PortableRemoteObject.narrow(ref,CabinRemoteHome.class);
                //CabinRemote cab = home.create(new Integer(1));
                //cab.setName("Master Suite");
                //cab.setDeckLevel(new Integer(1));
                //cab.setShipId(new Integer(1));
                //cab.setBedCount(new Integer(1));
                Integer pk = new Integer(1);
                CabinRemote cab1 = home.findByPrimaryKey(pk);
                System.out.println("--->>>>>>>> "+cab1.getName());
                System.out.println("--->>>>>>>>  "+cab1.getShipId());
                System.out.println("--->>>>>>>>"+cab1.getBedCount());
                System.out.println("--->>>>>>>>"+cab1.getDeckLevel());
                System.out.println("---");  
          }catch(java.rmi.RemoteException e){e.printStackTrace();}
           catch(javax.naming.NamingException e){e.printStackTrace();}
           //catch(javax.ejb.CreateException e){e.printStackTrace();}
           catch(javax.ejb.FinderException e){e.printStackTrace();}
        public static Context getInitialContext() throws javax.naming.NamingException
           Properties p = new Properties();
           p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
           p.put(Context.PROVIDER_URL,"t3://localhost:7001");
           return new javax.naming.InitialContext(p);
    } ************************************** Error ***********************
    javax.naming.LinkException: [Root exception is javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: remaining name: /app/ejb/myejb.jar#CabinLocal/local-home]; Link Remaining Name: 'null']; Link Remaining Name: 'java:app/ejb/myejb.jar#CabinLocal/local-home'
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
         at weblogic.jndi.internal.ServerNamingNode_813_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:369)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:357)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.Test.main(Test.java:27)
    Caused by: javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining name: /app/ejb/myejb.jar#CabinLocal/local-home]; Link Remaining Name: 'null'
         at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:98)
         at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:292)
         at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:771)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.naming.NameNotFoundException: remaining name: /app/ejb/myejb.jar#CabinLocal/local-home
         at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:35)
         at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:39)
         at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:57)
         at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:62)
         at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
         at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:96)

    Hi,
    from what I gather, u have two jars
    1. EJBClient - this will have remote and home interfaces and will be used by the client
    2. myEJB - this iwll have all the classes - remote & home interfaces, the bean class and all the other classes required by the bean.
    Now, the question is, who is acting as the client of your EJB ? There are 3 possibilities
    1. A servlet
    2. Another EJB
    3. a simple java program.
    In the first 2 cases, you can go for Local Interfaces (more so in the second case than the first). The reason being that the the client and server will be in the same JVM. Thus, in the first case, if the Web container and the ejb container are in the same app server, EJBs can be local.
    However, in the third case, it is unlikey that you will have the client runnng and the same jvm as the server, because the server is using the jvm provided by weblogic.
    Thus, you cannot use local interfaces in this 3rd case. I have a feeling that this is what you are doing. If so, change the local interfaces to remote.
    See if this helps. Else, I will mail you some sample code. But I am afraid, sample code wont be of much help bcoz this seems to be a design problem.
    regards

  • RPC web service session beans and local interfaces

    I am wondering if it is possible to use EJB 2.0's local
    interface (vs remote interface) with 6.1's RPC web service
    session beans. Since WLS generates the SOAP servlet that
    invokes the RPC session bean and I do not find
    a way to some how tell SOAP servlet to use local interface to
    get the session bean's local home interface, I am not sure
    this can be done.
    Any comments would be appreciated.
    Thanks.
    Peter

    Ta. Thanks for the info.
    Any idea when Local I/F support is due?
    -Nick
    "Neal Yin" <[email protected]> wrote:
    >
    "Nick Minutello" <[email protected]>
    wrote
    in message news:3d4413a4$[email protected]..
    I was just about to post the very same question - but for WLS 7.0.0.1.
    There are essentially two questions:
    1) (from a functional perspective)
    Can I expose Local Interfaces as SOAP using the auto-generation(servicegen ant
    tasks)?Local Interfaces support is coming.
    2) (from a performance perspective)
    Does the generated SOAP implementation go via the (expensive) RemoteInterface
    (ie marshalling) - or is the RMI marshalling optimised out (by setting<enable-call-by-reference>true</>)?
    You can set this option by yourself on your EJB. Web service runtime
    doesn't
    do any magic in this area.
    Regards,
    Nick
    "Peter" <[email protected]> wrote:
    I am wondering if it is possible to use EJB 2.0's local
    interface (vs remote interface) with 6.1's RPC web service
    session beans. Since WLS generates the SOAP servlet that
    invokes the RPC session bean and I do not find
    a way to some how tell SOAP servlet to use local interface to
    get the session bean's local home interface, I am not sure
    this can be done.
    Any comments would be appreciated.
    Thanks.
    Peter

Maybe you are looking for