OpenEJB ,Tomcat and JDeveloper 11g

I developed a session bean 3 and export it as jar and put it in web application under lib folder then exported it as war then deployed it in Tomcat integrated with openEJB
I call the session bean through servlet using injection,but the openEJB didn't deploy the beans to the container.
I used this steps in eclipse and netbeans the openEJB deployed the bean.
Does JDeveloper add something to bytecode of the bean makes the openEJB can't deploy the bean?
the following is my code.
session bean:
package model;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
@Stateless
public class PrintSessionEJBBean implements PrintSessionEJBLocal {
public PrintSessionEJBBean() {
public String printName(String name){
return "The Name is:" + name;
Servlet:
package view;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.ejb.EJB;
import model.PrintSessionEJBLocal;
public class Servlet1 extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
@EJB
PrintSessionEJBLocal local;
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body>");
out.println("<p>The servlet has received a GET. This is the reply.</p>");
out.println("<p>The servlet has received a GET." + local.printName("Temp") + ".</p>");
out.println("</body></html>");
out.close();
thx.

What specific error did you get when you deployed?
The code seems quite generic - how is the Eclipse version different from the JDev version?

Similar Messages

  • Soa 11g and jdeveloper 11g user defined extension function

    I have developed a set of extension functions,
    in design time for the previous version, I can put the deployment file (jar file) that contains the extension functions in the %JDEV_HOME%\jdev\lib\ext directory and jdeveloper recognizes the set of extension functions if previously i have defined an xml descriptor with every one of the functions i need to include in the panel.
    Now, with the jdeveloper 11g i have tried the same, and jdev recognizes the functions, but when I am going to test one transformation that includes the extension function, the parser is not founding the jar file; the error (in spanish) is:
    XML-22045: (Error) Error de funcion de extension: No se ha encontrado la clase '
    Falta la clase: aac._shared.extensions.xsl.XmlW3cDomFunctions
    Clase Dependiente: oracle.xml.xpath.XSLExtFunctions
    Cargador: main:11.0
    Origen del Codigo: /C:/.extracted/jdevstudio1111/lib/xmlparserv2.jar
    Configuraci≤n: system property PCLMain.createExtensionManagerLoader()
    Esta carga se ha iniciado en main:11.0 mediante el mΘtodo loadClass().
    La clase que falta no esta disponible desde ningun origen de codigo o cargador del sistema.
    my dude is:
    + at design time, where can I put the jars with extension functions to make one transformation function used in a mediator component can works fine?
    + at runtime, where can I put those libraries? (in the previous version, we can put this libraries in the %APP_SERVER%\j2ee\home\applib, or create one shared library and reference it in the oracle.bpel.common shared library declaration of the server.xml configuration file).

    Hi,
    please post this question to the JDeveloper 11 forum. Please translate the messages into English as well
    JDeveloper and OC4J 11g Technology Preview
    Frank

  • Weblogic 10.3.1 and jdeveloper 11g

    I delete the java_home environment variable and the jdk value of path environment variable. Then, I reinstall jdeveloper 11g. An adf application can be run on default server and it works fine.
    I also create a new weblogic domain and extend the jrf. The application can be deployed to the new domain. However, after the login page, the next page is blank.

    Hi
    Here I am creating dynamic partner link to call OSB service in my BPEL process. I wan make it dynamic to change run time server address and port numbers. Here I am getting Error (Error occurred reading inline schemas) while creating reference variable as per BPEL cook book. To resolve that exception, I have created /bpel/system/xmllib/ folders in SOA 11g and placed ws-addressing.xsd file. After I am trying to import in BPEL process, still I am getting same Exception.
    Even I tried to read ws-addressing.xsd file through IE browser (http://Host:Port/orabpel/xmllib/ws-addressing.xsd) after placing that directory(/bpel/system/xmllib/). My SOA server and everything is running.
    Thanks in advance.
    mally

  • JDevLibsForAnt and JDeveloper 11g (Jan Vervecken)

    Hi All (especially Jan, if you're listening),
    I'm currently working on the ANT article for my [url http://www.oracle.com/technology/pub/articles/adf-development-essentials/index.html]ADF Essentials series on OTN. I found the jDevLibsForAnt extension quite useful under JDev 10.1.3.x, and I'd like to use it and refer to its use in the article.
    A specific question for Jan - have you updated it for 11g? If not, do you plan to? If not, do you mind if I do?
    You can reply directly to this thread, or if its more convenient, my e-mail is firstname <dot> lastname <at> gmail.com.
    Best,
    John

    hi John
    Updating the JDevLibsForAnt JDeveloper extension for JDeveloper 11g is something I would like to do soon, but I don't know exactly when.
    The file JDevLibsForAntApps-v0.02.zip also contains source files. Feel free to work with that if it applies to JDeveloper 11g. You might want to change names and namespaces if you plan on publishing anything.
    regards
    Jan Vervecken

  • WLS 10.3.1 and JDeveloper 11g

    Hello,
    In the documentation ( http://download.oracle.com/docs/cd/E12839_01/install.1111/e13666/ojdig.htm#BDCGEFFF ) for JDeveloper 11g, section 12, it states in the second paragraph "For additional information on using a standalone Oracle WebLogic Server instance with Oracle JDeveloper, see the Help topic "Connecting and Deploying to Oracle WebLogic Server" in the Oracle JDeveloper online documentation". I cannot find this anywhere.
    I've performed several installs and installed 10.3.1 into it's default /middleware home and also have installed JDeveloper into a separate /middleware, and even de-installed JDeveloper and reinstalled into the same middleware home (but separate sub folder) as 10.3.1.
    I've noticed it says that it detects 10.3 as already being installed and it's greyed out.
    My question is this: the WLS that comes with JDeveloper ... is it a full install of WLS? IN other words does it come complete with all screens and such (Fusion Control, Admin Console, etc)?
    If it does, I don't need to install WLS for the SOA Demo on http://www.oracle.com/technology/obe/obe11jdev/bulldog/deploysoaapp/deployment.htm.
    Thanks in advance.
    Jim

    The error message says "java.lang.NoClassDefFoundError: oracle/j2ee/ws/common/jaxws/ServiceDelegateImpl" which means that you don't have this class in the classpath. If you're using JDev 11g you can search for this class to find out which library has it:
    1. Double click your project. It can be any project
    2. Select "Libraries and Classpath"
    3. Click on the "Add Library..." button
    4. Enter the class you're looking for in the search field. JDev will show which Libraries have this class.
    You can find the related jar file that has this class on {JDEV_HOME}\jdeveloper\modules\oracle.webservices_11.1.1\wsclient.jar .
    AFAIK, there's no direct Web Service access to Human Task Flow. You need to go through the client API which is responsible for abstracting which protocol is used (co-located, remote ejb, or soap).

  • CalendarPJC and JDeveloper 11g

    Does anyone have the JDEV 11g project files for the calendarpjc demo java files? I tried to create a project using these files but each time the java console complained class not found for CalendarWidgetWrapper. I did a jar tf of the created jar file and all the classes are identical to the downloaded one, except for the manifest. I must be doing something wrong here.
    When using the original calendar.jar, it works except for the little triangle warning about running an applet. I signed the file and, bam!, the jar file cannot be used - same classnotfound error.
    I wanted to change the color of the applet because it really clashes with the swan scheme.
    Would appreciate any help. Thanks.
    Jacob

    Hello,
    JDeveloper 11 does not support JAX-RPC 1.1.
    You can find some migration steps here:
    http://www.approach.nl/2009/01/migrating-web-services-from-jdeveloper-10g-to-11g/
    I think there is a Web Service Migration Guide available from the JDeveloper 11 help.
    You really just need to redefine the service interfaces, if you are trying to run proxies generated with 10g, you'll probably need to regenerate them.
    Hope this helps

  • JDeveloper 10.1.3 JAX-RPC and JDeveloper 11g

    I'm working on a J2SE Aplicattion using Jdeveloper 10.1.3.
    In JDeveloper 10.1.3 JAX-RPC works fine but I need works with Jdeveloper 11 and I have two errors
    javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
    or
    Jaxrpc 1.1 method is not supported.
    What can I do?
    Thanks,

    Hello,
    JDeveloper 11 does not support JAX-RPC 1.1.
    You can find some migration steps here:
    http://www.approach.nl/2009/01/migrating-web-services-from-jdeveloper-10g-to-11g/
    I think there is a Web Service Migration Guide available from the JDeveloper 11 help.
    You really just need to redefine the service interfaces, if you are trying to run proxies generated with 10g, you'll probably need to regenerate them.
    Hope this helps

  • JDeveloper 11g and Hibernate

    Hi.
    Is there an easy way to generate POJOs and mapping files automatically using Hibernate and JDeveloper 11g pointing to Oracle 11g database similar to what one can do with NetBeans IDE?
    Thanks a lot.

    JDeveloper can generate POJO mappings to database objects using the JPA standard.
    And this tutorial:
    http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
    We are using the Java EE 5.0 JPA standard API and not specific Hibernate implementation. The underlying JPA implementations used there is EclipsLink.

  • JDeveloper 11g/ADF Faces Rich Client

    Hello,
    We are trying to decide between using JDeveloper 10.1.4 and JDeveloper 11g for developing a new application - we plan to use just the ADF Faces layer of the ADF Framework along with Spring and TopLink for other layers.
    On one hand we think that is is safer to use 10.x version of ADF Faces as it may be more stable and on the other hand we are tempted to use 11g as it provides Ajax-enabled JSF Components.
    Has anyone used ADF Faces Rich Client Framework for developing applications? Is it stable enought to be used for production-level applications?
    I would love to hear your thoughts!

    Hi,
    don't use 10.1.3.4 to develop a new application now unless you have browser constraints with your user-base.
    ADF Faces RC / 11g requires:
    FireFox 2, 3
    Internet Explorer 7.0
    Safari 3.0
    11g is a significant update and they have vastly improved/redesigned a lot of things that were difficult/complex to do in earlier versions.
    Plus the 11g user interface is way better from a users perspective.
    Brenden

  • OC4J 11 / JDeveloper 11g Production Release?

    Hi
    I was wondering whether someone from Oracle could give some indication as to when they expect the production version of OC4J 11 and JDeveloper 11g to be released? Will they be released at the same time?
    Cheers
    George

    Hi
    I just asked Oracle Support - they still wont report a date back. They only say that OC4J 11g is part of the Fusion Middleware Suite, which had a release plan for 2nd halft of CY07 and has now slipped indefinately. The exact comment was "FMW 11g is still not released (because not ready to be releasable) but is further delayed. I have not found any new planned release date in the internal resources available to support."

  • JDeveloper 11g - Exception when trying to run on Tomcat 5.5.20

    I am trying to get an application working on JDeveloper 11g Technology Preview (4524) using Tomcat 5.5.20 as the server (NOT the Oracle embeded server), so that I can run and debug on Tomcat from JDeveloper. I can deploy to the Tomcat server but when I try to run the application (entry point is loginfos.jsp), after selecting the runtime service as Development Runtime Service (Tools > Select Runtime Service > Development Runtime Service (Packaged Deployment), I get the following error. Any ideas what might be wrong.
    Target fos-app.jpr is not runnable, using default target loginfos.jsp.
    oracle.jdeveloper.cm.CMException: Cannot find presentation for JSR160 in this ConnectionWrapper instance
         at oracle.jdeveloper.cm.JndiConnectionWrapper.getPresentation(JndiConnectionWrapper.java:118)
         at oracle.jdeveloper.asnav.ASConnectionWrapper.getPresentation(ASConnectionWrapper.java:60)
         at oracle.jdevimpl.runner.adrs.AdrsConfigAdminJMX.<init>(AdrsConfigAdminJMX.java:55)
         at oracle.jdevimpl.runner.adrs.AdrsAdmin.getAdrsConfigAdmin(AdrsAdmin.java:187)
         at oracle.jdevimpl.runner.adrs.AdrsStarter.getAdrsConfigAdmin(AdrsStarter.java:606)
         at oracle.jdevimpl.runner.adrs.AdrsStarter.prepareToStart(AdrsStarter.java:239)
         at oracle.ide.runner.RunProcess.prepareToStart(RunProcess.java:847)
         at oracle.ide.runner.RunProcess$1.run(RunProcess.java:803)
    java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at java.util.Properties.setProperty(Properties.java:128)
         at oracle.jdevimpl.runner.adrs.AdrsStarter.generateJndiProperties(AdrsStarter.java:729)
         at oracle.jdevimpl.runner.adrs.AdrsStarter.preStart(AdrsStarter.java:704)
         at oracle.jdevimpl.runner.adrs.AdrsStarter.start(AdrsStarter.java:258)
         at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:871)
         at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:529)
         at oracle.jdeveloper.runner.RunningProcess.startTarget(RunningProcess.java:78)
         at oracle.ide.runner.RunProcess$1$1.run(RunProcess.java:809)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    #### Failed to start Application in Development Runtime Instance.
    Thanks
    RayC

    Hi,
    JDeveloper 11 is in early technology preview and has not been tested outside of OC4J yet. In a nwer preview that then will be closer to production, those compatibility test should be run.
    Frank

  • JDeveloper 11g building and deploying slow!

    Hi all
    Hope this is the right forum. This has nothing to do with ADF.
    I recently switched to JDeveloper 11g after having used the 10g version ever since it came out. Some of the features I liked very much but I'm very disappointed with the speed. I don't quite get it.
    My project is a simple jsp web app that connects to Oracle and presents data. I recently switched to Tomcat from OC4J and at the same time switched to version 11g of JDev. Maybe I did something wrong when I was setting everything up in 11g but unlike 10g, 11g seems to always compile the whole project even when I'm just changing a single file. And every time I deploy it to Tomcat, even though I have just gone through a whole compilation because I changed one line somewhere, it seems to compile the whole thing again!
    Debugging seems to have changed also. In 10g, it seemed like built in OC4J was running the classes in place, so no need to really deploy them. In 11g, I always need to deploy the project to the test server, taking extra time to compile everything again and starting up the server.
    I must be missign something here. It can't be that 10g is so much more efficient than 11g.
    Hope someone can help me. I'm on the verge of downgrading!
    Thanks,
    Gísli

    Thanks for the reply, Nick.
    I didn't find a solution there to my problem. I'm using Tomcat, not WebLogic, but it seems this slowness is not connected to the app server. It seems rather that I have some misconfiguration in my project that tells JDev to always compile the whole lot. In 10g it was never like this. It would only compile the files I had changed. Even if I'm not deploying to a server at all but only checking for syntax errors, JDev 11g compiles everything
    My version is 11.1.1.0.0. Hope I'm not the only one experiencing this.
    Thanks,
    Gisli

  • How to open and run existing project in jdeveloper 11g?

    I have downloaded a jsf project from a website. I want to run it. I am using jdeveloper. So I want to open that jsf project which is in my local drive in jdeveloper 11g and I want to run it.

    Hi,
    open JDeveloper and then point it to the ".jws" file of the application you downloaded
    Frank

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • JDeveloper 10.1.3.2.0 and database 11g, problem in JDBC ?

    We developed our j2ee application (using hibernate) for some time. Now we came to newer Oracle database 11g and have problem - endless waiting for fetched data. I think, that problem is in JDBC version.
    Adding new JDBC into project as new library and placing it 'before' the old one doesn't help. Btw. hibernate gets connection from applicationContext_dataSource.xml file and is defined for example like this
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
    <property name="url" value="jdbc:oracle:thin:@host:port:SID"/>
    <property name="username" value="name"/>
    <property name="password" value="password"/>
    </bean>
    It has nothing to do with defined conections.
    My question is this:
    - Can I upgrade JDBC in our 10.1.3.2.0 JDeveloper to new version or latest version of JDeveloper is needed ?
    Thanks.
    Message was edited by:
    jnejedly

    The OC4J server embedded in JDeveloper 11g does not support JDBC 4.0.
    Java applications using the JDBC 4.0 driver may be developed in JDeveloper 11g.

Maybe you are looking for

  • SAP R/3 Problem

    I need some detail solutions and suggests about below these problems [SAP R/3] : Problem 4: Problems in the installation of SAP R/3 Server • Problem 4.1: Computer Name of the SAP R/3 server has been changed after the full installation of Oracle 9i an

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string? Thank you

  • Migrating Oracle 10.2.0.4 to another site

    Hi Gurus, I´ll need to migrate an ORACLE Database to Another site (1000 miles away) and i need to know, what's the best practice to do that. I need to copy the entire database to a new server whith the minimum downtime and risk while the source datab

  • Is there anyway to close all open apps at once?

    Is there anyway to close all open apps at once?

  • Upload local TRU file with GUI_UPLOAD in ECC6

    Hi all, i need to upload a file with no "CR/LF" characters in a migration project from 46C to ECC6 system in 46C, the FM WS_UPLOAD is working well :   CALL FUNCTION 'WS_UPLOAD'     EXPORTING   CODEPAGE                      = ' '     filename