Deploying ejb with webservice annotation problem

I have the following code:
HelloInf.java:
package com.bekijkhet;
import java.rmi.Remote;
import java.rmi.RemoteException;
import javax.jws.WebService;
@WebService
public interface HelloInf extends java.rmi.Remote {
java.lang.String sayHello()
throws java.rmi.RemoteException;
Hello.java:
package com.bekijkhet;
import javax.ejb.Remote;
@Remote
public interface Hello {
public String sayHello();
public String sayHelloRemote();
HelloLocal.java:
package com.bekijkhet;
import javax.ejb.Local;
@Local
public interface HelloLocal {
public String sayHello();
public String sayHelloLocal();
HelloBean.java:
package com.bekijkhet;
import javax.ejb.Stateless;
@Stateless
public class HelloBean implements Hello,HelloLocal,HelloInf {
public String sayHello() {
return "Hello World!!!!";
public String sayHelloLocal() {
return "Hello Local World!!!!";
public String sayHelloRemote() {
return "Hello Remote World!!!!";
When I compile these, add them to a jar and try to deploy them to a standalone oc4j 11g container I don't see the Webservice. I do see the EJB. Why isn't the webservice annotation picked up?
BTW: I use jdk 6 u03.
Mvg Andre Broers

Hi,
since there is no enterpise manager in OC4J 11 I am wondering how you verifying the non existence of the WebService. Just asking because I need a clue how to verify this issue.
Frank

Similar Messages

  • Deploying EJB with RAD

    Hello,
    I have an EJB application which uses several external JARs. I added them as a library to the project so that the bean will be able to pass the compilation. However, when I start the server (WebSphere 5.1 Test Environment), I get the exception: addEJBModule failed for ... NoClassDefFoundError...
    I searched for this error and it seems it's related to the classpath, but if I added the library, wasn't it supposed to be deployed automatically with the application? What is missing? (I'm using RAD for development).
    Thanks for any help!

    JavaWisdom wrote:
    SoulTech2012 wrote:
    set your classpath to point to the libraryThat's exactly where my problem lies in. I don't know how to do that in RAD 7. I tried several ways, but couldn't get it to work. The library is actually already in my classpath, No.
    else my code would not have been compiled. Perhaps not true. For example, if you write a class that uses JDBC java.sql interfaces, you can compile just fine even if the driver JAR isn't in the CLASSPATH. It'll only be an issue at runtime.
    It's just when I deploy it and start the server that it can't find the library...Isn't RAD a Java EE compliant app server? Why aren't you packaging these into an EAR file?
    Either way, you screwed up. Look at the IBM docs to see how to do it properly. Stop assuming that you're "right" and defending what you did. You'll find a solution faster.
    %

  • Deploying EJB with Local Interfaces.

    HI everybody
    I am trying example on EJB with LocalInterfaces with BMP.
    My bean without Local interface is deployed and working fine.
    Then i have changed Home & Remote interface code. Again i have deployed it . It is deployed but i am unable to Look Up.
    I am using J2SDKEE1.3 server & JDK1.3.
    I have changed both interface files as follow:-
    I have made my Home interface as :
    public interface RetrieveConditionHome extends javax.ejb.EJBLocalHome {
         public RetrieveCondition create(String SQL_WHERE_ID, String SQL_WHERE_NAME,
              String FROM_TABLE , String WHERE_CLAUSE , String LAST_UPD_USER_ID ,
              Date LAST_UPD_TMSTMP, int ROW_VERSION)
              throws CreateException;
    I have made my Remote interface as :
    public interface RetrieveCondition extends javax.ejb.EJBLocalObject {
         public String getSQLWHERENAME() ;
    -Viren

    In JMS tutorial : They have stated ejbCreateLocal method.
    I am not using this method in my Bean class. I am using general ejbCreate method as we normally do .
    I am really confused about these methods : ejbCreate & ejbCreateLocal.
    JMS Tutorial site (where they have used ejbCreateLocal):
    A J2EETM Application that Uses the JMS API with an Entity Bean
    java.sun.com/products/jms/tutorial/1_3-fcs/doc/j2eeapp3.html
    Viren

  • DB access in Web Dynpro Portal Service / or EJB with WebService ?

    Hi,
    I will develop a web dynpro application which will run in the EP and use an DB. How are the best practices in this scenario ? Should I use a Web Dynpro Model (EJB or WebService) for the persistence operations or should I use Portal Services ?
    Regards
    Flo

    Thanks,
    ok some words more... , I want to find out the differences between VC, PDK and Web Dynpro. Most of the parts of the application will be written in Web Dynpro. It´s possible to access portal services in Web Dynpro. But not with a Web Dynpro Model, so will going to use EJB/Webservice.
    But here I have one more question... I am wondering why EJB a n d Webservice in combination !?!? Can´t I only write a Webservice o r a EJB to achieve the DB connectivity ?
    Thanks
    Flo

  • Possible to deploy EJB with REPLICATE_BINDINGS == false?

    Is there a way to deploy an EJB with WLContext.REPLICATE_BINDINGS == false?
              There does not seem to be a way to do this using deployment descriptors? Is
              it possible to deploy the EJB programmatically so I can explicitly specify
              REPLICATE_BINDINGS for InitialContext?
              Btw, I'm running WLS 5.1.
              Thank you.
              Marko.
              

    <Sep 9, 2003 9:39:46 AM SGT> <Warning> <EJB> <EJB
    Deployment: Ecommerce.OrderLineItemHome cannot be
    redeployed while the server is running.
    com.igine.apps.ecommerce.OrderLineItemBean is located
    in the server's classpath.>
    <Sep 9, 2003 9:39:46 AM SGT> <Warning> <EJB> <EJB
    Deployment: Ecommerce.OrderLineItemHome cannot be
    redeployed while the server is running.
    com.igine.apps.ecommerce.OrderLineItemHome is located
    in the server's classpath.>
    <Sep 9, 2003 9:39:46 AM SGT> <Warning> <EJB> <EJB
    Deployment: Ecommerce.OrderLineItemHome cannot be
    redeployed while the server is running.
    com.igine.apps.ecommerce.OrderLineItem is located in
    the server's classpath.>
    <Sep 9, 2003 9:39:46 AM SGT> <Warning> <EJB> <EJB
    Deployment: Ecommerce.OrderLineItemHome cannot be
    redeployed while the server is running.
    com.igine.apps.ecommerce.OrderLineItemPK is located in
    the server's classpath.>This is where you've messed up. Your EJB-jar should NEVER be in the JVM ClassPath.

  • Help! Problem in deploying ejb with j2ee1.4 deploytool

    I have the error message.
    my system setup
    Project name G:\Test33.ear
    J2EE_HOME d:\j2sdkee1.4
    JAVA_HOME d:\jdk1.4.2
    program path g:\
    ear path g:\
    i cannot deploy it on j2sdkee1.4.
    Any help in this regard is very welcome.
    What is the context path i have to setup to deploy this project
    distribute: G:\Test33.ear
    Deploy action running...
    Contacted Server...
    Application Test33 transferred
    Application Test33 transferred
    Deployment of Test33 is complete.
    Deployment of Test33 is complete.
    Completed
    --- Operation Completed Successfully ---
    start: Test33
    Running...
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException: null; nested exception is:
         javax.management.ReflectionException
         at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:61)
         at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstaller_Stub.start(Unknown Source)
         at com.sun.enterprise.deployapi.actions.ModuleStateAction.run(ModuleStateAction.java:58)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.rmi.RemoteException: null; nested exception is:
         javax.management.ReflectionException
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(JarInstallerImpl.java:1171)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
         at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:252)
         at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
         at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    Caused by: javax.management.ReflectionException
         at com.sun.management.j2se.MOAgents.EmmaBeanUtil.invoke(EmmaBeanUtil.java:346)
         at com.sun.enterprise.management.model.emma.J2EEApplicationMdlEmmaAgent.invoke(J2EEApplicationMdlEmmaAgent.java:406)
         at com.sun.jdmk.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:334)
         at com.sun.jdmk.MetaDataImpl.invoke(MetaDataImpl.java:496)
         at com.sun.jdmk.DefaultMBeanAccessor.invoke(DefaultMBeanAccessor.java:528)
         at com.sun.jdmk.MBeanServerImpl.invoke(MBeanServerImpl.java:579)
         at com.sun.enterprise.management.agent.MEJBUtility.invoke(MEJBUtility.java:314)
         at com.sun.enterprise.management.util.J2EEManagementObjectManager.startModule(J2EEManagementObjectManager.java:636)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.start(JarInstallerImpl.java:1161)
         ... 5 more
    !!! Operation Failed !!!
    [Completed (time=39.7sec, status=13)]
    **********************************************************************

    Don't suppose you ever fixed this, or anyone know how ?!! I'm on XP, sdkee1.4-beta
    Cheers

  • Ear deploy failure with webservice in weblogic 9.2 build from weblogic 8.1

    I get the below exception when I try to deploy the ear file that contains the webservice modules in weblogic 9.2. The ear was working fine in weblogic 8.1 which is build from this version. As part of migrating to the 9.2 I tried to deploy the ear that is build from 8.1. I am struct at this point. Pls help.
    ####<17-Dec-2008 21:03:35 o'clock GMT> <Error> <Deployer> <LDNCTIWA046436> <BatchServer> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1229547815831> <BEA-149205> <Failed to initialize the application 'exwebservices' due to error java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean.
    java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:355)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:294)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:262)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:161)
         at weblogic.ejb.container.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.java:1415)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:326)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:137)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Thanks David and weblogicRocks..
    David,
    I have installed the workshop also during installation. Actually I have searched for the class which is missing from the weblogic 9.2 installation folder. The missing class is is in different package path in weblogic 9.2 (knex81.jar) as shown below. Also, this class is generated by workshop while building in 8.1. So, I think I have to rebuild the work file in 9.2 to avoid referring to this class.
    Missing Class location (weblogic 8.1) (knex.jar): com/bea/wlw/runtime/core/bean/SLSBContainerBean
    Missing Class location (weblogic 9.2) (knex81.jar): com/bea/wlw/knex/runtime/core/bean/SLSBContainerBean
    weblogicRocks,
    I saw in the weblogic site that the webservices built from 8.1 will still work in 9.2 with out the need for changing the code. Pls, let me know whether I need to rebuild them on 9.2. If yes, I have used .jws files(sample class definition below) for my webservices and I came to know that in 9.2 new jws annotations are added, do I need to change my source code to add any new annotations so as to work in 9.2? Also, I have used wlwBuildTask using Ant to build the code in 8.1 and this task is not available in 9.2. Let me know what all I need to change for webservices created from workshop to migrate to 9.2. I am really struggling in resolving the issues as it is very urgent for me. Appreciate you quick response.
    Below is my .jws webserice class definition.
    public class MyWebService implements com.bea.jws.WebService
    private String reqImpl;
    * @common:operation
    * @jws:conversation phase="none"
    public String submitRequest(String var)
    <Method Logic>
    }

  • Subclassed EJB with RolesAllowed annotation not giving permission

    A servlet is calling a method of an EJB (name EJB B). EJB B is a sub class of EJB A which contains the method and is not overridden by EJB B.
    EJB A uses the annotation @RolesAllowed({"user","system","admin"})
    EJB B uses the annotation @RolesAllowed({"system"})
    When the call is made by the servlet the following error is produced:
    JBAS014134: EJB Invocation failed on component EJB B for method xxxx: javax.ejb.EJBAccessException: JBAS014502: Invocation on method: xxxx throws exception of bean: EJB B is not allowed
    If I replace the EJB A annotation with @PermitAll then the method is called without the permission problem.
    I am wondering why the 'system' role allowed in EJB A is ignored in the annotation and the exception is thrown.
    Is this a bug perhaps?

    Hi Jay Bhaiya,
    I am getting the correct output by following the below:
    1: Change the SecurityRolesImpl.java to provide the below role that can access the EJB method:
    *@RolesAllowed({"TestRole"})*
    2: Then build the service as normal using the same build.xml
    3: Do not depoly the EAR using ant and try to use the Admin Console to deploy the EAR.
    4: While deploying the application through the admin console choose the below option:
    Custom Roles: Use roles that are defined in the Administration Console; use policies that are defined in the deployment descriptor.
    5: Then create the client stubs using the build.xml
    6: Then go to the Admin Console.
    Security Realm >> my realm >> users and Groups >> create a user TestUser ( pass- TestUser).
    7: Then Click on the RolesAllowedEar under the depolyments tab.
    Click on Security >> Roles ..
    Create a New Role >>> TestRole.
    Click on the Role created (TestRole) >>> Add Condition >>>
    Within Add Condition >> select User >> NEXT >>>
    Enter TestUser >>> Click ADD .
    Click Save.
    Now try to access the Web Service using the client code.
    Thanks,
    Sandeep

  • Deploying ejb with Sun Application Server 8

    I'm deploying a container-managed entity, my status & my problem is listed below:
    Deploytool:
    When I verify my entity, I see this error:
    Error: Exception [ JDO74033: Cannot deploy application 'LibrarianApp' module 'ejb-jar-ic' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency
    Deploying has not any error but running the application has :
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:170)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    in CMP Database of my entity, JNDI Name = jndi/MySQL
    Sun Java System Application Server Platform Edition 8 Admin Console:
    in JDBC Resource JNDI Name: jdbc/MySQL & Pool Name MySQL2
    in Connection Pools > MYSQL2 > Data Source Class Name: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    Please Help Me. thx

    hi
    I am working with Sun java application Server 8.
    I can able to create application(*.ear),
    (Enterprise Java Bean) bean component,
    client application
    Problem is, i am unable to provide JNDI name for client application
    advice needed to provide JNDI name for the client applications
    i dont know whats the use of pointbase/cloudscape
    (As i am new to this sjaServer 8, i need your advice)
    Response to the following mail id
    [email protected]
    Please do the favour
    thank you

  • Deploying EJBs with same name in different application jars on JBOSS

    Hi,
    We are attempting to deploy entity beans with the same name in 2 different EJB application jars on jboss 3.2.5. One bean is an extension of the other, so some of the DB columns they refer to are the same (they access different DB tables in different tablespaces). However, the field names corresponding to these DB columns in the beans themselves are different (i.e. DB column serviceid is associated with the field serviceid in one bean and service_id in the other).
    We have altered jboss.xml for one of the EJB applications so that the jndi-name used to access that application's bean is different to the jndi-name used to access the entity bean in the other EJB jar.
    However, when we attempt to deploy both jar files on the same jboss server, one of the applications deploys successfully and when we deploy the other, we get EJB spec violation errors, such as the following:
    14:18:34,631 WARN [verifier] EJB spec violation:
    Bean : CommunityAddress
    Section: 10.6.2
    Warning: The entity bean class must define a get accessor for each CMP field.
    Info : Field: service_id
    I'm presuming that this is because the bean which references the serviceid DB column with a field called serviceid is being mixed up with the other bean, which has a service_id field.
    Can anyone tell me if there is anything else that is required to get entity beans/EJBs in different applications but with the same names (and some overlapping fields, etc) deployed successfully on the same jboss server apart from editing jboss.xml for one of the applications?
    Is this a jbosscmp-jdbc.xml issue?
    Any help much appreciated,
    Maurice

    Hi Srinath
    Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
    Regards
    Raj

  • Error deploying ejb with jdev 9.0.3 to 9ias 9.0.3

    Hi:
    I am trying to deploy a simple ejb created with jdev 9.0.3. I have used local dcm connection type for deploying . I have already installed the dcm servlet, but when I try to deploy my ejb i get the following error:
    ---- Deployment started. ---- Nov 12, 2002 5:52:12 PM
    Wrote EJB JAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.jar
    Wrote EAR file to C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear
    Invoking dcmctl...
    C:\ora9ias\dcm\bin\dcmctl.bat redeployApplication -file C:\jdev\jdev\mywork\employee\Project1\deploy\employee.ear -application employee
    ADMN-300075
    Exit status of dcmctl: 0
    Elapsed time for deployment: 21 seconds
    ---- Deployment finished. ---- Nov 12, 2002 5:52:33 PM
    The oracle 9ias and the jdev have been installed on Windows 2000 server.
    Does anybody know what is it?
    Thanks
    Sergio

    I have discovered a strange thing. I created a new OC4J instance which I called it: Intelap
    When I deploy to the recently created instance Intelap, jdeveloper success. But when I set OC4J_home in the optional instance field, I got the previous error.
    Sergio

  • How to deploy ejb with dependent jars

    Hi
    I am trying to deploy a ejb into WEBLOGIC 6.1
    I have the following structure
    c:\testapp\deploy as the root and the following with in the root folder
    ejb/test/app/test.class
    ejb/test/app/testHome.class
    ejb/test/app/testBean.class
    ejb/META-INF/ejb-jar.xml
    ejb/META-INF/weblogic-ejb-jar.xml
    META-INF/application.xml
    I have a testdep.jar file required by the ejb. I have that in the Class path of
    the weblogic startup script.
    However If I want to remove it from the startu[p script and still be able to reference
    in the ejb where should I place it. Do I have to create some other directory with
    standard name? i am deploying the ejb in exploded form.
    Thanx
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I try to do the following but with out luck. I copied a maifest.mf file and the
    .jar file into the META-INF folder. I have the following in the manifest.mf
    Manifest-Version: 1.0
    Created-By: 1.3.1_04 (Sun Microsystems Inc.)
    Class-Path: TPUtils.jar
    the first two lines were generated and i copied the last line and I got the following
    error. I am runiing the application in exploded format.
    EJB : CUBean .Unable to initialize method info for remote or home interface.The
    error is java.lang.NoClassDefFoundError: com/towers/bas/utils/TPData
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    Rob Woollen <[email protected]> wrote:
    You should have a Manifest Class-Path entry for the jar.
    Basically you'd put the jar say in my.jar
    and you'd have a META-INF/MANIFEST.MF file that looked like this:
    Manifest-Version: 1.0
    Class-Path: my.jar
    -- Rob
    Venkat V wrote:
    Hi
    I am trying to deploy a ejb into WEBLOGIC 6.1
    I have the following structure
    c:\testapp\deploy as the root and the following with in the root folder
    ejb/test/app/test.class
    ejb/test/app/testHome.class
    ejb/test/app/testBean.class
    ejb/META-INF/ejb-jar.xml
    ejb/META-INF/weblogic-ejb-jar.xml
    META-INF/application.xml
    I have a testdep.jar file required by the ejb. I have that in the Classpath of
    the weblogic startup script.
    However If I want to remove it from the startu[p script and still be
    able to reference>> in the ejb where should I place it. Do I have to create some other>directory with>> standard name? i am deploying the ejb in exploded form.>> >> Thanx>> >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deploying application with EAR file: problems....

    Hello!
    We been working in a test environment for developing our application. When its done and ready to go in production, we did generate the deployed application archive (EAR) with the console. Then, we used the
    java -jar admin.jar -deploy command to deploy in the prod. env.
    Meanwhile, we always get this kind of error, as it seems that oc4j is not generating EJB wrapper correctly:
    GestionApplicationSBHome_StatelessSessionHomeWrapper120 was not an instance of interface sertir.portail.gap.GestionApplicationSBHome, the interface it implements is sertir.portail.gap.GestionApplicationSBHome
    at java.lang.Throwable.fillInStackTrace(Native Method)
    AND
    java.lang.ClassCastException: ApplicationEBHome_EntityHomeWrapper14 was not an instance of interface sertir.portail.gap.ApplicationEBHome, the interfaces it implements are sertir.portail.gap.ApplicationEBHome, com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ExternalComparator, com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.ejb.EntityContainer
    and other errors doing that with almost all EJBs.
    My question is, is there a special switch in the deploy command to force the compilation of the EAR file?
    Any help would be appreciated...
    Thanks!

    These are set of jar files that are placed in WEB-INF/lib folder
    jsf-api.jar
    commons-net-1.4.1.jar
    itext-1.4.2.jar
    javax.servlet_1.0.0.0_2-5.jar
    log4j-1.2.8.jar
    lucene-core-2.0.0.jar
    ojdbc5.jar
    ojdl.jar
    ojdl2.jar
    orai18n-lcsd.jar
    trinidad-api.jar
    I think adf-faces-impl.jar is doesn't require for my application because we have migrated our application from ADF Faces to Trinidad.
    Thanks
    Sukumar

  • Deploy ejb with NetBeans 4.1

    has anyone used NB4.1?? I've deployed some Session Beans but I cant access them from a servlet, using java:comp/env/ejb/MySessionBean returns null.. do I have to do some extra config in Sun AppServer so JNDI works?? thanks..

    that was it.. I supposed the IDE had done that, but well.. anyway

  • Invoking Session EJB (with WSIF binding) from a BPEL process

    Hi,
    I am invoking a stateless session bean from a bpel process. The bpel process is throwing:
    Failed to lookup EJB home using JNDI name 'ejb/visilient/BPELHelper'; nested exception is:
         java.lang.NullPointerException
    I can see the ejb jndi name under 'default' app.
    Any ideas?
    TIA

    It is a lovely sample... However, it doesn't cover Complex Types and Exception handling. It would be nice if each example was thorough. Would be a great help.
    What I was hoping to achieve is this:
    1) Have an EJB deployed
    2) Use WSIF for BPEL Processes.
    3) Use Web Service interface for AJAX calls etc.
    I was hoping that this would be the exact code base and that only a single EJB would be deployed.
    So far, it looks like JDeveloper will only support Java WSIF bindings. No EJB Bindings. It also looks like JAXRPC is the best supported WS interface. With that in mind, it deploys a seperate subset of the EJB. Thus causing two seperate deployments. I am working on trying all this out over the next couple days. See where I get.
    Anyways, do you have any recommendation for accomplishing what I am wanting to do? 1 deployed EJB, with a WS interface and allowing WSIF bindings. Any other references for me to look at? Should I not be thinking about using JDeveloper for any of the WSDL generation and do all this manually for now?
    Thanks,
    BradW

Maybe you are looking for

  • Open dialog box window with checkboxes for each child record - Please Help

    Hello Everybody I have a 10g form with master record and 20 child records. In the child record form, currently there is a "Notes" Editor, which pops up when user click the "Edit" button. In the "Notes" editor, user enters remarks if anything is missi

  • Sorting by number of tracks per artist?

    Is it possible to sort my music by the number of tracks I have by artists in itunes? So if, for example, I had 90 pink floyd tracks, 80 rem tracks and 100 beatles tracks, it would list them in this order? The Beatles - 100 Pink Floyd - 90 REM - 80 et

  • Email locked error

    Can someone help on the following error :<br /><br />"org.jaxen.XPathSyntaxException" and "javax.mail.AuthenticationFailed<br />xception: Can't get lock.  Mailbox in use" ....<br /><br />16:40:49,564 ERROR [AWS] stalling action-instance: 823 with mes

  • Can you expand the number of LAN ports the Time Capsule has?

    I have a recently purchased a Time Capsule and am wondering if you could use something like a splicer to add more LAN ports to the device.

  • Required Patches for 11.1.1.2.0 release

    Hi All, Currently we are using Hyperion Planning & Essbase 11.1.1.2.0