Config java class

Hi,
I have a bean object and I have associate it a java class.
When I run the form, under 9iAS, the class don't work.
I put the class in the same directory of the form. Must I set this path for the class.?? What Is this file ??
Thanks

Is this a bean that suppose to run on the client or on the server?
If it is on the client then make sure the Jar file with the bean is downloaded to the client by adding it to the archive tag in your HTML.
If it is a server side bean make sure the jar file is in the class_path.
Check out the Java Spotlight in the Forms Upgrade center for more info:
http://otn.oracle.com/products/forms/htdocs/upgrade/content.html

Similar Messages

  • Configure remote-config for calling java class

    Hi...all
    i'm newbie, i got trouble for configure remote-config in flex project
    how to configure remote-config.xml, if i have java class like below
    package org.springframework.flex.samples.secured;
    import java.util.Map;
    import org.springframework.flex.security.AuthenticationResultUtils;
    public class SecurityHelper {
        public Map<String, Object> getAuthentication() {
            return AuthenticationResultUtils.getAuthenticationResult();
    please help me.....i'm newbie and wanna learnin
    thanks

    Hi,
    May be this could be of good help to you
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
    Thanks,
    Balaji

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • To obtain the value of a session variable in a JAVA class

    Hello again.
    I have a JSP page, in witch I kept a session variable with a value, and later (in the same JSP page) I use a JAVA class to obtain the value stored in this session variable (I make this to verify that this works well and that this is possible)
    When I run the file, I obtain the following error:
    excepci�n
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    causa ra�z
    java.lang.NullPointerException
         ConfigAnlsEspect.Config.<init>(Config.java:18)
         org.apache.jsp.admin.PaleoPlot.configAnEsp_jsp._jspService(configAnEsp_jsp.java:103)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)And my code is:
    ------------->The JSP file:<-----------------
    session.setAttribute("VarSession", "empty");
    <%@ page import="ConfigAnlsEspect.Config"%>
    <%
    Config ObjConfigAE = new Config();
    String valorDev = ObjConfigAE.getValueSession();
    out.println("<br>Returned= -->"+valorDev+"<--<br>");
    %>
    ------------->The JAVA class:<-----------------
    package ConfigAnlsEspect;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.http.HttpSession;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Config extends HttpServlet{
         HttpSession session = null;
         String valor = null;
         public Config (){
              valor = (String)session.getAttribute("VarSession");
         public String getValueSession(){     
              return valor;
    }Why I obtain java.lang.NullPointerException ??
    Thanks very much

    I have solved the problem, doing (in the java class):
    package ConfigAnlsEspect;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Config extends HttpServlet{
         HttpSession session;
         String valor = null;
         public Config (HttpSession session){
              this.session = session;
              valor = (String)this.session.getAttribute("VarSession");
         public String getValueSession(){     
              return valor;
    }is it rigth ??

  • How can I execute a java class with arguments from an air application built from mxml?

    I have an mxml application. It has a button, and when that button select event occurs, I want my mxml air app to pass arguments to a java class I have built, which resides in a package path on my system. I need to be able to pass several arguments to my java method from my mxml call. How do I do this, and what config files are necessary? For the simple task I want to engineer, can you show me an example of a properly configured config file? My java class has been executed at the command line in the past as follows:
    java -cp %CP% com.abc.prism.queue.EmitMessage XYZ "my message text" 192.12.13.14 5672
    where %CP% is an env variable that tells my class the classpath it runs with, and XYZ, "my message text", the IP address, and the port are the arguments I must pass from mxml to my java class. How do I accomplish this?
    How do I make known to the java class I call from mxml the %CP% class path? It tells my java class where to find various rabbitMQ jars.

    Hi,
    You need to use Integration technology like BlazeDS or LCDS.

  • Problem while trying to execute Java class in JSP using  RunTime Class

    Hi,
    I want to execute a JAVA class through a JSP. For this I am using following code ....
    JSP (AAA.jsp) CODE ............
    try
    String[] cmd = new String[3];
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[2] = "java -DPeBS_CONFIG_HOME=D:/CASLIntegration/PeBS/srcvob/PeBS/config Service_Statement_Application 22/May/2001 22/May/2003";
    Runtime rt = Runtime.getRuntime();
    System.out.println("Execing " + cmd[0] + " " + cmd[1] + " " + cmd[2]);
    Process proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    int exitVal = proc.waitFor();
    System.out.println("ExitValue: " + exitVal);
    catch (Throwable t)
    t.printStackTrace();
    StreamGobbler THread class Code ..........
    import java.util.*;
    import java.io.*;
    public class StreamGobbler extends Thread
    InputStream is;
    String type;
    StreamGobbler(InputStream is, String type)
    this.is = is;
    this.type = type;
    public void run()
    try
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line=null;
    while ( (line = br.readLine()) != null)
    System.out.println(type + ">" + line);
    } catch (IOException ioe)
    ioe.printStackTrace();
    I have successfully compiled and placed the class file for the above class in JSP's servlet engine. However, when I execute the JSP through explorer Web Browser, I get following compile time error:
    An error occurred between lines: 36 and 86 in the jsp file: /casl/LocalApp/VehicleServiceStmt/AAA.jsp
    Generated servlet error:
    D:\Tomcat\work\localhost\_\casl\LocalApp\VehicleServiceStmt\AAA$jsp.java:118: No constructor matching StreamGobbler(java.io.InputStream, java.lang.String) found in class StreamGobbler.
    StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "ERROR");
    ^
    An error occurred between lines: 36 and 86 in the jsp file: /casl/LocalApp/VehicleServiceStmt/AAA.jsp
    Generated servlet error:
    D:\Tomcat\work\localhost\_\casl\LocalApp\VehicleServiceStmt\AAA$jsp.java:121: No constructor matching StreamGobbler(java.io.InputStream, java.lang.String) found in class StreamGobbler.
    StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "OUTPUT");
    I am unable to determine the reason of why the constructor which exists in the StreamGobbler Class is not recevied in JSP. If I try to write the same code in JSP as a JAVA class, keeping StreamGobler class same, the programme executes successfully.
    Please help me find solution to this at the earliest. Thanks in advance,
    Prachi

    Thanks,
    I got it working by making the constructor Public.
    -Prachi

  • EJB DC, where to put other public java classes?

    I'm wondering what the best way to structure my code is, in this context:
    I have an EJB DC that utilizes some custom Java classes that need to be available to clients.  For example, the business methods in the EJB may return instances of said custom code classes. 
    By default, the EJB DC contains a compilation public part called 'client', but you can't add any other entities to it, as you'll remove the default entity.  I could manually create the entities in the public part, but I think when I add another EJB to the DC, it will overwrite the entities that I've created....either that, I'm messing with the default config, something I'm not interested in doing. In fact, this [page indicates that you should NOT alter the generated PPs:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/6755bd296ade42931646f869b1fd15/frameset.htm
    So, what's the best way to handle this situation?  I can create another public part, but that means that when someone wants to use the EJB's, they have to create two usage relationships - one to the EJB, and one to the PP that contains the helper classes.  I think that this is the only way to do it, however.
    How have other folks handled this common situation?

    Hi Ken,
    I think you've found it.
    I'm not so sure about DC projects, but in the plain J2EE case I would recommend to put all common (public) classes in a separate component (application library) and make references to it both from the EJB application as well as from its clients. This library would also contain the EJB interfaces, so there would not be a need for direct reference from the clients to the EJB application.
    I think with DC public parts you are achieving almost the same.
    Cheers,
    Vladimir
    PS: BTW, probably you would be able to get more thoughts on this in the SAP NetWeaver Development Infrastructure (NWDI) forum.
    Message was edited by:
            Vladimir Pavlov

  • Cannot Import Java Classes

    I am trying to do the sample contact walkthrough in FLEX
    builder. For the Java Adapter.
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00000138 .html
    I cannot get any import statements to work for the java class
    files. I have tried this using the FDS as a J2EE application
    running in tomcat, I have tried with the standalone JRUN version of
    the FDS app.
    I have put the contact files everywhere I can think of, in
    the server classes folder, in the project, in the default web
    folder and nothing I try works. I have even setup the project to
    compile on the server and I get nothing. Everytime, I get errors.
    I did the tutorial from the JDJ magazine:
    http://java.sys-con.com/read/210991.htm
    I cant get that java connection to work either. Please
    someone help me.
    The flex code is below.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.data.DataService;
    import mx.collections.ArrayCollection;
    import samples.contact.Contact;
    public var ds:DataService;
    [Bindable]
    public var contacts:ArrayCollection;
    //public var contact:Contact;
    ]]>
    </mx:Script>
    <mx:DataGrid id="dg" editable="true">
    <mx:columns>
    <mx:DataGridColumn dataField="contactId" headerText="Id"
    editable="false"/>
    <mx:DataGridColumn dataField="firstName"
    headerText="First Name"/>
    <mx:DataGridColumn dataField="lastName" headerText="Last
    Name"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>

    Ken, thank you for replying, I have had absolutly nothing but
    problems trying to get this 'simple' thing to work.
    Here is my code.
    In the remote-config.xml file, I have this code:
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
    class="flex.messaging.services.RemotingService"
    messageTypes="flex.messaging.messages.RemotingMessage">
    <adapters>
    <adapter-definition id="java-object"
    class="flex.messaging.services.remoting.adapters.JavaAdapter"
    default="true"/>
    </adapters>
    <default-channels>
    <channel ref="my-amf"/>
    </default-channels>
    <destination id="SimpleJava">
    <properties>
    <source>javaSamples.SimpleMath</source>
    </properties>
    </destination>
    </service>
    Here is my MXML file: (Called new.MXML)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:RemoteObject id="math" destination="SimpleJava">
    <mx:method name="doMath" concurrency="last"
    result="fillTxt(event.result as int)"/>
    </mx:RemoteObject>
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent
    private function fillTxt(b: int):void{
    txtResult.text = (String)
    //comment
    ]]>
    </mx:Script>
    <mx:Panel x="10" y="24" width="250" height="200"
    layout="absolute" title="Simple Math with Java">
    <mx:Label x="10" y="10" text="Input Number to
    Multiply:"/>
    <mx:TextInput x="10" y="36" id="txtNumber"
    maxChars="1"/>
    <mx:Label x="10" y="126" id="txtResult"/>
    <mx:Label x="10" y="100" text="Your Number will appear
    below:"/>
    <mx:Button x="10" y="66" label="Multiply by 2"
    click="math.doMath(txtNumber.text)"/>
    </mx:Panel>
    </mx:Application>
    Here is my SimpleJava.java file:
    package javaSamples;
    //import java.util.*;
    * @author jsanders
    public class SimpleMath {
    public int doMath(String a){
    int new_a = Integer.parseInt(a.trim());
    int b = new_a * 2;
    return b;
    //changesd
    Like I said I have had absolutly nothing but problems with
    this. Yesterday, I was getting send failures, So I did some
    reasearch found some folks who said that they had the same problem,
    and they had to hard code the app name into the services-config.xml
    file. The file used to have {context.root} in it, and that variable
    was set to /flex, now I hardcoded this line into the my-amf channel
    definition to get rid of the send failure error.
    <channel-definition id="my-amf"
    class="mx.messaging.channels.AMFChannel">
    <endpoint uri="
    http://{server.name}:{server.port}/flex/messagebroker/amf"
    class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <polling-enabled>false</polling-enabled>
    </properties>
    </channel-definition>
    As you can see what should say:
    http://{server.name}:{server.port}/{context.root}
    Now says:
    http://{server.name}:{server.port}/flex.
    This was the only way I could get the send error to go away.
    Now I worry that I might have broken something else. Since I
    removed all references to {context.root} in that file.
    {context.root} is defined in the flex-config.xml file, like
    this:
    <context-root>/flex</context-root>
    I have tried it with or without the '/' in the value of the
    context.root variable.
    I have played with the remoting-config file, and I know that
    I am accessing the destination.
    I have played with the <source> option of the
    destination, and I know that I am finding the class and making a
    good connection.
    I am using the JRUN install of FDS on my box, and yesterday
    at the end of the day after getting the context.root situation
    sorted out, I got a different error something like major.minor
    versioning errors.
    So the Java guys here at work told me that the JRUN version
    packaged with FDS was 1.4, and I used 1.5 to compile my java class.
    So I recompiled this morning with the 1.4 sdk. Now I dont get that
    error about the major minor versioning anymore.
    Now I get nothing. I use firefox, and all the browser tells
    me is 'transferring data from localhost' Nothing else. It just sits
    there and does nothing.
    When I did the debug on it, I got into a loop on the
    UIComponent.as file in the callLaterDispatcher(event:Event)
    function.
    Any clues what might be causing this new hang up. Basically
    the machine just hangs. Is there a problem with the result from the
    Method I am calling in the MXML? Did I do something wrong with the
    Event as Int thing?
    Again any help would be appreciated.

  • Loading Java classes in a script

    I think I have this basic question:
    I have a couple of Java classes that i want to call from a script.
    I'm trying to use a scripting language in order to allow a simpler config interface to a user. Therefore this script will be something as simple as a wrapper on the classes already developed in java.
    Any thoughts on how I should do this easily? (Scripting language, examples, ...)
    Thanks!

    To give a bit more of info, this is my java main:
    package run;
    import interfaces.Command;
    public class test {
         public static void main(String[] args) {
              String classname = "instances.PingCmd";
              String parameter_file = "paramPing.xml";
              try {
                   Command cmd = (Command) Class.forName(classname).newInstance();
                   boolean rtn = cmd.execute(parameter_file);
                   System.out.println("Test " + classname + ": " + rtn);
    It calls various classes ("instances.PingCmd" in this example).
    This is what I want my Groovy script to do. Just call some of these classes that I have made in java, and print the output.
    Can anyone help me out with a similar example?
    Thanks again!

  • How to parse a string in CVP 7.0(1). Is there a built-in java class, other?

    Hi,
    I need to parse,in CVP 7.0(1), the BAAccountNumber variable passed by the ICM dialer.  Is there a built-in java class or other function that would help me do this?
    Our BAAccountNumber variable looks something like this: 321|XXX12345678|1901|M. In IP IVR I use the "Get ICM Data" object to read the BAAccountNumber variable from ICM and then I use the "token index" feature to parse the variable (picture below).
    Alternately, IP IVR also has a Java class that allows me to do this; the class is "java.lang.String" and the method is "public int indexOf(String,int)"
    Is there something equivalent in CVP 7.0(1)?
    thanks

    Thanks again for your help.  This is what I ended up doing:
    This configurable action element takes a string seperated by two "|" (123|123456789|12)
    and returns 3 string variables.
    you can add more output variables by adding to the Setting array below.
    // These classes are used by custom configurable elements.
    import com.audium.server.session.ActionElementData;
    import com.audium.server.voiceElement.ActionElementBase;
    import com.audium.server.voiceElement.ElementData;
    import com.audium.server.voiceElement.ElementException;
    import com.audium.server.voiceElement.ElementInterface;
    import com.audium.server.voiceElement.Setting;
    import com.audium.server.xml.ActionElementConfig;
    public class SOMENAMEHERE extends ActionElementBase implements ElementInterface
         * This method is run when the action is visited. From the ActionElementData
         * object, the configuration can be obtained.
        public void doAction(String name, ActionElementData actionData) throws ElementException
            try {
                // Get the configuration
                ActionElementConfig config = actionData.getActionElementConfig();
                //now retrieve each setting value using its 'real' name as defined in the getSettings method above
                //each setting is returned as a String type, but can be converted.
                String input = config.getSettingValue("input",actionData);
                String resultType = config.getSettingValue("resultType",actionData);
                String resultEntityID = config.getSettingValue("resultEntityID",actionData);
                String resultMemberID = config.getSettingValue("resultMemberID",actionData);
                String resultTFNType = config.getSettingValue("resultTFNType",actionData);
                //get the substring
                //String sub = input.substring(startPos,startPos+numChars);
                String[] BAAcctresults = input.split("\\|");
                //Now store the substring into either Element or Session data as requested
                //and store it into the variable name requested by the Studio developer
                if(resultType.equals("Element")){
                    actionData.setElementData(resultEntityID,BAAcctresults[0]);
                    actionData.setElementData(resultMemberID,BAAcctresults[1]);
                    actionData.setElementData(resultTFNType,BAAcctresults[2]);
                } else {
                    actionData.setSessionData(resultEntityID,BAAcctresults[0]);
                    actionData.setSessionData(resultMemberID,BAAcctresults[1]);
                    actionData.setSessionData(resultTFNType,BAAcctresults[2]);
                actionData.setElementData("status","success");
            } catch (Exception e) {
                //If anything goes wrong, create Element data 'status' with the value 'failure'
                //and return an empty string into the variable requested by the caller
                e.printStackTrace();
                actionData.setElementData("status","failure");
        public String getElementName()
            return "MEDDOC PARSER";
        public String getDisplayFolderName()
            return "SSC Custom";
        public String getDescription()
            return "This class breaks down the BAAccountNumber";
        public Setting[] getSettings() throws ElementException
             //You must define the number of settings here
             Setting[] settingArray = new Setting[5];
              //each setting must specify: real name, display name, description,
              //is it required?, can it only appear once?, does it allow substitution?,
              //and the type of entry allowed
            settingArray[0] = new Setting("input", "Original String",
                       "This is the string from which to grab a substring.",
                       true,   // It is required
                       true,   // It appears only once
                       true,   // It allows substitution
                       Setting.STRING);
            settingArray[1] = new Setting("resultType", "Result Type",
                    "Choose where to store result \n" +
                    "into Element or Session data",
                    true,   // It is required
                    true,   // It appears only once
                    false,  // It does NOT allow substitution
                    new String[]{"Element","Session"});//pull-down menu
            settingArray[1].setDefaultValue("Session");
            settingArray[2] = new Setting("resultEntityID", "EntityID",
              "Name of variable to hold the result.",
              true,   // It is required
              true,   // It appears only once
              true,   // It allows substitution
              Setting.STRING);  
            settingArray[2].setDefaultValue("EntityID");
            settingArray[3] = new Setting("resultMemberID", "MemberID",
                    "Name of variable to hold the result.",
                    true,   // It is required
                    true,   // It appears only once
                    true,   // It allows substitution
                    Setting.STRING);  
            settingArray[3].setDefaultValue("MemberID");
            settingArray[4] = new Setting("resultTFNType", "TFNType",
                      "Name of variable to hold the result.",
                      true,   // It is required
                      true,   // It appears only once
                      true,   // It allows substitution
                      Setting.STRING);  
            settingArray[4].setDefaultValue("TFNType");    
    return settingArray;
        public ElementData[] getElementData() throws ElementException
            return null;

  • Java Class Web Service

    Which the best way to make a webservice based on a java class in JDeveloper 10.1.2?
    I need to make a webservice that make some queries in views of BPEL's dehydration DB, but I would not like that this webservice was a BPEL process in the Process Manager, with gone off instances being to each query. Therefore I intend to make a java class that it executes the queries and it returns the results.
    However it would like a structuralized payload, instead of returning a primitive and soap-serialized type, I would like to return a complex type.
    Example of return message:
    ... SOAP Message ...
    <payload>
    <sensors>
    <sensor>
    <date>2006-sep-11</date>
    <activity>invoke partner</activity>
    </sensor>
    <sensor>
    <date>2006-sep-11</date>
    <activity>receive partner</activity>
    </sensor>
    </sensors>
    </payload>
    ... SOAP Message ...
    Well, JDeveloper 10.1.2 can't make this work easiest for me ... the wizard can't work with classes returning complex types.
    I tried many ways to do this: top-down and bottom-up approach's, but without success.
    Also tried made a wsdl and using schemac generate facades classes, write a deploy file and, and after some difficult made the deploy in my OC4J. But invoking the webservice the server returns this message:
    "javax.servlet.ServletException: WSDL Generation exception: java.lang.Exception org.collaxa.thirdparty.dom4j.Namespace is not a java bean: must have a default constructor"
    Well, sorry, but I'm a java newbie and I have no idea about what can I do in this case. But I think that the error isn't in my class. :-(
    Ok, also tried to do this, for test, in JDeveloper 10.1.3, but without success too.
    Following some examples and tutorials, I tried to use the wizard "Create J2EE webservice" using WSIF, but doesn't works for me.
    I read the blog posts:
    "Revisiting Java and WSIF"
    http://blogs.oracle.com/reynolds/2006/08/10#a112
    "Using Java from BPEL"
    http://blogs.oracle.com/reynolds/discuss/msgReader$10?mode=day
    And many others...
    But, in fact, the things doesn't works like in the tutorials...
    Someone can help-me?
    Thanks for help and sorry for my rusted english.

    As far as I can tell, the SOAPContext is not magically there in Oracle Web services so you have to revert to Oracle SOAP (which is where the OracleSOAPContext comes from and is pretty much Apache SOAP 2.3.1 with fixes and a couple things to make it work in our environment - e.g. like a slightly updated SOAPContext class).
    We ship Oracle SOAP with our distribution in the soap.ear file located in the <oc4J_home>\soap\webapps directory. Just add this line (tailored to your config) to your server.xml:
    <application name="soap" path="../../../soap/webapps/soap.ear" auto-start="true" />
    and the line:
    <web-app application="soap" name="soap" root="/soap" />
    to your http-web-site.xml and your Oracle SOAP environment should be set up with an endpoint of:
    http://127.0.0.1:8888/soap/servlet/soaprouter
    Then build your Web service and in your method add the SOAPContext parameter. Here is a simple method that should print out the remote IP, after casting to the OracleSOAPContext:
    public String sayHello( SOAPContext ctx, String test)
    OracleSOAPContext octx = (OracleSOAPContext)ctx;
    System.out.println("Remote address: " + octx.getRemoteAddress());
    return "Hello: " + test;
    For completeness, the dd file looks like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <isd:service
    id="mypackage3.Class1"
    xmlns:isd="http://xml.apache.org/xml-soap/deployment">
    <isd:provider
    type="java"
    methods="sayHello"
    scope="Request">
    <isd:java class="mypackage3.Class1" static="false"/>
    </isd:provider>
    <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
    </isd:service>
    Mike.

  • Ignore some fields while saving a Java class into XML

    Hi!
    I've seen in this forum that there is an easy way of saving Java classes to XML files using Castor. I want to save some Java classes into XML, but not all the fields of the class. For example, I want to ignore all lists. Is there any easy way to do something like this:
    class Java2XML{
              public static void makeXML(Object object)
                        for all fields in object
                                  if field extends List, ignore
                                  else, include field in XML
    }Thanks in advance!

    You can add a managed bean by:
    - manually adding a definition in the faces config source tab.
    - creating a bean in the overview tab of the faces-config editor.
    So yes, you can edit the faces-config manually.
    I hope this answer your question,
    Regards,
    Koen Verhulst

  • Customization of generated Java class names

    Hi,
    I could not find any documentation on how to customize names of the generated
    Java classes/types. In Castor, you can do it with a simple mapping, is it possible
    with XMLBeans?
    Thanks,
    Marina

    Hi, Steve,
    thanks for your reply!
    I have tried to add an xsdconfig file, but when I run the following command:
    C:\Java\XMLBeans\xkit\bin\scomp -src . -srconly order.xsd
    with the xsdconfig file in the current directory , nothing happens - the xsdconfig
    file is ignored and Java files are generated in exactly same way as they were
    without the xsdconfig file...
    Here is the content of my xsdconfig file - it is very simple, for test purposes:
    <xb:config xmlns:order="http://order"
    xmlns:xb="http://www.bea.com/2002/09/xbean/config">
    <xb:namespace uri="http://order">
    <xb:package>neptune.neptunelib</xb:package>
    </xb:namespace>
    <xb:qname name="order:order" javaname="OrderDO"/>
    <xb:qname name="order:shippingID" javaname="ShippingInfoDO"/>
    <xb:qname name="order:addressInfo" javaname="AddressInfoDO"/>
    <xb:qname name="order:destination" javaname="DestinationDO"/>
    </xb:config>
    I'm not sure about the namespace part - currently, my order.xsd has no namespace
    or URI assigned. I asked BEA's customer support about this and the answer was:
    'use anything, the URI does not matter'. Well, I did use "anything" but I'm not
    sure this is correct...
    Thanks,
    Marina
    "Steve Traut" <[email protected]> wrote:
    Marina -- You can do this by creating an xsdconfig file and including
    it
    when you compile your XSD files. The xsdconfig file maps schema types
    to
    generated Java type names.
    If you're using WebLogic Workshop, the following topic should give you
    what
    you need:
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/howdoi/howGuideXMLBeansTypeNaming.html
    If you're using Ant, I can provide a topic that will be available soon.
    Please send email if you'd like information on the Ant task.
    Steve
    "Marina Popova" <[email protected]> wrote in message
    news:3f8c468c$[email protected]..
    Hi,
    I could not find any documentation on how to customize names of thegenerated
    Java classes/types. In Castor, you can do it with a simple mapping,is it
    possible
    with XMLBeans?
    Thanks,
    Marina

  • Invoking java class

    HI ALL,
    i'm invoking a java class in fault handling framework(ora-java) but i'm getting the following error:
    "AnnotatedNoClassDefFoundError" has been thrown.
    Missing class: com.oracle.bpel.client.config.faultpolicy.sample (wrong name: sample)
         Dependent class: com.oracle.bpel.client.config.faultpolicy.sample
         Loader: oracle.bpel.common:10.1.3
         Code-Source: /D:/product/10.1.3.1/OracleAS_1/bpel/system/classes/
         Configuration: in /D:/product/10.1.3.1/OracleAS_1/j2ee/oc4j_soa/config/server.xml
    The missing class is not available from any code-source or loader in the system.
    i have placed the class file in oracleas_home/bpel/system/classes/com/oracle/bpel/client/config/faultpolicy/sample.class.
    help me in solving this problem.
    Thanks

    You must create a .jar file and place this file in the bpel classpath of the server.

  • Pjc and hindi not getting java class

    I am trying to implement a java class using hindi font .I have also configured formsweb.cfg file for jar file. I have placed the jar file under java directory in form60 on application server machine . below is produced the message on java console --
    Opening http://jbpeast/forms60java/oracle/forms/pjc/TextField/HindiPJC2k.class no proxy
    java.lang.ClassNotFoundException: oracle.forms.pjc.TextField.HindiPJC2k
         at sun.applet.AppletClassLoader.loadClass(Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
         at oracle.forms.handler.UICommon.instantiate(Compiled Code)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.TextFieldItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.handler.LogonDialog.actionPerformed(Unknown Source)
         at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at oracle.ewt.button.PushButton.activate(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton._processKeyPress(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Compiled Code)
         at java.awt.Container.processEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Compiled Code)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1574)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    I think it is not coorectly getting either class or font .
    I have also implemented one more java class which changes bgcolor of text box ( from tutorials on otn ) it is working fine.
    Please help me.

    Hi Frank
    Thanks for response. Mt formsweb.cfg is added with an entry
    [pjc]
    archive_jini=f60all_jinit.jar,HindiPJC2k.jar
    The jar file have been made by combining all the class files.
    But the message is comming .
    I use the URL
    http://server_name/dev60cgi/ifcgi60/?config=pjc&FORM=hindi_pjc.FMX
    all other forms like modcursor.fmx, keyfilter.fmx (available on oracle technet) are behaving well but this for is giving problems.
    I have copied the jar file is 806/form60/java directory .
    Please help me.
    Prashant

Maybe you are looking for

  • Error when Opening After Effects CS6 Trial

    Hey, When I go to open After Effects CS6 Trial I get an error saying "After Effects error: Crash in progress. Last logged message was: <956> <ae.blitpie> <2> Making New Context" and then I click ok and it says "After Effects can't continue: sorry, Af

  • Macbook Pro 10.6.8   Beeps 3 times upon start up.

    My Macbook Pro (4 GB RAM) - is beeping LOUDLY 3 times when I start up.  It has been performing poorly lately.  It seems to have trouble coming out of sleep.  It will just become unresponsive and have to restart.  I took it to Apple and they kept it o

  • Can we rename the system generated constraint_name as per our convenience ?

    I created a table by CREATE TABLE table_name AS (SELECT * FROM existing_table_name WHERE 1=2); and got the all constraints of the existing table with default names. I want to rename those constraints as per current table data. thank you in advance Ed

  • Access Denied Socket Permission Error using 3rdParty jar in webstart

    Hi, I am trying to create a multisocket in my application, and this app is downloaded through webstart, Following are the things I ve done, 1. I use two jnlp file, one mail jnlp file (say a.jnlp) and the other an extension jnlp file (a_ext.jnlp) whic

  • Exception while accessing deployed entity bean (CMP)

    Hi PSB for the exception i get when i try to access a delpoyed entity bean (CMP). If any of you have got this exception and fixed it or have any idea of how to fix it then please reply asap. thanks. java.lang.NullPointerException at com.netscape.serv