C++ Client using Visibroker to talk to Weblogic 7.0 EJB
Error when trying to have a C++ Client use the Visibroker ORB talk to a Weblogic
7.0 EJB. This happens even after I add: DefaultMinorVersion="1" to the config.xml's
IIOP element.
The error produced is:
Exception: Exception: CORBA::CODESET_INCOMPATIBLE
Minor: 1330446336
Completion Status: NO
and happens when the client uses the home interface to create an instance.
Thanks in advance for any advise.
Alex
"Alex" <[email protected]> writes:
Although Visibroker 5.02 does support codeset negotiation and proper
encoding under GIOP 1.2 (previous versions did not), it still has a
bug wrt negotiation of standard string codesets. If you read the
example notes
(samples/examples/iiop/ejb/stateless/cppclient/package-summary.html)
you will see this:
Visibroker 5.0
You may now also build this example with visibroker 5.0. to do so, you must make the following changes from the instructions below:
1.You need to specify utf-16/iso-8859-1 as the default native codesets. Change your config.xml within the Server mbean to include the
following:
<Server> <IIOP DefaultCharCodeset="iso-8859-1" DefaultWideCharCodeset="utf-16" Name="myserver"/>
</Server>
2.Do not use GIOP 1.1, and do not use the DefaultMinorVersion entry in your config.xml, this gets specified in the step below.
3.When running the client you need to use a full corbaloc url (Note the '1.2', which specifies GIOP version. Change:
Client -ORBInitRef NameService=iioploc://localhost:7001/NameService
to:
Client -ORBInitRef NameService=corbaloc:iiop:1.2@localhost:7001/NameService
andy
Forgot to mention, I am using Visibroker 5.02.
"Alex" <[email protected]> wrote:
Error when trying to have a C++ Client use the Visibroker ORB talk to
a Weblogic
7.0 EJB. This happens even after I add: DefaultMinorVersion="1" to the
config.xml's
IIOP element.
The error produced is:
Exception: Exception: CORBA::CODESET_INCOMPATIBLE
Minor: 1330446336
Completion Status: NO
and happens when the client uses the home interface to create an instance.
Thanks in advance for any advise.
Alex
Similar Messages
-
Weblogic 5.1 jsp vs. weblogic 6.1 ejb
Hello,
Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
a web service published on weblogic 6.1 via GLUE 2.3?
Thanks.Hello Shane,
See http://e-docs.bea.com/wls/docs61///////interop/interop.html
Regards
Stephane
Shane Yan wrote:
> Hello,
>
> Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
> a web service published on weblogic 6.1 via GLUE 2.3?
>
> Thanks.
-
Memory leak in a client using EJBs deployed in a Bea Weblogic 10.0.0 cluste
Hi all,
We are having a memory leak in a client using stateless EJBs deployed in cluster. The client is a Tomcat 6.0.18 with java 6 but it is reproduced using Tomcat 5 with java 5. The client is calling a Weblogic Server 10.0 making
calls to an EJB deployed in cluster that has two instances installed in two different machines.
The client works fine if we shutdown one of the server instances and so when the client is using only one instance.
Resuming the environment:
Client Side:
1 HP-Itanium machine with HP-UX.
1 Tomcat 6 with java 6 (reproduced with java 5)
Bea Weblogic client (wlclient.jar) for Weblogic 10.0.0
Server Side:
2 HP-Itanium machines with HP-UX
Bea Weblogic Server 10.0.0 installed in both machines
An unique domain
Two Bea instances (one per machines) associated to a Bea Cluster
EJBs deployed in both instances
We have monitored the memory consumed in Tomcat and we have noticed that the VM memory PS OLD GEN grows up permanently when we make tests having the two server side Bea Instances up. We have extended
the memory VM parameters in Tomcat client till 1G and it's only a way to delay the end: the free memory is empty, the GC is not able to free no more byte and the CPU is 100% consumed by the GC work. At the end Tomcat Client
doesn't accept more http petitions and must be restarted.
Besides, we have studied the VM memory in Tomcat using jmap and importing it using Eclipse Memory Analyzer. We have seen some strange memory blocks of several Mbytes that are always growing up and that are stored
under data structures in the package com.sun.corba:
com.sun.corba.se.impl.legacy.connection.SocketFactoryConnectionImpl (4.5Mb)
|
-> com.sun.corba.se.impl.transport.CorbaResponseWaitingRoomImpl
|
-> java.util.Hashtable
|
-> java.util.Hashtable$Entry
|
-> java.util.Hashtable$Entry
-> java.util.Hashtable$Entry
-> java.util.Hashtable$Entry
Has anybody any idea about this problem?
Thanks in advance.Hi all,
We are having a memory leak in a client using stateless EJBs deployed in cluster. The client is a Tomcat 6.0.18 with java 6 but it is reproduced using Tomcat 5 with java 5. The client is calling a Weblogic Server 10.0 making
calls to an EJB deployed in cluster that has two instances installed in two different machines.
The client works fine if we shutdown one of the server instances and so when the client is using only one instance.
Resuming the environment:
Client Side:
1 HP-Itanium machine with HP-UX.
1 Tomcat 6 with java 6 (reproduced with java 5)
Bea Weblogic client (wlclient.jar) for Weblogic 10.0.0
Server Side:
2 HP-Itanium machines with HP-UX
Bea Weblogic Server 10.0.0 installed in both machines
An unique domain
Two Bea instances (one per machines) associated to a Bea Cluster
EJBs deployed in both instances
We have monitored the memory consumed in Tomcat and we have noticed that the VM memory PS OLD GEN grows up permanently when we make tests having the two server side Bea Instances up. We have extended
the memory VM parameters in Tomcat client till 1G and it's only a way to delay the end: the free memory is empty, the GC is not able to free no more byte and the CPU is 100% consumed by the GC work. At the end Tomcat Client
doesn't accept more http petitions and must be restarted.
Besides, we have studied the VM memory in Tomcat using jmap and importing it using Eclipse Memory Analyzer. We have seen some strange memory blocks of several Mbytes that are always growing up and that are stored
under data structures in the package com.sun.corba:
com.sun.corba.se.impl.legacy.connection.SocketFactoryConnectionImpl (4.5Mb)
|
-> com.sun.corba.se.impl.transport.CorbaResponseWaitingRoomImpl
|
-> java.util.Hashtable
|
-> java.util.Hashtable$Entry
|
-> java.util.Hashtable$Entry
-> java.util.Hashtable$Entry
-> java.util.Hashtable$Entry
Has anybody any idea about this problem?
Thanks in advance. -
Webapp client using weblogic-generated stubs
Hi,
I have a simple webservice that has been tested for a while and works without
any trouble when
accessed from a standalone java client using the weblogic-generated webservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the same stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even reach the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though everything was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- which is not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception
during processing: java.lang.IllegalAccessError: Already connected (see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
EHi,
Thanks for your help with this. As it turns out, I received this message from
the weblogic team here:
=======
All,
The J2EE monitoring tool OVTA rolled out to Weblogic Farm Linux QA and Stage environment
had a bug in the instrumentation. The bug induces a java.lang.IllegalAccessError.
A patch as been rolled out to fix this issue.
=======
Once the patch was rolled out and weblogic was restarted, the issue disappeared.
Thanks again for your help!
E
Bruce Stephens <[email protected]> wrote:
Hello,
What is
com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry
at the time of failure?
If you could provide a short reproducer, we could give it a spin; or
open a dialog with our support team.
Thanks,
Bruce
Elisheva G wrote:
Hi, thanks for responding.
I have precisely the same client jsp running without any errors onapache tomcat
accessing
webservices residing in weblogic 8.1 It's only when I try to migratethe client
code from tomcat
to weblogic that I see this "already connected" exception being thrownfrom within
the weblogic-
generated stubs.
I successfully get a port from the service, but when I try to executethe business
method in the
port, that is where the exception is thrown -- consistently.
Any ideas? I am seeing identical behavior on 2 different applications.
Thanks in advance,
E
Bruce Stephens <[email protected]> wrote:
Hello,
The 7.0 reference is a namespace and not a problem and not associated
with your issue. I think you are seeing normal process threading
issues
with jsp sessions. There is an example using a jsp [1] and one with
SSL
[2] that you might want to examine.
HTH,
Bruce
[1]
http://manojc.com/?sample28
[2]
http://webservice.bea.com/clientauth.zip
Elisheva G wrote:
Hi,
I have a simple webservice that has been tested for a while and
works
without
any trouble when
accessed from a standalone java client using the weblogic-generatedwebservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the
same
stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even
reach
the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though
everything
was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- whichis not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handlerweblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception
was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:Exception
during processing: java.lang.IllegalAccessError: Already connected(see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
E -
I am trying to connect to a corba service written with delphi 4 and
visibroker from an EJB running in a weblogic server (Version 5.1)
(the EJB is the corba client!)
Using Visibroker for Java and Visibrokers proprietery locator service
(osagent), everything is working well.
What are the alternatives?
Is it possible to use JacORB or RMI over IIOP? How do I get the initial
object references?
Where do I get more information regarding this topic?"Andreas Albrecht" <[email protected]> writes:
I am trying to connect to a corba service written with delphi 4 and
visibroker from an EJB running in a weblogic server (Version 5.1)
(the EJB is the corba client!)
Using Visibroker for Java and Visibrokers proprietery locator service
(osagent), everything is working well.
What are the alternatives?
Is it possible to use JacORB or RMI over IIOP? How do I get the initial
object references?
Where do I get more information regarding this topic?RMI-IIOP will not help you because you are calling CORBA - you have to
have the CORBA stubs installed on your server. Visibroker supports
CosNaming so you could use this for the initial lookup as well.
andy -
EJB Client using https (SSL) with Server 8.1.3/8.1.4
We have Swing client trying to use weblogic thin client to talk to weblogic server using https.
If we try to use thin client wlclient.jar with https
JAAS Authenticatio, lookups nothing works
If we try to use weblogic.jar from client we need to use license.bea in classpath.
How can we use thin client jar or equivalent without needing license.bea in client classpath?
We tried to create our own thin client but without license.bea it doesn't work.
Plesae give some suggestions or pointers. I have seen this raised many times but there is no conclusion on this topic.
ThanksWe have Swing client trying to use weblogic thin client to talk to weblogic server using https.
If we try to use thin client wlclient.jar with https
JAAS Authenticatio, lookups nothing works
If we try to use weblogic.jar from client we need to use license.bea in classpath.
How can we use thin client jar or equivalent without needing license.bea in client classpath?
We tried to create our own thin client but without license.bea it doesn't work.
Plesae give some suggestions or pointers. I have seen this raised many times but there is no conclusion on this topic.
Thanks -
Error NO_RESOURCES when using Apache Plug-in for Weblogic
Hi all,
LoadModule weblogic_module modules/mod_wl.so
OS.....: OEL 6.3 64 bits
Weblogic Server: 12.1.0.2 (192.168.0.123)
Apache: Apache/2.2.15 (Unix) (192.168.0.149)
I am trying to configure the Apache Plug-in to forward the requests to the Weblogic Server. I already did all the configuration, but when i try to access a page, i get the following error in Apache's error.log:
[Wed Dec 03 18:25:42 2014] [error] [client 192.168.0.149] <649114176419322> weblogic: *******Exception type [NO_RESOURCES] (apr_socket_connect call failed with error=13, host=192.168.0.123, port=7006 ) raised at line 1682 of URL.cpp
[Wed Dec 03 18:25:42 2014] [error] [client 192.168.0.149] weblogic: Trying GET /benefits/ at backend host '192.168.0.123/7006; got exception 'NO_RESOURCES: [os error=13, line 1682 of URL.cpp]: apr_socket_connect call failed with error=13, host=192.168.0.123, port=7006 '
[Wed Dec 03 18:25:44 2014] [error] [client 192.168.0.149] <649114176419322> weblogic: request [/benefits/] did NOT process successfully..................
My httpd.conf if configured as follows:
Listen 8080
LoadModule weblogic_module modules/mod_wl.so
<IfModule mod_weblogic.c>
WeblogicHost 192.168.0.123
WeblogicPort 7006
</IfModule>
<Location /benefits>
SetHandler weblogic-handler
</Location>
When i try to access the app deployed in Weblogic with the following address: "http://192.168.0.149:8080/benefits/" , i get the error mentioned above and the following error is displayed in my browser:
Failure of Web Server bridge:
No backend server available for connection: timed out after 10 seconds or idempotent set to OFF or method not idempotent.
What am i doing wrong?
Thanks in advance.Hi all,
I had some progress... i disabled the firewall (SELinux) on the Apache server. Before, i had just disabled the firewall from the Weblogic Server. Now, when i access the apache server, it redirects (sometimes, actually) the request to my Weblogic Cluster. Let's say that 50% of the time it works and the other 50% i get the error informed previously.
I am using the apache user and the ulimit of this user is:
[apache@vm-apache conf]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15915
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
From the Apache server (192.168.0.149), when i execute the "culr" command, i get the following message:
[apache@vm-apache conf]$ curl http://192.168.0.123:7006/benefits
<html><head><title>302 Moved Temporarily</title></head>
<body bgcolor="#FFFFFF">
<p>This document you requested has moved temporarily.</p>
<p>It's now at <a href="http://192.168.0.123:7006/benefits/">http://192.168.0.123:7006/benefits/</a>.</p>
</body></html>
The message above represents a OK situation or a problematic one?
Below you can see the last few lines of my Error Log and Access Log:
### error log ###
[Thu Dec 18 20:54:16 2014] [error] [client 192.168.0.123] <340514189468553> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID
[Thu Dec 18 20:54:16 2014] [error] [client 192.168.0.123] <340314189468563> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID
[Thu Dec 18 20:54:17 2014] [error] [client 192.168.0.123] File does not exist: /var/www/html/favicon.ico
[Thu Dec 18 20:54:17 2014] [error] [client 192.168.0.123] File does not exist: /var/www/html/favicon.ico
[Thu Dec 18 20:54:21 2014] [error] [client 192.168.0.123] <340114189468603> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID, referer: http://192.168.0.149:8080/benefits/
[Thu Dec 18 20:54:44 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID
[Thu Dec 18 20:54:44 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: initJVMID: parseClusterServerList failure
[Thu Dec 18 20:54:45 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID, referer: http://192.168.0.149:8080/benefits/servlet
[Thu Dec 18 20:54:45 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: initJVMID: parseClusterServerList failure, referer: http://192.168.0.149:8080/benefits/servlet
[Thu Dec 18 20:54:56 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: request [/benefits/welcome.html] did NOT process successfully..................
[Thu Dec 18 20:54:57 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: request [/benefits/welcome.html] did NOT process successfully.................., referer:http://192.168.0.149:8080/benefits/servlet
### access log ###
192.168.0.123 - - [18/Dec/2014:20:54:15 -0300] "GET /benefits HTTP/1.1" 302 267 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:16 -0300] "GET /benefits/ HTTP/1.1" 200 5832 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:17 -0300] "GET /favicon.ico HTTP/1.1" 404 290 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:17 -0300] "GET /favicon.ico HTTP/1.1" 404 290 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:20 -0300] "POST /benefits/servlet HTTP/1.1" 200 492 "http://192.168.0.149:8080/benefits/" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.149 - - [18/Dec/2014:20:54:39 -0300] "GET /benefits/welcome.html HTTP/1.1" 503 250 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:44 -0300] "GET /benefits/welcome.html HTTP/1.1" 503 250 "http://192.168.0.149:8080/benefits/servlet" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
Is there any additional or recommended configuration for this solution to work properly?
Thanks again for the attention and pacience. -
Use of externally-defined/ in weblogic-ejb-jar.xml
I am trying to use Global Roles defined via the Weblogic console to control access to EJB methods.
I am using the <externally-defined/> tag in security role assignments, however when I deploy to Weblogic I get the following error :
<8/09/2004 04:21:42 PM GMT+10:00> <Error> <Deployer> <BEA-149205> <Failed to initialize the application appsdirmars-marketdata_ear due to error weblogic.manag
ement.ApplicationException: Prepare failed. Task Id = null
Module Name: ejb-marketdata.jar, Error: [EJB:011024]The XML parser encountered an error in your deployment descriptor. Please ensure that your deployment descriptor corresponds to the format in the DTD. The error was:
Error parsing file 'META-INF/weblogic-ejb-jar.xml' at line: 51 column: 26. Element type "externally-defined" must be declared..
at weblogic.j2ee.J2EEApplicationContainer.checkForErrors(J2EEApplication
Container.java:1612)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1207)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1051)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:823)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(Sl
aveDeployer.java:2925)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications
(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
I am running Weblogic 8.1 SP3 on Windows XP Pro.
The XML is valid for the specified DTD according to my XML editor.
The relevevant fragment from weblogic-ejb-jar.xml is included below.
Any help much appreciated.
Gavin.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<security-role-assignment>
<role-name>MarsAdmin</role-name>
<externally-defined/>
</security-role-assignment>
<security-role-assignment>
<role-name>MarsViewer</role-name>
<externally-defined/>
</security-role-assignment>
</weblogic-ejb-jar>I tried using the <global-role/> tag instead - this does deploy without any errors - but when I call the secure EJB method I get the Security Violation error below.
The DTD says using the <global-role/> tag is fine, albeit deprecated, but the Weblogic 8.1 manual says this has been replaced by <externally-defined/>, so I'm not sure if this should work or not.
[EJB:010160]Security Violation: User: 'ghughes' has insufficient permission to access EJB: type=<ejb>, application=_appsdir_mars-marketdata_ear, module=ejb-marketdata.jar, ejb=marketdata.MarketDataManager, method=getEnergyOverview, methodInterface=Remote, signature={java.util.Date}.
So on the whole I'd prefer to work out why Weblogic isn't recognising <externally-defined/> - I've included the full deployment descriptor below - I'm generating it using the latest snapshot of XDoclet - is the DTD specified correct for Weblogic 8.1 SP3 ? (It matches the one specified in http://e-docs.bea.com/wls/docs81/ejb/DDreference-ejb-jar.html - but I can't think of anything else that could be wrong).
Any tips much appreciated as I need to enable an administrator to customise these roles at runtime rather than hard-coding the role - group mappings into the deployment descriptors.
Thanks,
Gavin.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<description><![CDATA[Generated by XDoclet]]></description>
<weblogic-enterprise-bean>
<ejb-name>marketdata.MarketDataManager</ejb-name>
<stateless-session-descriptor>
</stateless-session-descriptor>
<reference-descriptor>
</reference-descriptor>
<jndi-name>marketdata.MarketDataManager</jndi-name>
<local-jndi-name>marketdata.MarketDataManagerLocal</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>marketdata.MessageManager</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>5</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>FileTopic</destination-jndi-name>
<connection-factory-jndi-name>JMSConnectionFactory</connection-factory-jndi-name>
<jms-polling-interval-seconds>10</jms-polling-interval-seconds>
<jms-client-id>1</jms-client-id>
</message-driven-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>10</trans-timeout-seconds>
</transaction-descriptor>
<reference-descriptor>
</reference-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
<!--
To add enterprise beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called weblogic-enterprise-beans.xml that contains
the <weblogic-enterprise-bean></weblogic-enterprise-bean> markup for those beans.
-->
<!-- xdoclet merge file -> weblogic-ejb-jar.xml -->
<security-role-assignment>
<role-name>MarsAdmin</role-name>
<externally-defined/>
</security-role-assignment>
<security-role-assignment>
<role-name>MarsViewer</role-name>
<externally-defined/>
</security-role-assignment>
<idempotent-methods>
</idempotent-methods>
</weblogic-ejb-jar>
Message was edited by [email protected] at Sep 8, 2004 8:45 PM -
Re: Runing Forte Runtime Clients using a Firewall
Kamran,
There is an environment variable, FORTE_LOCATIONS, that controls which
port a partition connects over.
David
----Original Message Follows----
Has anybody had to deal with have Forte runtime clients use a firewall?
Who
did you configure the firewall to allow Forte runtime clients to talk to
the
deployed application on the other side of the firewall? Is there any
way to
configure your deployed application to use certain sockets so that you
can
configure the firewall to let client's ip traffic go through using those
sockets? We are using 95 clients and a IBM application server for our
central environment. The firewall will be in the middle monitoring the
traffic. Any suggestion or help would great be appreciated. Thanks in
advance.
ka
Kamran Amin
Forte Technical Leader, Core Systems
(203)-459-7362 or 8-204-7362 - Trumbull
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Kamran,
There is an environment variable, FORTE_LOCATIONS, that controls which
port a partition connects over.
David
----Original Message Follows----
Has anybody had to deal with have Forte runtime clients use a firewall?
Who
did you configure the firewall to allow Forte runtime clients to talk to
the
deployed application on the other side of the firewall? Is there any
way to
configure your deployed application to use certain sockets so that you
can
configure the firewall to let client's ip traffic go through using those
sockets? We are using 95 clients and a IBM application server for our
central environment. The firewall will be in the middle monitoring the
traffic. Any suggestion or help would great be appreciated. Thanks in
advance.
ka
Kamran Amin
Forte Technical Leader, Core Systems
(203)-459-7362 or 8-204-7362 - Trumbull
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Runing Forte Runtime Clients using a Firewall
Has anybody had to deal with have Forte runtime clients use a firewall? Who
did you configure the firewall to allow Forte runtime clients to talk to the
deployed application on the other side of the firewall? Is there any way to
configure your deployed application to use certain sockets so that you can
configure the firewall to let client's ip traffic go through using those
sockets? We are using 95 clients and a IBM application server for our
central environment. The firewall will be in the middle monitoring the
traffic. Any suggestion or help would great be appreciated. Thanks in
advance.
ka
Kamran Amin
Forte Technical Leader, Core Systems
(203)-459-7362 or 8-204-7362 - Trumbull
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Yes, please. Actually I'm aware of all you've said. What I'm trying to apply is not a custom build step but a custom tool. (You select the specific file and in properties you're able to set a Custom Tool and Custom Tool Namespace to it)
In my platform specific projects custom tool works fine but in shared project doesn't. Does custom tools work using a custom build step in code behind so that's why I can't apply them to my Shared Project?
Regards -
BEA webservice client has problem in talking to secured microsoft webservic
Hi,
I am developing a BEA client (standalone java client using BEA 10 MP1 install) to invoke a microsoft secured webservice which requires a X509 token in the request. I am able to invoke the service successfully but can not validate the response which is signed by server.
Here is the client code, I am using -
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.Stub;
import weblogic.security.SSL.TrustManager;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.wsee.security.bst.ClientBSTCredentialProvider;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.wsee.security.util.CertUtils;
import java.util.List;
import java.util.ArrayList;
import java.security.cert.X509Certificate;
import com.accenture.tarpon.*;
public class Test {
public static void main(String[] args) throws Exception {
String username = args[2];
String password = args[3];
String wsdl = args[4];
String clientKeyStore=args[0];
String clientKeyStorePass=args[1];
String clientKeyAlias = args[5];
String clientKeyPass = args[6];
String serverCertFile = args[7];
X509Certificate serverCert = (X509Certificate) CertUtils.getCertificate(serverCertFile);
GetAddress service = new GetAddress_Impl(wsdl);
Microsoft_X0020_GetAddress port = service.getBasicHttpBinding_Microsoft_X0020_GetAddress();
List credProviders = new ArrayList();
//client side BinarySecurityToken credential provider -- x509
credProviders.add(new ClientBSTCredentialProvider(clientKeyStore, clientKeyStorePass,
clientKeyAlias, clientKeyPass, "JKS", serverCert));
credProviders.add(new ClientUNTCredentialProvider(username.getBytes(), password.getBytes()));
Stub stub = (Stub)port;
stub._setProperty(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);
stub._setProperty(WSSecurityContext.TRUST_MANAGER,
new TrustManager(){
public boolean certificateCallback(X509Certificate[] chain, int validateErr){
//need to validate if the server cert can be trusted
for (int i = 0; i < chain.length; i++) {
System.out.println("Server cert chain: " + chain);
return true;
System.out.println("\n\n *** before forming getAddressRequest \n\n");
GetAddressRequest getAddressRequest = new GetAddressRequest();
getAddressRequest.setTaxPayerID("MicrosoftGetAddressX509Sign_123");
GetAddressResponse getAddressResponse = port.getTaxPayerAddress(getAddressRequest);
System.out.println("\n\n *** after invocation getAddressRequest \n\n");
printGetAddressResponse(getAddressResponse);
private static void printGetAddressResponse(GetAddressResponse getAddressResponse){
System.out.println("\n\n ***** Response from MicrosoftGetAddressService : ***** ");
System.out.println("\nAddress Line 1 - "+getAddressResponse.getAddressLine1());
System.out.println("\nAddress Line 2 - "+getAddressResponse.getAddressLine2());
System.out.println("\nCity - "+getAddressResponse.getCity());
System.out.println("\nCompany - "+getAddressResponse.getCompany());
System.out.println("\nState - "+getAddressResponse.getState());
System.out.println("\nTaxPayerID - "+getAddressResponse.getTaxPayerID());
System.out.println("\nZip - "+getAddressResponse.getZip());
System.out.println("\nFirst Name - "+getAddressResponse.getTaxpayerFirstName());
System.out.println("\nMiddle Name - "+getAddressResponse.getTaxpayerMiddleInitial());
System.out.println("\nLast Name - "+getAddressResponse.getTaxpayerLastName());
When I run this, I get this message -
[java] Exception in thread "main" java.rmi.RemoteException: SOAPFaultException - Faul
tCode [{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}
InvalidSecurity] FaultString [weblogic.xml.dom.marshal.MarshalException: weblogic.xml.cryp
to.wss.WSSecurityException: Failed to validate signature.] FaultActor [null]No Detail; nes
ted exception is:
[java] javax.xml.rpc.soap.SOAPFaultException: weblogic.xml.dom.marshal.MarshalExc
eption: weblogic.xml.crypto.wss.WSSecurityException: Failed to validate signature.
[java] at com.accenture.tarpon.Microsoft_X0020_GetAddress_Stub.getTaxPayerAddress
(Unknown Source)
[java] at Test.main(Unknown Source)
[java] Caused by: javax.xml.rpc.soap.SOAPFaultException: weblogic.xml.dom.marshal.Mar
shalException: weblogic.xml.crypto.wss.WSSecurityException: Failed to validate signature.
[java] at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:311)
[java] at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.
java:114)
[java] at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:
99)
[java] at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.
java:87)
[java] at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:
304)
[java] at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.ja
va:264)
[java] at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(Client
Dispatcher.java:193)
[java] at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispat
cher.java:148)
[java] at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
[java] at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:332)
[java] ... 2 more
[java] Caused by: weblogic.xml.crypto.wss.WSSecurityException: weblogic.xml.dom.marsh
al.MarshalException: weblogic.xml.crypto.wss.WSSecurityException: Failed to validate signa
ture.
[java] at weblogic.wsee.security.wssp.handlers.WssClientHandler.processInbound(Ws
sClientHandler.java:144)
[java] at weblogic.wsee.security.wssp.handlers.WssClientHandler.processResponse(W
ssClientHandler.java:130)
[java] at weblogic.wsee.security.wssp.handlers.WssHandler.handleResponse(WssHandl
er.java:128)
[java] at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.ja
va:282)
[java] at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.ja
va:266)
[java] ... 6 more
[java] Caused by: weblogic.xml.dom.marshal.MarshalException: weblogic.xml.crypto.wss.
WSSecurityException: Failed to validate signature.
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshalInternal(SecurityImpl.jav
a:411)
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshal(SecurityImpl.java:375)
[java] at weblogic.xml.crypto.wss11.internal.WSS11Factory.unmarshalAndProcessSecu
rity(WSS11Factory.java:33)
[java] at weblogic.wsee.security.wssp.handlers.WssClientHandler.processInbound(Ws
sClientHandler.java:141)
[java] ... 10 more
[java] Caused by: weblogic.xml.crypto.wss.WSSecurityException: Failed to validate sig
nature.
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshalAndProcessSignature(Secur
ityImpl.java:576)
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshalChildren(SecurityImpl.jav
a:435)
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshalInternal(SecurityImpl.jav
a:399)
[java] ... 13 more
[java] Caused by: weblogic.xml.crypto.dsig.api.XMLSignatureException
[java] at weblogic.xml.crypto.dsig.SignedInfoImpl.validateSignature(SignedInfoImp
l.java:112)
[java] at weblogic.xml.crypto.dsig.XMLSignatureImpl.validate(XMLSignatureImpl.jav
a:233)
[java] at weblogic.xml.crypto.wss.SecurityImpl.unmarshalAndProcessSignature(Secur
ityImpl.java:568)
[java] ... 15 more
[java] Caused by: weblogic.xml.crypto.api.KeySelectorException: weblogic.xml.crypto.w
ss.WSSecurityException: Failed to resolve security token for issuer serial weblogic.xml.cr
ypto.dsig.keyinfo.X509IssuerSerialImpl@df9095
[java] at weblogic.xml.crypto.common.keyinfo.KeyResolver.setupKeyProviderFromCont
ext(KeyResolver.java:312)
[java] at weblogic.xml.crypto.common.keyinfo.KeyResolver.getKeyFromSTR(KeyResolve
r.java:269)
[java] at weblogic.xml.crypto.common.keyinfo.KeyResolver.select(KeyResolver.java:
124)
[java] at weblogic.xml.crypto.dsig.SignedInfoImpl.getVerifyKey(SignedInfoImpl.jav
a:223)
[java] at weblogic.xml.crypto.dsig.SignedInfoImpl.validateSignature(SignedInfoImp
l.java:110)
[java] ... 17 more
[java] Caused by: weblogic.xml.crypto.wss.WSSecurityException: Failed to resolve secu
rity token for issuer serial weblogic.xml.crypto.dsig.keyinfo.X509IssuerSerialImpl@df9095
[java] at weblogic.xml.crypto.wss.BinarySecurityTokenHandler.getTokenByIssuerSeri
al(BinarySecurityTokenHandler.java:147)
[java] at weblogic.xml.crypto.wss.BinarySecurityTokenHandler.getSecurityToken(Bin
arySecurityTokenHandler.java:81)
[java] at weblogic.xml.crypto.common.keyinfo.KeyResolver.setupKeyProviderFromCont
ext(KeyResolver.java:304)
[java] ... 21 more
At the server side, Microsoft has imported client cert and also on the client side, I have imported server cert in jdk's cacerts file.
Please help.
Thanks in advance,
ManojHello experts,
Do you know is there a way to avoid "SSL handshake failure." error without importing a public key to the default keystore?
When I access WebLogic WebServices over SSL from Service Control which is generated by WL WorkSpaces 10.2,
it used default key and there is no additional key manipulation required.
Is there any way to configure a flag to the service control or WL server to automatically trust the end point host.
As far as I know at this point is that I need to have public key in PEM format and use keytool to import that into client skystore file. Is this the only way it can solve this handshake issue?
Any pointers are appreciated. _J -
How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
Any help would be appreciated.How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
Any help would be appreciated. -
Hi everyone!
I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
Thanks in advance to anyone who can help!Hi everyone!
I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
Thanks in advance to anyone who can help! -
Can I create a fillable pdf form and then export it for client use on my web site?
Can I create a fillable pdf form and then export it for client use on my web site? I need clients to be able to fill in the (registration) form on my site then submit it via email.
[discussion moved to Creating, Editing & Exporting PDFs forum]
-
XML Parser Error while creating Web service Client using JAX RPC
hello evryone,
Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
wscompile -gen:client -d build -classpath build config-wsdl.xml
here im getting Error:
error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
Please help me out.
Many thanks in advance,
KaceeCan i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.
Maybe you are looking for
-
Hi, I have a graphical program that repaints every 2000 ms. I want to call another program that queries the Oracle dbase and returns one row at a time, so that in the graphical program, I see the value of the next row every 2000 ms. Any ideas on how
-
Hello everybody, I have a problem with my screen, it does not work anymore! I can't unlock my phone or turn it off. I try to restart by pressing the power + home but nothing's changed. I try to restore it but no changes. I also noticed that the time
-
Create target File is possible?
Hi, I just need to know whether we can create a Target file in the interface? Let me explain my steps which i am doing. 1. I created a interface which holds MSSQL Server table let say employee table in source and its been mapped with a simple file te
-
Deleting the google auto fill in.
Alright, so when you have already searched for something on google.com and you type something new into the search bar ( not the one in the toolbar) how can i get it so it shows none of my past searches...?
-
DNG Profile Editor not working with new Profiles from LR 3.6?
I'm noticing that DNG Profile Editor is not really able to work with profiles from newly supported cameras, like the X10. Apparently the profile spec has been updated. Has DNG Profile Editor been abandoned or will it be updated to work with the new s