J2ee naming services with JDeveloper
I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs
One solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
In your case, the 'Task' class may have some issue.
Hope it helps,
-eric
Similar Messages
-
Debugging a Web service with JDeveloper 902
JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
However, after deploying a Web service, even its screen output is hidden.
My problem is how to debug a Web service with JDeveloper?JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
However, after deploying a Web service, even its screen output is hidden.
My problem is how to debug a Web service with JDeveloper? -
Can you use CORBA Naming Service with javax.naming.event.EventContext?
Can you use CORBA Naming Service with javax.naming.event.EventContext?
It seems like it doesn't work. When I try to do something like
EventContext eCtx_ = (EventContext)namingCtx_.lookup("");
I'm using JacORB's naming service.
I just want to clarify that I cannot or can use javax.naming.event.EventContext with CORBA Naming Service.Can anyone tell me if it is doable or not doable.
I looked at the COSNaming SPI, and it seems like it doesn't implement javax.naming.event.EventContext.
Am I correct or not? -
Web services with JDeveloper - serialization error
Dear all,
I have an issue with web services created with JDeveloper 10.1.3.2.0.
Namely, this is what I do:
1. I've created some TopLink classes from tables; one of this classes is called Task (and it's located in a package called "integration")
2. I've created another class, called Integration, where I use these TopLink classes; in this new class I have a method called getTasksStatus, which returns an ArrayList containing Task objects
3. I've created a web service from this class (Integration) by right-clicking on the class name in Applications Navigator and choosing Create J2EE Web Service.
When I call the method getTasksStatus from the test web service (endpoint),
I get this error:
Oct 8, 2007 7:14:30 PM oracle.webservices.service
SEVERE: serialization error: no serializer is registered for (class integration.Task, null) serialization error: no serializer is registered for (class integration.Task, null)
When I call a method which returns a primitive type, everything is fine.
I understand the problem, but I don't know a solution yet. Could you please help ?
Thank you,
Best regards,
SorinOne solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
In your case, the 'Task' class may have some issue.
Hope it helps,
-eric -
J2ee naming services and Oracle 9iAS
I am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs
nullI am trying to use the JNDI services of the j2ee specs with JDeveloper and the Oracle Application server (9iAs). Doing this we have the problem that JDeveloper do not support the java.naming package. We have added the package to JDeveloper but we do not know ik Oracle 9iAs will work with this package added.
Can someone give me some information about the use of JNDI within JDeveloper and Oracle 9iAs
null -
Web services with Jdeveloper using weblogic as server
Hi,
I try to test creating PL/SQL web services by using a connection hosted by weblogic server instead of OC4J. The problem is what I try to publish a package of the database in the second stage when it asks for the connection to use, in the list I don't found the connection I create to weblogic . It presents as choice only connections used the server OC4J.
I do not Know if it is possible to publish a package as web service by using weblogic server connection, and how to do it.
can anyone help me please .
NawalWeb services can only be published to BEA if you install Apache SOAP on BEA and use the Apache SOAP option of JDeveloper. The J2EE Web Services implementation framework is specific to Oracle9iAS.
The PL/SQL Web Services server implementation is based on the J2EE Web Services option and as a result is not really portable to BEA.
To publish a PL/SQL Web service on BEA with JDeveloper you would have to write the Java wrapper code to invoke the stored procedure using standard JDBC and then publish that Java class as a Web service using Apache SOAP. Then if you had Apache SOAP installed on BEA you would be set.
Portability of Web services implementations is a big feature coming with JAX-RPC - currently what most vendors have is interoperability between implementations because of things like SOAPBuilders and WS-I. When JAX-RPC becomes part of J2EE 1.4 roughly in June and vendors start putting out implementations on it you should get closer to portability.
In the meantime, the easiest way to get portability is to use the same SOAP server on both servers - Apache SOAP is a good example.
Hope this helps.
Mike -
JNDI params for (default) J2EE naming service.
Dear All,
I am trying to get a client program to access a session bean using JNDI. Could anyone tell me how the naming context should be set up (i.e. what -D command line params to use).
Assuming the server Sun's J2EE and beans are deployed using deploy tool;
What parameters would be required to do a lookup on the naming service?
i.e.
java.naming.factory.initial=???
java.naming.provider=???
any others?
The reason for this is so that EJB clients can be installed WITHOUT having to also install J2SDKEE too.
In principle it should be possible to do the lookup using only only javax.naming and javax.rmi. (Which are in the standard SDK).
Can anyone help???
JNDI Code...
/* What naming params will make this lookup */
/* on an EJB running within J2EE */
/* work?? */
Context context = new InitialContext();
Object obj = context.lookup ("crs472/SimpleConverter");
// get a reference to the home interface
CurrencyConverterHome converterHome =
(CurrencyConverterHome)PortableRemoteObject.narrow(obj,
CurrencyConverterHome.class);
// create an instance of the currency converter EJB
converter = converterHome.create();
System.out.println("Got the home interface OK.");
// Start calling methods...
Regards,
Jeremy Townsonhi
u have to pass a properties object or a hashtable while creating a IntialContext object
this properties obj or hashtable should be having values for these keys
javax.naming.Context.INITIAL_CONTEXT_FACTORY -class name provided by the naming service")
for websphere its - com.ibm.ejs.ns.jndi.CNInitialContextFactory
Similarly for weblogic , Sun J2EE
the other key will u have to provide is the
javax.naming.Context.PROVIDER_URL - ip address along with the port on whcih the naming service is listening for the request
then u passs this properties obj or the hashtable to the
Context context = new InitialContext(props/hash);
regards -
Hi,
When I publish a PL/SQL package as a web service in J2EE 1.4 (Jax-RPC) Web Service version get this error:
oracle.j2ee.ws.common.tools.api.ValidationException: Error in database webservices assembly
at oracle.j2ee.ws.tools.wsa.db.WSADBPlugin.processDBEndpoint(WSADBPlugin.java:329)
at oracle.j2ee.ws.tools.wsa.Util.processDBEndpoint(Util.java:887)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.preparePLSQLPortTypes(PLSQLGenerator.java:734)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.doGeneration(PLSQLGenerator.java:233)
at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
GRAVE: JPublisher error: please check assembler settings, database connection and database schema. Use debug=true for details.
and when use J2EE 1.3 (Oracle) version WEb Service get this error:
java.lang.NullPointerException
at oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(WrapperClassGenerator.java:262)
at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run(SPWebServiceGenerator.java:285)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
..... Is this a BUG????
please help!OK, This is the PL/SQL package:
Function:
FUNCTION Obtener_paises RETURN res_webservice AS
v_respuesta res_webservice;
i PLS_INTEGER:=1;
CURSOR C_paises IS
SELECT cpais, tpais
FROM paises
ORDER BY tpais;
BEGIN
v_respuesta := res_webservice(null,null);
v_respuesta.error := res_error(null,null,null);
v_respuesta.error.cerror := 0;
v_respuesta.error.cerror_ora := 0;
v_respuesta.error.terror := null;
v_respuesta.datos := res_datos ();
FOR v_pais IN C_paises LOOP
v_respuesta.datos.extend;
v_respuesta.datos(i) := reg_datos(null,null);
v_respuesta.datos(i).codigo := v_pais.cpais;
v_respuesta.datos(i).descripcion := v_pais.tpais;
i := i + 1;
END LOOP;
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:0');
RETURN v_respuesta;
EXCEPTION
WHEN OTHERS THEN
v_respuesta.error.cerror := 1;
v_respuesta.error.cerror_ora := SQLCODE;
v_respuesta.error.terror := substr(SQLERRM,1,80);
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:1 '||substr(SQLERRM,1,120));
RETURN v_respuesta;
END Obtener_paises;
TYPES USED:
CREATE OR REPLACE
TYPE res_webservice AS OBJECT (error res_error, datos res_datos);
CREATE OR REPLACE
TYPE res_error AS OBJECT (cerror NUMBER(1), cerror_ora VARCHAR2(12), terror VARCHAR2(80));
CREATE OR REPLACE
TYPE res_datos AS TABLE OF reg_datos;
CREATE OR REPLACE
TYPE reg_datos AS OBJECT(codigo VARCHAR2(12), descripcion VARCHAR2(150));
Thanks in advanced...
Could happen this bacause of these defined types??? -
How to use ComplexType in Web Services with Jdeveloper
I've look an article which says:
If the parameter is created as a JavaBean that implements the java.io.Serializable interface and exposes all of its properties using the accessor style of getX and setX, Oracle Application Server will handle the XML serialization and deserialization automatically.
but when I use jdeveloper to create a web Service it only comes up with the warning:
Method addCourse:the following parameter types do not have an XML Schema mapping and/or serializer specified:
mypackage.CourseJavaBean
my code is:
package whut.mypackage;
import java.io.Serializable;
public class CourseJavaBean implements SerializableHi Dugu,
Can you give the link to the specific article and the version of JDeveloper you are using to help you further?
One thing to keep in mind is that the accessors must be public - using package access (no modifier) is not going to work.
Hope this helps,
Eric -
Consuming web services with JDeveloper
Hi everyone, Im trying to consume a web service from an Oracle database 9.2.0.6, which has Java 1.3.1. I started using JDeveloper 10.1.2 with sdk 1.4, but when ever I tried to deploy into the database a bunch of libraries had to be pointed in order to successfully load it into the database, and besides it never worked.
I assumed that it was for the java versions, since in the database I have an older one. I then downloaded java 1.3.1 in my PC and when I compiled my code (defining a 1.3.1 profile before to point to javaw in 1.3.1 version) but when I tried to execute I get the error (Unsupported major.minor version 48.0). I read that this happens according to the VM version.
I decided to move then to JDeveloper 9i, but when creating my stub and uploading it to the database, it keeps asking to add libraries which some of them I don't know where are (oracle/bali, oracle/jsp..etc)
What do I need to generate my stub correctly and then deploying it to database? What versions for Jdev and Java SDK do I need to get it working correctly?One solution to this problem is to make sure that the complex type you are using in yous service interface do implement the JAVA Bean as per the spec (at least Oracle's interpretation of it).
You need to have getter/setter for all members and you need to have an empty ctor() to create new instances of your objects. In some cases, the design time let you get by, but the runtime fails in the code generation.
In your case, the 'Task' class may have some issue.
Hope it helps,
-eric -
Integration of custom identity services with JDeveloper BPEL designer
Hi,
I'd like to know if a custom user repository plugin will cause the 'Identity Lookup Dialog' (Step 6 of Human Workflow Wizard to generate a user task) to utilize the list of users and groups from a third party provider, when used as the Custom Identity Service provider.
I'd like to have the custom list of users and groups at 'design time' of the BPEL process itself, as well as process runtime. Is this possible?
This is with respect to both BPEL PM v10.2.0.2 and v 10.1.3.1.0.
Regards,
Vineetok, thank you for the reply.
But the installation of the Oracle BPEL Process Manger for Developers which includes the JDeveloper and the BPEL Designer doesn't come with 10.1.3.1.0?
I have to install the JDeveloper and the BPEL Process Manager seperate?
Thx -
Deploy J2EE Web Service with otherwise than SUN1AS
Right now i have a webservice up and running on a Sun1 that comes with J2EE1.4 tutorial.
But if i try to deploy the war to other AS (say OC4J), saving the web.xml transformed to 2.3, the call to this WS fails because it says the Servlet is not a Servlet (wich is quite right). So, what is going on?
Can't I deploy a WAR containing a WS generated with deploytool to other AS?
Thanks and thanks again,
Mariano.Things I've learnt these days.
1-) J2EE is still too new for many Application Servers.
2-) Developing web services is a tough, long way to go.
I finally realized war's containing web services are not that portable at all.
I had to download Jdev's 10g preview in order to deploy 1 miserable JAX-RPC web service in OC4J.
And I still can't return a java.util.HashMap in the service's response...not to mention trying to add its mapping in JDev's web service creating process...
So, hold still gentleman, for it's rough.
Thanks,
Mariano. -
Calling a Axis2 Secure Web Service with JDeveloper 11g
We are attempting call a Blackboard (Axis2) web service using Oracle JDeveloper 11g. We are currently unable to generate the security header required, could anyone please point me in the right direction?
I have following the following steps highlighting my issue. What steps might I be missing? Should I have created a keystore? Should I implement this with the metro stack? Any help or suggestions to go in a different direction would be greatly appreciated.
1. Install JDeveloper 11.1.1.5.0 (accept defaults)
2. Open JDeveloper
3. Create a Project by selecting File > New > Generic Project > Finish
4. Right-click newly created project and select New
a. Select Web Services in the Categories
b. Select Web Service Proxy, then Next
c. Next
d. Select JAX-WS Style, then Next
e. Enter http://gpstc.blackboard.com/webapps/ws/services/Context.WS?wsdl for the WSDL Document URL, then Next
f. Next
g. Remove “:80” from the Endpoint URL in each row, the first row should be http://gpstc.blackboard.com/webapps/ws/services/Context.WS, then Next
h. Next
i. I don’t see an option for WSSOAP12Binding which this webservice utilizes, so I selected “oracle/wss11_username_token_with_message_protection_client_policy”
j. Next
k. Finish
5. As a test, add the following code after “// Add your code to call the desired methods.”
GetServerVersionResponse myv = new GetServerVersionResponse();
myv = contextWSPortType.getServerVersion(new GetServerVersion());
System.out.println(myv.toString());
6. Run the Project
7. Received the following exception “Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: WSDoAllReceiver: Incoming message does not contain required Security header"
Currently running JDeveloper 11g with Oracle WebLogic Server 11gR1
Attempting to connect to Blackboard, Release 9.1.50119.0
Thanks, Adam HamHi,
Did you configure the Axis2 in Jdeveloper?
Best Regards
Sunny -
JAX-WS PL/SQL Web Service with JDeveloper (Weblogic problem)
Hello,
does anyone know how to create a JAX-WS webservice based on a pl-sql package using JDeveloper? Maybe it is possible with a newer version of JDeveloper 11.1.2.3, currently I'm using 11.1.1.6 which only offers a JAX-RPC for PlSql Web services.
I'm facing a problem right now trying to deploy an jax-rpc web service on Weblogic 10.3.4. Actually it seems to be an WebLogic problem because weblogic doesn't support the older standard (JAX-RPC). So I've extended the weblogic domain using Fusion Middleware Configuration Wizard like described for example here . Unfortunately it doesn't help. Deploying my applicaiton on a forms11g (11.1.1.4) domain (which goes hand in hand with the weblogic domain (?)) is successful. But anyway I can't call the WSDL or test the web service using weblogic console. Other services (jax-ws) work without any problem on the same forms domain.
I would appreciate any hint, how to automatically produce an jax-ws web service from an plsql package or how to run a jax-rpc web service on weblogic 10.3.4. It's Weblogic Basic Server actually, but I'm of the opinion it doesn't play a role in my case.
Thank you in advance for your hints.
Kind regards,
Anton
Edit: I would appreciate any hint how to check if a weblogic domain supports jax-rpc (if extended correctly). Thanks.We can generate jaxws from 11.1.2.0 onwards using This is now provided by the TopLink web service provider builder, which can be via the TopLink DBWS provider wizard from JDeveloper since the 11.1.2.0.0 release
1.4.4 Database Web Services (DBWS)
http://docs.oracle.com/cd/E23943_01/doc.1111/e26045/general.htm#CHDIEEHG
Hope that heps
Regards,
Sunil P -
Read web service with JDeveloper
I have web service from AJPES, but i have problem how to read it. I search for good how to but i can not find it. Does anyone know any good how to for reading web service and manipulate with it?
regards
Mitjahttp://www.oracle.com/technology/obe/obe11jdev/ps1/webservices/ws.html
Maybe you are looking for
-
Language problems in Dreamweaver MX 2004
Hi guys, Im using dreamweaver MX 2004 to create a new web site design. Im copying from the old web site to the new web sitre the wording. Everything looks perfect. Im saving it, closing dreamweaver and then open it again.; When im opening it again th
-
"Unable to send Messages" error?
Within the Messages app on my Galaxy S5 I'm getting an error message stating "Unable to send messages" on the space I would type in my text. How do I fix this?
-
Time Machine through Belkin Wirelles Router
I have connected my External HDD to MacbookPro13" thro USB and clicked Time machine. It asked to permission to format and i did "yes" to proceed with back-up. After back up complete, I connected the hard drive to the USB port in my BelkinN+ wireless
-
059H136 under construction for how much longer?
Does anyone know how much longer would belle be under construction for product code 059H136??
-
Error message : B2 050: Change pointer ID already exists
Hi Expert, Now , in our one client, whenever the user save any change, the system will popup one screen " Express document "Update was terminated" received from author " XXXXXX " The error message is " B2 050: Change pointer ID already exists " Actua