JDevelper javaNamingException

I keep trying to deploy my sample EJB application to a standalone OC4J instance and I get the following error.
Validation Error
You must correct the following error(s) before proceeding:
JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: javax.naming.NamingException, msg=A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
JBO-29000: Unexpected exception caught: javax.naming.NamingException, msg=A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
The classpath for the jndi.properties file is present and I can see that the standalone recognizes my deployment.
Any ideas?

I keep trying to deploy my sample EJB application to a standalone OC4J instance and I get the following error.
Validation Error
You must correct the following error(s) before proceeding:
JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: javax.naming.NamingException, msg=A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
JBO-29000: Unexpected exception caught: javax.naming.NamingException, msg=A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
A NamingException occurred when looking up EJB 'SessionEJB' with LocalHome interface 'exmpl.model.SessionEJBHome'. This may indicate that a 'jndi.properties' file was not present in the classpath, or that its data is invalid.
The classpath for the jndi.properties file is present and I can see that the standalone recognizes my deployment.
Any ideas?

Similar Messages

  • Fileaccess.httpUploadBean doesn't upload file in Jdevelper 9.0.3

    Hi,
    I am using Jdevelper 9.0.3 to develop a jsp Based File Upload Utility.
    I have attached Liberary "JSP RUNTIME" which reffers to "ojsp.jar","ojsputil.jar","oc4j.jar","servlet.jar","ojc.jar".
    while running the code for file upload, file doesn't get uploaded. I am not getting any exceptions too.
    But the same pease of code with same liberary "JSP RUNTIME" is working absolutly fine(Uploading File), when i am running it using Jdeveloper10.1.2, and This is Strange to me.Actualy i need to use Jdeveloper9.0.3 only.Please let me know if any patch is required to apply in Jdeveloper9.0.3.
    Please find the code below and help.
    fileaccess.properties
    fileaccess.basedir = C:/
    fileUpload.jsp
    <html><body>
    <form name = "formname" action="beanUploadExample.jsp" method=POST ENCTYPE="multipart/form-data" />
    <br>MailID: <INPUT TYPE="text" NAME="strMailId" />
    <br> File to upload: <INPUT TYPE="FILE" NAME="File" SIZE="50" MAXLENGTH="120" >
    <br><INPUT TYPE="Submit" NAME="Submit" VALUE="Send" >
    <INPUT type="reset" name="reset" value = "Cancel">
    </form>
    </body></html>
    beanUploadExample.jsp
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page language="java"
    import="java.util.*,java.io.*, oracle.jsp.webutil.fileaccess.*" %>
    <html><body>
    <SCRIPT language="JavaScript">
    function formAction()
    if (document.upForm.forward.value == "true")
    {//tOMORROW PASS THE FILE NAME WITH ACTION PARAM
    //alert("Submit");
    document.upForm.action = "uploadco"
    document.upForm.submit();
    </SCRIPT>
    <Form name="upForm" method ="post" > <!--action ="beanUploadExample.jsp" >-->
    <%
    String userdir = "Test";
    String strFlag = "";
    String strFileName ="";
    String strDirName ="";
    String strAbsoluteName ="";
    %>
    <jsp:useBean id="upbean"
    class="oracle.jsp.webutil.fileaccess.HttpUploadBean" >
    <jsp:setProperty name="upbean" property="destination" value="<%=userdir%"/>
    </jsp:useBean>
    <%
    try{
    upbean.setBaseDir(application, request);
    String str = upbean.getDestination();
    // application.getServletContextName();
    //out.println("The Servlet Context is "+strContext) ;
    out.println("The value of Destination is "+str) ;
    upbean.upload(request);
    String name = upbean.getParameter("strMailId");
    out.println("name-----:::::: "+name) ;
    String strDestType = upbean.getDestinationType();
    out.println("strDestType-----:::::: "+strDestType) ;
    Enumeration fileNames = upbean.getFileNames();
    while (fileNames.hasMoreElements()) {
    strFlag = "true";
    strFileName = (String)fileNames.nextElement();
    out.println("strFileName File Name Is:::::"+strFileName);
    strAbsoluteName = strFileName.substring(4,strFileName.length());
    catch(IOException ex)
    out.println("IOException is =="+ex.toString());
    catch(Exception ex)
    out.println("IOException is =="+ex.toString());
    %>
    <table width = 50% align="center" >
    <tr>
    <td align ="center"><input type = "Button" name ="Submit" value="Ok" onclick="formAction()" ></td></tr></table>
    </Form>
    </body></html>

    Hi,
    I am using Jdevelper 9.0.3 to develop a jsp Based File Upload Utility.
    I have attached Liberary "JSP RUNTIME" which reffers to "ojsp.jar","ojsputil.jar","oc4j.jar","servlet.jar","ojc.jar".
    while running the code for file upload, file doesn't get uploaded. I am not getting any exceptions too.
    But the same pease of code with same liberary "JSP RUNTIME" is working absolutly fine(Uploading File), when i am running it using Jdeveloper10.1.2, and This is Strange to me.Actualy i need to use Jdeveloper9.0.3 only.Please let me know if any patch is required to apply in Jdeveloper9.0.3.
    Please find the code below and help.
    fileaccess.properties
    fileaccess.basedir = C:/
    fileUpload.jsp
    <html><body>
    <form name = "formname" action="beanUploadExample.jsp" method=POST ENCTYPE="multipart/form-data" />
    <br>MailID: <INPUT TYPE="text" NAME="strMailId" />
    <br> File to upload: <INPUT TYPE="FILE" NAME="File" SIZE="50" MAXLENGTH="120" >
    <br><INPUT TYPE="Submit" NAME="Submit" VALUE="Send" >
    <INPUT type="reset" name="reset" value = "Cancel">
    </form>
    </body></html>
    beanUploadExample.jsp
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page language="java"
    import="java.util.*,java.io.*, oracle.jsp.webutil.fileaccess.*" %>
    <html><body>
    <SCRIPT language="JavaScript">
    function formAction()
    if (document.upForm.forward.value == "true")
    {//tOMORROW PASS THE FILE NAME WITH ACTION PARAM
    //alert("Submit");
    document.upForm.action = "uploadco"
    document.upForm.submit();
    </SCRIPT>
    <Form name="upForm" method ="post" > <!--action ="beanUploadExample.jsp" >-->
    <%
    String userdir = "Test";
    String strFlag = "";
    String strFileName ="";
    String strDirName ="";
    String strAbsoluteName ="";
    %>
    <jsp:useBean id="upbean"
    class="oracle.jsp.webutil.fileaccess.HttpUploadBean" >
    <jsp:setProperty name="upbean" property="destination" value="<%=userdir%"/>
    </jsp:useBean>
    <%
    try{
    upbean.setBaseDir(application, request);
    String str = upbean.getDestination();
    // application.getServletContextName();
    //out.println("The Servlet Context is "+strContext) ;
    out.println("The value of Destination is "+str) ;
    upbean.upload(request);
    String name = upbean.getParameter("strMailId");
    out.println("name-----:::::: "+name) ;
    String strDestType = upbean.getDestinationType();
    out.println("strDestType-----:::::: "+strDestType) ;
    Enumeration fileNames = upbean.getFileNames();
    while (fileNames.hasMoreElements()) {
    strFlag = "true";
    strFileName = (String)fileNames.nextElement();
    out.println("strFileName File Name Is:::::"+strFileName);
    strAbsoluteName = strFileName.substring(4,strFileName.length());
    catch(IOException ex)
    out.println("IOException is =="+ex.toString());
    catch(Exception ex)
    out.println("IOException is =="+ex.toString());
    %>
    <table width = 50% align="center" >
    <tr>
    <td align ="center"><input type = "Button" name ="Submit" value="Ok" onclick="formAction()" ></td></tr></table>
    </Form>
    </body></html>

  • JDBC in JDevelper

    Hello Folks,
    In JDevelper we are running across a problem with JDBC. The program will compile fine, but it will will not run.
    We keep getting the error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver.
    Now, here is the interesting part: I think the libraries are set up fine, because the classpath in JDevelper for the Oracle JDBC is set to:"C:\jdev9i_902\jdbc\lib\classes12.jar", which is the default.
    We've tried reinstalling JDevelper (9.0.2), using the 9.0.3 version, and downloading the JDBC drivers directly from oracle all to no avail.
    Any help would be appreciated!
    Thanks,
    Jeff

    Hello Folks,
    In JDevelper we are running across a problem with JDBC. The program will compile fine, but it will will not run.
    We keep getting the error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver.
    Now, here is the interesting part: I think the libraries are set up fine, because the classpath in JDevelper for the Oracle JDBC is set to:"C:\jdev9i_902\jdbc\lib\classes12.jar", which is the default.
    We've tried reinstalling JDevelper (9.0.2), using the 9.0.3 version, and downloading the JDBC drivers directly from oracle all to no avail.Is it not running from the command line or from inside of JDeveloper? This error seems be that the classpath used when running doesn't contain the JDBC driver. Make sure it [classes12.jar] is listed in the classpath setting on the java.exe command line
    Rob

  • Accessing jdevelper remotely

    I have JDeveloper installed on a unix box. I'd like to ssh into this box and run the installed JDevelper. At first I got an error about the display environment variable not being set, so I:
    $&gt; export DISPLAY=my_ip:0
    Then when I start jdev it looks like it is going to run:
    Oracle JDeveloper 10g 9.0.5
    Copyright 1997, 2004 Oracle Corporation. All Rights Reserved
    But nothing ever happens. If I do a top I see the java processes running in the background, so it appears as though the app is running, I just don't see anything.
    Did I set my DISPLAY incorrectly?

    I have JDeveloper installed on a unix box. I'd like to ssh into this box and run the installed JDevelper. At first I got an error about the display environment variable not being set, so I:
    $&gt; export DISPLAY=my_ip:0
    Then when I start jdev it looks like it is going to run:
    Oracle JDeveloper 10g 9.0.5
    Copyright 1997, 2004 Oracle Corporation. All Rights Reserved
    But nothing ever happens. If I do a top I see the java processes running in the background, so it appears as though the app is running, I just don't see anything.
    Did I set my DISPLAY incorrectly?

  • Error in jdevelper 11g when opening a project exported from bpm studio 10.3

    Hello I hope someone can help me with this error, thanks in advance.
    I installed soa suite 11G (including ps2) but when i open a project exported from bpm studio 10.3 i have the following error.
    "An unexpected severe error has ocurred in jdeveloper"
    Performing action JDeveloper Forum[ from oracle.ide.log.MessagePage ]
    Performing action About[ from oracle.ide.log.MessagePage ]
    Invoking command: [ from oracle.ide.log.MessagePage ]
    Performing action Open...[ from oracle.ide.log.MessagePage ]
    Performing action Open...[ from oracle.bpm.fusion.ui.editor.FusionEditor ]
    Performing action Open...[ from oracle.ide.ceditor.CodeEditor ]
    Performing action Close All[ from oracle.ide.ceditor.CodeEditor ]
    Performing action Import...[ from oracle.ide.navigator.ApplicationNavigatorWindow ]
    Jul 15, 2010 1:36:03 PM oracle.bpm.project.io.serializers.model.bpmn.BPMN20Loader load
    SEVERE: unexpected element (uri:"http://www.wfmc.org/2004/XPDL2.0alpha", local:"Package"). Expected elements are <{http://xmlns.oracle.com/bpm/OracleExtensions}Annotations>,<{http://xmlns.oracle.com/bpm/OracleExtensions}AttributeExpression>,<{http://xmlns.oracle.com/bpm/OracleExtensions}BooleanFeature>,
    ......................... .... >
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.wfmc.org/2004/XPDL2.0alpha", local:"Package"). Expected elements are <{http://xmlns.oracle.com/bpm/OracleExtensions}Annotations>,<{http://xmlns.oracle.com/bpm/OracleExtensions}AttributeExpression>,<{http://xmlns.oracle.com/bpm/OracleExtensions}BooleanFeature>,
    <{http://www.omg.org/bpmn20}userTask>

    Hi,
    I have the same error. Please if you have the solution or any workaround, i 'll very appreciate if you post it here
    Thanks in advance!

  • Allowing Expressions in JSLT 1.0.3 Tag Libraries within JDevelper 9.0.3

    I down loaded the latest version of the Java Standard Tag Library (1.0.3) from the Apache site. I installed the standard-1.0.3/lib/standard.jar file and associated it with the c-rt.tld in JDeveloper using Tools/Manage Libraries. I added the components to the JDev component palette.
    I am able to add components (i.e. if, forEach, etc) to my JSP Page and compile and run the pages with out error. However, I have found that none of the JSLT components will all any of the fields to be Expressions. For example code such as:
    <c:forEach items="${orders}" var="order">
    <c:out value="${order.id}"/>
    </c:forEach>
    Will just output the string ${order.id}
    When I add the components from the Palette, the "Expression Allowed?" field is always set to false.
    Do you have any idea what I need to do to 'allow expressions' for the JSLT tags. Thanks.
    -- Chuck

    I down loaded the latest version of the Java Standard Tag Library (1.0.3) from the Apache site. I installed the standard-1.0.3/lib/standard.jar file and associated it with the c-rt.tld in JDeveloper using Tools/Manage Libraries. I added the components to the JDev component palette.
    I am able to add components (i.e. if, forEach, etc) to my JSP Page and compile and run the pages with out error. However, I have found that none of the JSLT components will all any of the fields to be Expressions. For example code such as:
    <c:forEach items="${orders}" var="order">
    <c:out value="${order.id}"/>
    </c:forEach>
    Will just output the string ${order.id}
    When I add the components from the Palette, the "Expression Allowed?" field is always set to false.
    Do you have any idea what I need to do to 'allow expressions' for the JSLT tags. Thanks.
    -- Chuck

  • An unexpected server error has ocurred in Jdevelper 11.1.2.4.0

    I always got this error when I tried to create a new ADF mobile application any idea . see the attached file.
    error - Download - 4shared

    Select 'Continue' and set the check mark on the 'Remenber setting...' and try to continue your work.
    Errors like this happen from time to time and are mostly ill formatted xml files. However the error normally does not have any effect on your work so it'S save to just continue your work. If you see any problem after you continued your work you should close jdev and restart it.
    Timo

  • JDevelper 11.1.2.1.0  with application Error

    Dear All,
    When I starting to run my application with new Jdeveloper 11.2.2.1.0 I face the following error.Please help to me how to tackle this problem as well as useful blog links and resources.
    Regards
    KT
    oracle.security.jps.service.policystore.PolicyStoreRuntimeException: JPS-04031: Parameter "appName" is null.
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:334)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:320)
         at oracle.security.jps.internal.policystore.PolicyUtil.getGrantedAppRoles(PolicyUtil.java:2719)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$4.run(JpsAbsSubjectResolver.java:526)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$4.run(JpsAbsSubjectResolver.java:516)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getApplicationRoles(JpsAbsSubjectResolver.java:516)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.createJpsSubject(JpsAbsSubjectResolver.java:363)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getAnonymousSubject(JpsAbsSubjectResolver.java:347)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveJpsSubject(JpsAbsSubjectResolver.java:264)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveSubject(JpsAbsSubjectResolver.java:212)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:153)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-04031: Parameter "appName" is null.
         at oracle.security.jps.internal.policystore.PolicyUtil.checkForNull(PolicyUtil.java:1236)
         at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.getApplicationPolicyWithNoAuthzCheck(XmlPolicyStore.java:622)
         at oracle.security.jps.az.internal.management.pd.service.XmlPolicyDistributionService.getAppPolicy(XmlPolicyDistributionService.java:222)
         at oracle.security.jps.az.internal.management.pd.service.XmlPolicyDistributionService.getAppPolicyEntity(XmlPolicyDistributionService.java:212)
         at oracle.security.jps.az.internal.management.pd.service.XmlPolicyDistributionService.getAppPolicyEntry(XmlPolicyDistributionService.java:121)
         at oracle.security.jps.az.internal.management.pd.service.XmlPolicyDistributionService.getAppPolicyEntry(XmlPolicyDistributionService.java:116)
         at oracle.security.jps.az.internal.management.pd.service.PolicyDistributionServiceImpl.getAppPolicyEntry(PolicyDistributionServiceImpl.java:137)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:216)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:108)

    Thank you ADF7,John Stegeman,csoto      now my use case have been solved.This is my process Steps
    Step 1. Uninstall JDeveloper ( I used revouninstaller free ware http://www.revouninstaller.com )
    Step 2. Delete everything from C:\Users\username\AppData\Roaming\JDeveloper and C:\Program Files\jdeveloper
    Step 3. Restart computer ( for me, if I don't restart the error messages are still coming after deploying )
    step 4. Install the latest one ( JDeveloper 11.1.2.1.0)
    Regards
    KT

  • Cannot connect Oracle 7.2.2 using JDBC thin in JDevelper....

    When I try to connect Oracle 7.2.2 database using JDBC thin driver of Java 1.1.8 in JDeveloper, the connection manager refuse to connect the database and alert the minimum version supported is 7.2.3. But I know JDBC thin driver can connect database of 7.2.x onwards. Any way to workaround? Thank you.

    Hi Tian-liang,
    Try using Microsofts JDBC driver rather than Suns. Also search these forums, other have run into the same issue.
    Thank you
    Don

  • Unable to get parameter by using a controller in OAF

    Hi!
    I'm new using OAF and will appreciate your help a lot!!
    FYI:
    Basically I have to add 2 descriptive flexfields in a page (by creating a VO) and I have to update the table with the information registered on those dff (I've done all the logic already).
    I created a Controller (CO) which calls a method declared in an Application module (AM) that executes a store procedure (the CO and AM have been created by me and they extend a standard CO and AM).
    Problem:
    However, just before updating.. I'm having a problem because I'm unable to get a parameter by using paramContext.getParameter("reqHeaderId"); that will help me to identify which row I need to update.
    Since the instruction is not capturing the value, it returns null and I got the following error when I try to convert it to Number: oracle.apps.fnd.framework.OAException: java.lang.NumberFormatException: null
    It's really important to mention that before getting to the page where I click the submit button that does the logic mentioned.. there are 2 pages before the one where I'm trying to capture the parameter and the parameter needed is set on the 1st page. I've been checking each standard CO of the 3 pages and they use the instruction pageContext.putParameter("reqHeaderId"); to pass it between the 3 pages (As far as I know, if not please correct me). On the 3rd and last standard CO it uses pageContext.getParameter("reqHeaderId"); to get the value and do some other logic.
    So why Im not getting the value if I do the same thing (pageContext.getParameter("reqHeaderId");) on my xxController (which extends the standard CO)?
    Here is the code of the controller:
    public class xxController extends standardController {
       public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        String str;
        str = pageContext.getParameter("_FORM_SUBMIT_BUTTON");
           if ((str != null) && (str.equals("SubmitButton")))
               String ReqHeaderId = pageContext.getParameter("reqHeaderId");
              String ReqLineId = pageContext.getParameter("reqLindId");
            Serializable[] parameters1 =
             ReqHeaderId
             ,ReqLineId
            ,pageContext.getParameter("xxavtBienServicio")     //dff
            ,pageContext.getParameter("xxavtAttribute3")         //dff
            String var = (String)am.invokeMethod("updateAttributes", parameters1);    // updateAttributes is the method that converts ReqHeaderId to number and executes my store procedure
    thank you for your help in advance!

    You need to verify that the parameter is being added to the pageContext from the first page to the last. You can do this by downloading the pages and all the class files to your development environment and put them into the myClasses directory. Then once you get it so it can be run in JDeveloper, you can actually invoke the debugger and do a watch on the page context for that parameter. It is important to note that you may need to download more than just those specific pages depending upon the setups of the supporting pages. I generally find it easier to just download everything for a particular application to my classes directory so I am not forever trying to find missing class files. Even then if they call some utility classes, you will need to download them to the JDevelper on your PC into the classes directory.  But once you are able to run the pages in JDeveloper you will be able to do a lot more with the debugger.
    Kristofer

  • Application works in jdeveloper but not as standalone jar file

    Hi All
    We have developed an application using BI Publisher APIs,it works as expected through JDevelper,however when I try to deploy it to a jar file a run it through command line it gives me No class found exception for
    javax/xml/rpc/Service class factory.. thinking that the class is not present.I have extracted the jar file but could find the class file in the expected directory........anyhelp would greatly be appreciated.
    Regards
    Venkatesh

    Hi Venkatesh,
    Few questions.
    1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
    2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
    -Arun

  • Unable to depoly Web Serivce for the source code written in other editors

    Hi all,
    I am planning to implement webservice with the following code. But I am facing few problems with this can some body help me with this.
    The code looks like this AND IS NOT WRITTEN IN Jdeveloper BUT EDITPLUS
    package package1;
    public class Sum
    public int getSum(int a, int b)
              return a+b;
    package package2;
    public class Sub
    public int getSub(int a, int b)
              return a-b;
    package package3;
    import package1.*;
    import package2.*;
    public class Mul implements TestInterface
         Sum sm = new Sum();
         Sub sb = new Sub();
    public int getMul(int a, int b)
              return sm.getSum(a,b)*sb.getSub(a,b);
    public static void main(String [] args)
              Mul ml = new Mul();
              System.out.println(“The result of (3+6)*(3-6) is “+ ml.getMul(3,6));
    package package3;
    interface TestInterface extends java.rmi.Remote;
         public int getMul(int a, int b) throws java.rmi.RemoteException;
    I have written this in editplus. Not in Jdeveloper.
    Now I want publish getMul() as web service using Jdeveloper.
    I have created a new application work space. And from File--&gt;New
    I have choose project from existing source and imported “package3”.
    At this stage it was unable to find the class files Sum and Sub so I placed Sum.class and Sub.class in Appliction1-Project1-classes-
    Now the Mul class did not have any errors and it compiled fine. When run it gave the correct output.
    Using the web service wizard I was able to generate wsdl file , deployment descriptors etc.
    The problem I was facing was form this stage when I am trying to deploy it on to a standalone oc4j server it is not able generate the WebServices.war file and hence is not deployed on to the server.
    With the same code written in Jdeveloper everything is working fine.
    My doubts are
    1)     why is it not able to generate WebService.war file?
    2)     It is giving some ClassNotFound exception during the deployment. But when compiled and run its giving the correct output.
    3)     Even when everything was written from within the Jdevelper it did not include Sum.calss and Sub.class in WebSevice.war. Is there any way we could mention during its (WebService.war) generation , the class files to be Included.
    The other issue is how to add an existing source code to already existing project. In my case Once I have imported package3 I also want to import package2 and package1 in different steps.
    I thank in advance for helping me.
    Raja Vamshi k Gopu

    Can you tell us what you mean by correct type of project?
    You can start with an empty project. Then, you have to create an "EAR file" deployment profile (New Gallery / General / Deployment Profiles).
    So when I deploy a J2SE module onto oc4j server should I specify the class path? If so where ? How can I solve this problem?
    Once you deploy your code into oc4j, it becomes a J2EE application. You don't need to deal with the classpath - just make sure that all the required code is included in your .war file. To do so, check the list of classes packaged under the deployement properties dialog.
    Can you send me the links of few articles where I can learn more about these kind of stuff?
    If you want to assemble applications without to use JDeveloper wizard, you have another option: using the WebServiceAssembler tool that is par of the oc4j bits will help you to do this from a command line promt, and will handle the J2EE packaging aspect for you.
    See online documentation (10.1.2): http://download-west.oracle.com/docs/cd/B14099_04/web.htm
    In the "Developer's Guide", chapter 9 is about "Web Services Tools"
    For JDeveloper J2EE samples, you can start by looking at the OBE: http://www.oracle.com/technology/obe/obe_as_1012/j2ee/index.html
    Hope this helps,
    Eric

  • Unable to run HelloWorld Programm from different jdevloper project.

    HI,
    I have created the HelloWorld programm provided in cdb development kit in another jdevelper project and included all the jar files provided in the cdb development kit lib folder. the program looks like this.
    package bean;
    * Copyright (c) 2007, Oracle. All rights reserved.
    /*import oracle.ifs.examples.api.constants.AttributeRequests;
    import oracle.ifs.examples.api.util.CommonUtils;
    import oracle.ifs.examples.api.util.Logger;
    import oracle.ifs.examples.api.util.LoggingUtils;
    import oracle.ifs.examples.api.util.SamplesConfiguration;*/
    import oracle.ifs.fdk.FdkCredential;
    import oracle.ifs.fdk.FdkSession;
    import oracle.ifs.fdk.Item;
    import oracle.ifs.fdk.ManagersFactory;
    import oracle.ifs.fdk.SimpleFdkCredential;
    * This class demonstrates connecting to Content DB with username-password
    * authentication.
    public class LoginBean
    public String authUser(String username, String password)
    System.out.println("entered into helloworld programm");
    FdkCredential credential = new SimpleFdkCredential(
    username, password);
    ManagersFactory session = null;
    try
    session = ManagersFactory.login(credential, "content db url");
    System.out.println(session);
    catch (Throwable t)
    System.out.println(t);
    public static void main(String[] args) {
    LoginBean hw=new LoginBean();
    hw.authUser("username","password");
    if i am running this program i am getting the below error.entered into helloworld programm
    Sep 15, 2007 3:37:01 PM org.apache.axis.client.Call invoke
    SEVERE: Exception:
    org.xml.sax.SAXException: No object was found for class type class oracle.ifs.fdk.FdkSession
         at org.apache.axis.encoding.ConstructorTarget.set(ConstructorTarget.java:97)
         at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
         at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
         at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
         at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
         at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
         at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
         at org.apache.axis.client.Call.invoke(Call.java:2448)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at oracle.ifs.fdk.RemoteLoginManagerSoapBindingStub.login(RemoteLoginManagerSoapBindingStub.java:242)
         at oracle.ifs.fdk.client.impl.RemoteLoginManagerProxy.login(RemoteLoginManagerProxy.java:48)
         at oracle.ifs.fdk.client.impl.AxisRemoteManagersFactory.<init>(AxisRemoteManagersFactory.java:160)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:224)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:131)
         at oracle.ifs.fdk.ManagersFactory.login(ManagersFactory.java:94)
         at bean.LoginBean.authUser(LoginBean.java:45)
         at bean.LoginBean.main(LoginBean.java:64)
    java.lang.RuntimeException: Unknown exception. See cause.
    Process exited with exit code 0.
    By browsing the samples1013.jpr provided in the cdb development kit and modifying the HelloWorld program like the above program and running the HelloWorld program is working fine. its not giving any error.
    Please if anybody knows why i am getting this error. reply me as soon as possible.
    thanks in advance,
    soni.

    Hi
    Can you check your Jdev - project template.

  • Jdeveloper 10.1.3.3.0.4157  ADF faces  Do not render in visual editor

    The ADF Faces Components do not display in the visual editor
    The code window shows all these features present and properly coded
    These components are from the ADF Faces Core page of the Component Pallete
    I tried quitting and re-starting jdeveloper , to no avail
    I placed an af:panelPage on h:form and typed in a title-(blank visual editor)
    I placed an ObjectImage and placed it on the branding facet
    I bound a logo.image to this component - (still blank visual editor)
    All of this insertions into the form are recorded in the code window
    but do not appear in the Visual Designer.
    Using jdeveloper10.1.2.2.0.4157
    JDK 1.5.0_15
    windows xp professional
    The example project is from the Book:
    Oracle JDeveloper 10g for Forms & PL/SQL Developers

    Thank you for your reply.
    On jdevelper startup I get the following message:
    ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
    For no Reason at all,(except for starting and shutting down jdeveloper)
    I am now getting a view: An Outline with tags in order , but not a simulation
    of a web page???But a correct development structure with tags/values identified.
    there are many libraries in the properties page , I'm a newbie so wouldn't
    know if any of these would help?

  • Jsp sriplets not working in properly in ojsp

    Hi every one i have this ADF application develped in jdevelper 11.1.1.0.2 and deployed in to weblogic server version 10.3.0 and it worked fine.plese note i have used
    ADF for the presentaion layer.We had to migrate in to weblogic server version 10.3.2.for this i used jdevelper version 11.1.1.2.0 and open the project from this and i click yes for the migration.
    then i have deployed the new war file in to the new server.but the thing is it doesnt work the expected way.for my knowldge the issue is something to do with ojsp.when it tries to read jsp scriplets in the jsp page it throws an error.it is as followes
    **JspServlet error: Servlet unable to dispatch to the following requested page: The following exception occurred:oracle.jsp.parse.JavaCodeException:  Line # 13, oracle.jsp.parse.JspParseTagScriptlet@3f673160***
    **Error: Java code in jsp source files is not allowed in ojsp.next mode.>**
    any solution to this.????can i disable the ojsp compiler and go to normal jsp compliser?if so how to do it?
    thanks in advance every one :)
    Umesh

    Extracted from Note 1067696.1:
    You need to either adapt your code to remove the scriptlets in your JSP page,
    or you can use the following Java option to disable OJSP:
    -Dadfvdt.disableOjspDeployment=true
    You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "<Middleware_Home>\jdeveloper\ide\bin"
    For your Production environment, you can have your Managed WLS ignoring the OJSP mode by adding the Java Option -Dadfvdt.disableOjspDeployment=true
    * in the "startManagedWebLogic" (if you want to limit it to a specific Managed Server)
    * or "setDomainEnv" (for all managed servers in a domain).

Maybe you are looking for

  • Help with AP_Invoice Tables in SQL

    Hi Gurus, I am working on a report where i created a view. This query pulls data from SO,PO,ITEMS,AP and AR tables. The problem I am having is when I add a AP tables or a field from that table some of the Order Numbers are disappearing. Could someone

  • Standby database SWITCHOVER_STATUS field is always NOT ALLOWED

    standby database: SQL> select switchover_status from v$database; SWITCHOVER_STATUS NOT ALLOWED select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database; DB_UNIQUE_NAME          DATABASE_ROLE     OPEN_MODE LOG_MODE     PR

  • Macbook pro doesn't leave me to see series online

    On having entered the link and having pressed the play it jumps advertising (even having put the extension adblock) and the page of the breeding animal goes away to yop sites (I have the flash installed) thank you

  • Special Gl indicater in Fast entry screen

    Hi experts, Is it possible to add the Special gl indicater field in Fast entry screen in O7E6, i have already checked in the Possible Fields, spl. gl is not available. so please guide me how to add the field in possible fields(with technical names) I

  • How to build WSN program

    I have developed the program for NI WSN 3214 but I am unable to deploy the code. When I run the code I get the following error. [12:31:32] Status: Build Error. Error message: Linker error occurred Error Output: error: cannot find file "libfirmware.a"