Using ejb service from a servlet in Weblogic 6.0sp1
anybody had sucess using ejb service from a servlet in Weblogic
6.0sp1 ?
It worked in Weblogic 6.0. But in 6.0sp1, the servlet startup always
return me "ClassCastException"
when narrowing a lookup of an ejbHome to the specific class.
Using this same ejb service from a standalone Java client wotked
fine in both versions.
Any body has aby clue ?
Help greatly appreciated
hyliu
The ejbc'ed jar needs to be in the CLASSPATH of the servlet server.
Gene
"Haiyang Liu" <[email protected]> wrote in message news:3ab2670c$[email protected]..
>
> anybody had sucess using ejb service from a servlet in Weblogic
> 6.0sp1 ?
>
> It worked in Weblogic 6.0. But in 6.0sp1, the servlet startup always
> return me "ClassCastException"
> when narrowing a lookup of an ejbHome to the specific class.
> Using this same ejb service from a standalone Java client wotked
> fine in both versions.
>
> Any body has aby clue ?
>
> Help greatly appreciated
>
> hyliu
>
Similar Messages
-
Hello,
I'm Calling an EJB from a SOA Composite Application using the EJB Binding based on Java Interface. I follow this example.
http://technology.amis.nl/blog/8142/calling-an-ejb-from-a-soa-composite-application-using-the-ejb-binding-based-on-java-interface
My EJB has security annotations, so how can i handle security when i call an ejb from a soa composite?
Thanks
Lore CarriThe ejbc'ed jar needs to be in the CLASSPATH of the servlet server.
Gene
"Haiyang Liu" <[email protected]> wrote in message news:3ab2670c$[email protected]..
>
> anybody had sucess using ejb service from a servlet in Weblogic
> 6.0sp1 ?
>
> It worked in Weblogic 6.0. But in 6.0sp1, the servlet startup always
> return me "ClassCastException"
> when narrowing a lookup of an ejbHome to the specific class.
> Using this same ejb service from a standalone Java client wotked
> fine in both versions.
>
> Any body has aby clue ?
>
> Help greatly appreciated
>
> hyliu
>
-
I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
Is their a way of using these services from within EJB's
I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
Thanks
SohitYou have classpath problems. Please post the classpath and the weblogic
classpath that you are using to start the server. In particular, make
sure that your ejb-jar is not found in either of these.
-- Rob
Sohit wadhwa wrote:
>
I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
Is their a way of using these services from within EJB's
I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
Thanks
Sohit -
HT5467 how can i use location services from my pc to find my lost ipod?
how can i use location services from my pc to find my lost ipod?
Find My iPod
http://www.apple.com/sg/icloud/features/find-my-iphone.html -
Using word/excel from java (client or weblogic server)
Hi everybody,
i want to use excel / word functionality from java in two different variants:
-> serverside
-> clientside
I tried the weblogic.comc and i got serveral classes but in the remote-package i got only a utitlity-class.
My knowlege about COM is rather bad.
Does anybody did this bevor and
-> can say me, if it is correct, that i only got a utility-class (so how will i use it from the client ?!)
-> has a example for using Excel / Word from Java in bea weblogic
-> has a example for using Excel / Word directly in a client (not via rmi)
Thanks
Ciao
SvenSven, This is a really bad idea. Why don't you tell me
what your trying to do and I wil surely give you a better alternative
JRadecki
"Sven Roesner" <[email protected]> wrote:
>
Hi everybody,
i want to use excel / word functionality from java in two different variants:
-> serverside
-> clientside
I tried the weblogic.comc and i got serveral classes but in the remote-package i got only a utitlity-class.
My knowlege about COM is rather bad.
Does anybody did this bevor and
-> can say me, if it is correct, that i only got a utility-class (so how will i use it from the client ?!)
-> has a example for using Excel / Word from Java in bea weblogic
-> has a example for using Excel / Word directly in a client (not via rmi)
Thanks
Ciao
Sven -
How to use EJB's from Servlets in 6.0
Hi,
I'm trying to get a reference to an ejb home in my servlet code.
The jar file is located in the /applications directory and is deployed
properly when weblogic startsup.
But I can't seem to get the servlet to work.
I get a 'java.lang.NoClassDefFoundError' that complains that the home
objects class can not be found.
Thanks in advance
Cagan
This is a "feature" of WL that I think is a shortcoming: the inability to marshal/unmarshal ejbc
generated stub-implementations across 2 WL servers.
Why don't you jar up ALL you ejbs in one jar; this way you only have to worry about 1 ejb stub jar
in your CLASSPATH.
Gene
"Cagan Senturk" <[email protected]> wrote in message news:[email protected]...
> Thanks Dana. I got it to work without having to place the home and remote
> classes in the WEB-INF/classes or anywhere else.
> I simply placed the ejb jar in the applications directory and added the jar
> to the classpath in the script that starts the server.
> Of course having to update the classpath everytime there is a new ejb jar is
> a pain.
>
> "Dana Jeffries" <[email protected]> wrote in message
> news:[email protected]...
> > Check out the ejb/basic/beanManaged example which has a servlet
> (originally named Servlet.java ;-)
> > that's an example of an servlet calling and EJB.
> >
> > (There's also a JSP example under the JSP examples).
> >
> > The ejb's home and remote classes need to either be in the WAR, in the
> WEB-INF/classes directory of
> > the default web app, or the servlet packaged in a WAR, and the WAR and
> ejb-jar packaged in the same
> > EAR.
> >
> > Just having the remote and home classes in the ejb-jar file isn't enough.
> They also need to be
> > available to the client which in this case is a servlet.
> >
> > Cagan Senturk wrote:
> >
> > > Hi,
> > > I'm trying to get a reference to an ejb home in my servlet code.
> > > The jar file is located in the /applications directory and is deployed
> > > properly when weblogic startsup.
> > > But I can't seem to get the servlet to work.
> > > I get a 'java.lang.NoClassDefFoundError' that complains that the home
> > > objects class can not be found.
> > > Thanks in advance
> > > Cagan
> >
>
>
-
Failed to use EJB's from startup class
Hi,
we use a startup class to set up some base services of our application.
The startup class must call some remote methods in a EJB. Unfortunately
a CLassCastException is thrown when we try to create the EJB by calling
the create method on its home interface:
Fr Nov 17 10:47:50 GMT+01:00 2000:<I> <WebLogicServer> Invoking
T3StartupDef ibs
startup ch.ebs.ibs.IBSStartup with {}
java.lang.ClassCastException: weblogic.t3.srvr.StartupThread
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
tHandler.java:34)
at
weblogic.rmi.extensions.BasicRequestDispatcher.dispatch(BasicRequestD
ispatcher.java:82)
at
weblogic.rmi.internal.ServerRequest.sendOneWay(ServerRequest.java:73)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:77
at
ch.ebs.ibs.ejb.SessionControllerEJBHomeImpl_WLStub.create(SessionCont
rollerEJBHomeImpl_WLStub.java:151)
at ch.ebs.ibs.IBSStartup.startup(IBSStartup.java:69)
at
weblogic.t3.srvr.StartupThread.runStartup(StartupThread.java:182)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:146)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
The same code works fine if we run it as client code (not in the startup
sequence).
Any idea?
Thanks PascalRegarding your problem and the remark you posted to my question in "Calling
EJBs from a thread in a startup class": It is possible to call methods of an
EJB from a startup class. I use this functionality to route messages from
JMS to my EJBs. From what you say, I assume that you are calling the EJB
from your startup method, which might be a problem, since WL is not
initialized at this point and does not accept any connections (this
obviously includes internal connections). You should wait for this phase to
finish and then use some other mechanism (e.g. a JMS message) to trigger
your startup class to invoke any home or remote methods on the EJB.
Looking at your stack trace, I am reminded of a very similar exception I
encountered when I was experimenting with WL a short while ago. I had put my
EJB jar file on WL's JAVA_CLASSPATH, just to see how the different
classloaders work. Of course I don't know if this has any relevance to your
configuration.
Andy
PS: The only exception to what I wrote in the first paragraph seems to be if
you start a new thread from the startup class. I still haven't managed to
call my EJB from this thread.
Pascal Rudin wrote:
Hi,
we use a startup class to set up some base services of our application.
The startup class must call some remote methods in a EJB. Unfortunately
a CLassCastException is thrown when we try to create the EJB by calling
the create method on its home interface:
Fr Nov 17 10:47:50 GMT+01:00 2000:<I> <WebLogicServer> Invoking
T3StartupDef ibs
startup ch.ebs.ibs.IBSStartup with {}
java.lang.ClassCastException: weblogic.t3.srvr.StartupThread
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
tHandler.java:34)
at
weblogic.rmi.extensions.BasicRequestDispatcher.dispatch(BasicRequestD
ispatcher.java:82)
at
weblogic.rmi.internal.ServerRequest.sendOneWay(ServerRequest.java:73)
at
weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:77
at
ch.ebs.ibs.ejb.SessionControllerEJBHomeImpl_WLStub.create(SessionCont
rollerEJBHomeImpl_WLStub.java:151)
at ch.ebs.ibs.IBSStartup.startup(IBSStartup.java:69)
at
weblogic.t3.srvr.StartupThread.runStartup(StartupThread.java:182)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:146)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
The same code works fine if we run it as client code (not in the startup
sequence).
Any idea?
Thanks Pascal -
Can not find my EJB's from my Servlet
Hi
I am new to EJB and am trying to get a Servlet to call some sessionless EJB beans. I have got it working in JDeveloper but when I deploy it to orion application server I keep getting a javax.naming.NameNotFoundException exception throw from the Servlet when it tries to find the first EJB.
The code in the Servlet is:
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "jewels");
// env.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
env.put(Context.PROVIDER_URL, "ormi://localhost:23791/dev");
Context ctx = new InitialContext(env);
System.out.println("Getting mapping class ejb");
//mapping
ExponentMappingServiceHome mappingHome = (ExponentMappingServiceHome)ctx.lookup("ExponentMappingServiceHome");
ExponentMappingService mapping = mappingHome.create();
My EJB xml looks like this:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>ExponentMappingService</display-name>
<ejb-name>ExponentMappingService</ejb-name>
<home>com.exponent.ejb.service.map.ExponentMappingServiceHome</home>
<remote>com.exponent.ejb.service.map.ExponentMappingService</remote>
<ejb-class>com.exponent.ejb.service.map.ExponentMappingServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>ExponentMappingViewsService</display-name>
<ejb-name>ExponentMappingViewsService</ejb-name>
<home>com.exponent.ejb.service.map.ExponentMappingViewsServiceHome</home>
<remote>com.exponent.ejb.service.map.ExponentMappingViewsService</remote>
<ejb-class>com.exponent.ejb.service.map.ExponentMappingViewsServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>FalconService</display-name>
<ejb-name>FalconService</ejb-name>
<home>com.exponent.ejb.service.FalconServiceHome</home>
<remote>com.exponent.ejb.service.FalconService</remote>
<ejb-class>com.exponent.ejb.service.FalconServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
I have been trying for a while to get the JNDI naming right but everything I try gets the above error. Any help would be great.
Thanks
AndreYou have to lookup for "ExponentMappingService", and not "ExponentMappingServiceHome"
The name you give in the <ejb-name> tag in ejb-jar.xml is the JNDI name of the EJB. This is the name u have to look up. -
Error while using external service from application service
Hello All,
I have exposed webservice from a CAF project that i am importing as external service in another CAF project. Now i am using application service to directly call the external service. following is the code in my application service:
Ns6_getCountryByCode__R inp = new Ns6_getCountryByCode__R();
inp.setNs6_countryCode(countryCode);
try {
HRServicesWSVi__DocumentLocal bn = this.getHRServicesWSVi__Document();
Ns6_getCountryByCode__RResponse result = bn.getCountryByCode__R(inp);
retValue.setCountryCode(result.getNs6_Response().getNs3_countryCode());
retValue.setCountryName(result.getNs6_Response().getNs3_countryName());
}catch(Exception e){
throw new ServiceException(e);
I am getting the following error
ERROR. Problem in server response: [Bad Request].:
What could be the problem ? Thanks in advance
Regards,
Ashutosh RastogiHello,
It's always a good idea to check the log file. In many cases you find hints what the reason for the error could be. The log file can be found here: <root>usrsap<SID>JC30j2eeclusterserver0logdefaultTrace.<xy>.trc where <root> is probably c:, SID something like F33, F41, ... and <xy> a number 0, 1, .... -> the highest number is the last and therefore most youngest log file. Please check out this file.
Another very common (but trivial) error is that you forgot to specify the URL and the end point location of your Web Service in CAF's config tool. This tutorial explains this beginning on page 20 <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370">Using a Web Service as External Service</a>.
Regards,
Jan -
Invoking a web service from dynamic client in weblogic 7
Is it possible to invoke a webservice from dynamic client in weblogic 7. Because i tried and it doesn't work. But it works with WL 8.1
I don't see any samples on the net for weblogic 7.Hello rss,
If you want to invoke a web service from a JCD you will have to build the SOAP message using JAX-RPC or AXIS and then programmatically creat an HTTP connection.
Or you can leverage the HTTP(S) eWay and then you only have to build the SOAP message.
Or use eInsight. You can import a WSDL into eInsight and eInsight will offer you a business process Activity to invoke the web service operations defined in the WSDL. -
How to invoke a OSB Proxy Service from a Servlet??
Hi!!
I'm a begginer in OSB, and right now I have a OSB configuration in production mode. So, using the console test it's very easy to test (doh) my configuration. But now, I have to make a stress test and after read a lot of documentation I did'nt found the way to do that. So I'm trying to do it by using a Servlet, a doPost method in especific, but after a lot of time I can't invoke the proxy service.
What is the right way to use a proxy service in production mode??
How can I call it from my servlet??
How can I send an xml (or any other object, file, text...) as a Request??
Help please, thank you...
Edited by: user12116998 on 18-mar-2010 12:40If you have your proxy service published as http/soap, then I recommend you to use SoapUI to test it. It can help you with stress test too.
-
How to call a portal service from a servlet
Hello all.
I have a functioning portal service that I would like to call from a servlet.
When I try to do so, I get a ClassCastException when I do this (on line two):
IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
IDocumentPersistence docPer = (IDocumentPersistence) runtimeResources.getService(IDocumentPersistence.KEY);
However if I do the following I can get a generic IService and use reflection to invoke the method (in the IDocumentPersistence interface) that I want to invoke:
IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
com.sapportals.portal.prt.service.IService aService = (com.sapportals.portal.prt.service.IService) runtimeResources.getService(IDocumentPersistence.KEY);
There must be a better way to use portal services (hopefully like scenario one above) in servlets. In web dynpro you can use portal services and cast them to the correct type. What am I missing?Hi Kim,
how did you integrate the references to your Portal Service Interface into your web application?
You should do this using the references in your application-j2ee-engine.xml, did you do this? It might be a problem with the classloader otherwise.
The way you are calling portal services does work normally, however it is not the recommended way as it is documented in the SAP documentation.
Please check the SAP documentation on how to access a portal service from a j2ee app:
http://help.sap.com/saphelp_nw70/helpdata/EN/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
Best regards,
Stefan Brauneis -
Error in Calling Weblogic EJB's from JRun servlet engine
I am using servlets in Jrun engines to callEJB's running on a WebLogic Server. I have included "c:\weblogic\classes" in Jrun classpath. But i am getting the following error. Does any body have any idea what this may be??javax.servlet.ServletException: com/sun/java/util/collections/ArrayListjava.lang.NoClassDefFoundError: com/sun/java/util/collections/ArrayListat weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:193)at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:148)at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)at javax.naming.InitialContext.init(InitialContext.java:222)at javax.naming.InitialContext.(InitialContext.java:198)
First off, wrong forum section.
Check if your JNDI name is correctly placed for the bean you're calling -- check j2ee-engine.xml for that. Check the EJB container if the ear file you deployed is there and updated.
Try placing "localejbs/JNDI name" on your lookup parameter.
Regards,
Jan -
Error in deploying a web service from jdeveloper 10 to weblogic 10
hi , I succeed to create connexiion to weblogic 10 from jdeveloper 10 but in deploying my service i have this Exception:
---- Deployment started. ---- 1 mai 2009 09:21:45
Target platform is WebLogic Server 9.x (webAppli).
Checking weblogic.xml for completeness...
Wrote WAR file to D:\jdevstudio10134\jdev\mywork\Soustraction\SoustarctionWS\deploy\WebServices.war
Wrote EAR file to D:\jdevstudio10134\jdev\mywork\Soustraction\SoustarctionWS\deploy\Soustraction-SoustarctionWS-WS.ear
D:\jdevstudio10134\jdk\jre\bin\javaw.exe -classpath C:\bea\wlserver_10.3\server\lib\wlclient.jar weblogic.Deployer -adminurl http://aymen:7001 -user weblogic -password **** -debug -verbose -deploy -upload -source D:\jdevstudio10134\jdev\mywork\Soustraction\SoustarctionWS\deploy\Soustraction-SoustarctionWS-WS.ear -name Soustraction-SoustarctionWS-WS
weblogic.Deployer invoked with options: -adminurl http://aymen:7001 -user weblogic -debug -verbose -deploy -upload -source D:\jdevstudio10134\jdev\mywork\Soustraction\SoustarctionWS\deploy\Soustraction-SoustarctionWS-WS.ear -name Soustraction-SoustarctionWS-WS
WebLogicDeploymentManagerImpl.<init>():103 : Constructing DeploymentManager for J2EE version V1_4 deployments
WebLogicDeploymentManagerImpl.getNewConnection():146 : Connecting to admin server at aymen:7001, as user weblogic
ServerConnectionImpl.getEnvironment():282 : setting environment
ServerConnectionImpl.getEnvironment():285 : getting context using http://aymen:7001
ServerConnectionImpl.close():328 : Closing DM connection
ServerConnectionImpl.close():348 : Unregistered all listeners
weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 'http://aymen:7001': Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'aymen' and port: '7001' a WebLogic Server?; No available router to destination. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:306)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:143)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:93)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.Deployer.run(Deployer.java:70)
at weblogic.Deployer.main(Deployer.java:54)
Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:425)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:287)
... 6 more
Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:142)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
... 9 more
Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: http://aymen:7001: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'aymen' and port: '7001' a WebLogic Server?; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:48)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:739)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:343)
at weblogic.jndi.Environment.getContext(Environment.java:263)
at weblogic.jndi.Environment.getInitialContext(Environment.java:167)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:324)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:296)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:140)
... 11 more
Caused by: java.net.ConnectException: http://aymen:7001: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'aymen' and port: '7001' a WebLogic Server?; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:199)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:137)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:324)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:319)
... 16 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'aymen' and port: '7001' a WebLogic Server?; No available router to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:465)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:316)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:255)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:199)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:220)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:187)
... 21 more
**** weblogic.deploy returned with non-zero exit status: 1
**** weblogic.deploy returned with non-zero exit status: 1
Elapsed time for deployment: 2 seconds
#### Deployment incomplete. #### 1 mai 2009 09:21:47
please someone help me.
thank you
aymenHi Wenhao,
I did face something similar ....but when i tried it again...it worked..
In case it does not then before u try to start the procedure to dwnld the Enterprise service wsdl....
uncheck the wsdl validator check box in NWDS...
I suggest u first try to consume the wsdl by importing it locally...
just follow this blog by Boris step by step..
/people/boris.mohr/blog/2007/01/23/how-to-guide-for-consuming-a-web-service-with-a-standalone-client-using-sap-netweaver-application-server-javatm-ee-5-edition
Once u r able to do this..then u can try to consume it from service registry
Edited by: Mohd Tauseef Ibrahim on Jun 26, 2008 2:28 PM
Edited by: Mohd Tauseef Ibrahim on Jun 26, 2008 2:30 PM -
Consuming a web service from a Servlet on OC4J
In my web application, I have a servlet, and that servlet calls a webservice running on an external server. To connect to the web service, I am using a java proxy class that was generated using the WebServicesAssembler tool (the webservice runs on an OC4J server). When I use the proxy in a stand alone application, it works fine. Unfortunately, when I try to use it in my servlet, I get a SOAP Exception. This is some information I get from my log.
2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
Message: Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /webservices/StationService/ not found on this server</BODY></HTML>
2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO [com.georss.GeoRss:190] - Cause: null
2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
Localized Message: Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /webservices/StationService/ not found on this server</BODY></HTML>
2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
Fault Code: SOAP-ENV:Protocol
So from the error message in the Localized message, it seems like the application is receiving a 404 error. In the proxy stub code, I know the url for the service is correct, so I dont know why it is not working. Any idea?
Thanks.
Message was edited by:
MynameisbtI am sure that the URL is right because I can use the same client class for the web service in a stand alone application. I did not change the endpoint URL in the client at all. The client was generated by OC4J's web services assembler tool. Also, the same URL will work in a browser.
Does OC4J require some sort of deployment descriptor to connect to an external web service? My web application only uses a .war file and it is packaged in an .ear file. It is a J2EE 1.3 application.
this is what I have in my web.xml file:
<web-app>
<servlet>
<servlet-name>myServlet</servlet-name>
<display-name>myServlet</display-name>
<description>description</description>
<servlet-class>com.controller</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myServlet</servlet-name>
<url-pattern>/servlet/myServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
In my web.xml descriptor, do I need to add anything related to the web service i am trying to access?
Message was edited by:
Mynameisbt
Maybe you are looking for
-
HP Photosmart D5360 Printer stopped working with MAC once upgrade to SL?
We have a networked (not wireless printer) HP Photosmart D5360 Printer, and it connected to a Windows PC, Under Leopard we were able to print via Network sharing the printer, however since we have updated to Snow Leopard we can no longer see or print
-
How do you delete files in Pages?
How do you delete a document/file in Pages?
-
How do you integrate a column with respect to another column
I have two columns of data, one is time and the other is velocity. I want to be able to integrate velocity with respect to time, but I can not find a function which will let me do this. Preferably, I'd like to do a cumulative trapezoidal integration,
-
Scripting Illustrator actions, incorporating calls to Excel
Hello all, I need some help... I am building a series of logos — based on word strings — using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file. Normally for one or two iterations of the process,
-
Initial hookup of IPS-SSM in an ASA to a switch
I have an ASA-5520 with a IPS-SSM-40. I configured the IPS control port to an ip address on the ASA's inside network subnet and connected it to the same switch as the ASA's inside port is connected to. I am using a single context.