BEA WebLogic Cookie JSESSIONID Value Overflow
Can someone help me discipher this IPS Alert Please. I have a series of these alerts along some other Alerts but I don't know how to interpret them.
*DROP*[1:1001429:1] BEA WebLogic JSESSIONID Cookie Value Overflow
[ Reference: http://tools.cisco.com/go/redirect/viewS BIPSSignature.x?sigID=2010-000206 ]
{TCP} 192.168.75.xxx:64682 -> 209.225.8.224:80
Component: IPS
Thanks in advance for any help you can provide.
The details are the link withing this alert.
http://tools.cisco.com/security/center/viewIpsLiteSignature.x?signatureId=2010-000206
Within this link, there will be another hyperlink which describes this sig in detail.
http://tools.cisco.com/security/center/viewAlert.x?alertId=17420
Paps
Similar Messages
-
Can we change the name of the cookie - JSESSIONID?
Can we change the name of the cookie- JSESSIONID?
for eg.
Set-Cookie = [ JSESSIONID=6ad8360e0d1af303293f26d98e2a; Version=1; Comment=Sun+ONE+Application+Server+Session+Tracking+Cookie; Path=/]
can we change it to something like -
Set-Cookie = [ ServletSession=RkA4OlbgfW; path=/]Thankyou Sultal for the response.
Actually we are migrating the application server from Weblogic5.1 to Sun application server 8.2. The client is a mobile client and it sends the Cookie as 'JSESSIONID=session_id_val&WeblogicSession=session_id_val' as parameters, not as request header.It worked fine for Weblogic5.1 but not in Sun Application Server.
To make it clear :
Weblogic : request.getsession(false) = sessionObj@value
Sun Application Server : request.getsession(false) = null
Sun Application Server : request.getParameter("JSESSIONID") = session_id_val
In the Weblogic5.1 we have set the cookie & session parameters in the weblogic.properties file as:
weblogic.httpd.session.cookies.enable=true
weblogic.httpd.session.cookie.name=WebLogicSession
weblogic.httpd.session.neverReadPostData=false
weblogic.httpd.session.timeoutSecs=120
In case of Sun application server , JSESSIONID is not coming as a cookie , request.getsession(false) is returning null value.Is there a way to initialize the session with JSESSIONID request parameter? -
Problem in running application(using ADF) on BEA Weblogic Server
Hi..,
I am Gunardy Sutanto from Indonesia. Currently, I had a problem in deploying application which is using ADF framework in BEA Weblogic Server(WLS 8.1). I also add all the libraries which were required for running this application. But I found some error when I ran this application. About the error message that I found from log file which is generated by BEA Weblogic Server 8.1, herewith I attach the detail of the error message :
<Error> <HTTP> <BEA-101020> <[ServletContext(id=27825828,name=bp_presentment,context-path
=/bp_presentment)] Servlet failed with Exception
oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 16,408, persistent id 1
at oracle.jbo.PCollException.throwException(PCollException.java:39)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1845)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
## Detail 0 ##
java.lang.ClassCastException
at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(OraclePersistManager.java:1613)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1832)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
I hope this is enough for somebody for solving this problem. If someone have the solution for this problem, please contact me by e-mail to [email protected].
Thanks,
GunardyI already set the value for jbo.server.internal_connection and then deployed to Weblogic Server. When I was tested the application, all the records from table had shown on the screen but I found the application can't insert row to table PS_TXN. I I want to know it always happened?
Herewith I attach the detail log from log file which was generated by Weblogic Server:
oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 162, persistent id 1 at oracle.jbo.PCollException.throwException(PCollException.java:39)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1845)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
## Detail 0 ##
java.lang.ClassCastException
at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(OraclePersistManager.java:1613)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1832)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
Besides that, I found new error when I was starting Weblogic Server. Herewith, I attach the detail of the error message:
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap$KeySet
at org.apache.commons.collections.FastHashMap.keySet(Unknown Source)
at org.apache.struts.action.ActionServlet.destroyDataSources(ActionServlet.java:769)
at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:431)
at weblogic.servlet.internal.ServletStubImpl$ServletDestroyAction.run(ServletStubImpl.java:1086)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:569)
at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:596)
at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:581)
at weblogic.servlet.internal.WebAppServletContext.destroyServlets(WebAppServletContext.java:5797)
at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:5675)
at weblogic.servlet.internal.ServletContextManager.removeContext(ServletContextManager.java:187)
at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:706)
at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:764)
at weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:742)
at weblogic.j2ee.J2EEApplicationContainer.rollbackModule(J2EEApplicationContainer.java:2942)
at weblogic.j2ee.J2EEApplicationContainer.rectifyClassLoaders(J2EEApplicationContainer.java:1429)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1176)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
So, I need someone to sove this problem. I am looking forward for hearing from you.
Thanks,
Gunardy -
Apache Axis allows developers to attach Request/Response handlers to do
stuff like logging, authorization check etc.
Something like...
public class MyHandler extends org.apache.axis.handlers.BasicHandler {
public void invoke(org.apache.axis.MessageContext msgContext) throws
AxisFault
Does BEA Weblogic Workshop has a similar capability?
Thanks.
Best Regards
HiteshHi Hitesh,
The logging in Workshop user log4j and is configured in the
<WL-HOME>/weblogic700/server/lib/workshopLogConfig.xml file.
To log the SOAP responses, add the following lines in the xml file:
<category name="knex.SoapJwsReq"> <priority value="debug" /> <appender-ref
ref="MYLOGFILE" /> </category>
<category name="knex.SoapJwsResp"> <priority value="debug" /> <appender-ref
ref="MYLOGFILE" /> </category>
The MYLOGFILE can be configured by copying from the already defined
appenders. The file location is relative to the domain directory.
<appender name="MYLOGFILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="mylog.log" />
<param name="Append" value="true" />
<param name="MaxFileSize" value="3000KB" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{DATE} %-5p %-15c{1}: %m%n"/>
</layout>
</appender>
As of now, the SOAP request message is not logged, only the responses are
getting logged. This will be corrected within the next few days. Please also
note that if you are using the Test View for running the web service, you
should use the 'Test XML' tab for seeing the SOAP requests/responses. The
'Test Form' tab uses HTTP GET, and hence you will not see any SOAP messages.
Do let me know if you have any further queries.
Regards,
Anurag
Workshop Support
"Hitesh Seth" <[email protected]> wrote in message
news:[email protected]...
Thanks Anurag. What is the best recommended way in BEA Weblogic Workshop
today to implement a logger which will log all SOAP Requests & Responses
into a custom logging system.
Best Regards
Hitesh
"Anurag Pareek" <[email protected]> wrote in message
news:[email protected]...
Hitesh,
You can modify the SOAP request and response payload by using ECMA
Script
and XMLMaps.
In the current release, Workshop does not support 'handlers' for SOAP
messages.
Regards,
Anurag
Workshop Support
"Hitesh Seth" <[email protected]> wrote in message
news:[email protected]...
Apache Axis allows developers to attach Request/Response handlers to
do
stuff like logging, authorization check etc.
Something like...
public class MyHandler extends org.apache.axis.handlers.BasicHandler {
public void invoke(org.apache.axis.MessageContext msgContext)throws
AxisFault
Does BEA Weblogic Workshop has a similar capability?
Thanks.
Best Regards
Hitesh -
BEA Weblogic AS 9.2 close pool connections - messages BEA-001128 in logs
Hello,
We have problems with BEA Weblogic AS 9.2 SP3. From time to time servers stop responding and seem to be stuck.
In logs there are plenty of messages like this:
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729759> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729759> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729759> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729774> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729774> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729774> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729774> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:49 PM CEST> <Info> <JDBC> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1245157729774> <BEA-001128> <Connection for pool "GoD-PRD" closed.>
####<Jun 16, 2009 3:08:50 PM CEST> <Info> <Common> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-4A32C18C5F55D8E4A47E> <> <1245157730603> <BEA-000628> <Created "5" resources for pool "GoD-PRD", out of which "5" are available and "0" are unavailable.>
####<Jun 16, 2009 3:12:13 PM CEST> <Info> <Common> <SRV-WLS3> <PRD-J> <[ACTIVE] ExecuteThread: '22' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-637BC18C5F55D8E4A47E> <> <1245157933416> <BEA-000628> <Created "5" resources for pool "GoD-PRD", out of which "5" are available and "0" are unavailable.>
What exactly this message mean? Does it show some invalid behavior in application or it is just standard notice message?
What should be behavior of app. server when transaction is timed out on database and closed there? We have timeout for one operation on Oracle set on 10 minutes. Maybe there is a connection between the problems?
Thanks allot!
MiroslavTest is not enabled. Network should be stable all time - part of one switch.
Here is a configuration for no-TX source:
<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xsi:schemaLocation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
<name>GoD-PRD</name>
<jdbc-driver-params>
<url>jdbc:oracle:thin:@db_server:1521:cml</url>
<driver-name>oracle.jdbc.xa.client.OracleXADataSource</driver-name>
<properties>
<property>
<name>user</name>
<value>our_user</value>
</property>
</properties>
<password-encrypted>xxxxxx</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<initial-capacity>1</initial-capacity>
<max-capacity>100</max-capacity>
<capacity-increment>5</capacity-increment>
<test-connections-on-reserve>false</test-connections-on-reserve>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>idit.jdbc.IDITDS</jndi-name>
<global-transactions-protocol>OnePhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>
Edited by: myroch on 14.7.2009 4:48 -
How to load BEA-WEBLOGIC-MIB.ANS1 in WebLogic 6.1
I have enabled the Wbelogic SNMP Agent and have developed an SNMP Manager that attempts
to get the value of 1.3.6.1.4.1.140.625.530.1.50. But the manager is giving this
error.
[Object ID : 1.3.6.1.4.1.140.625.530.1.50
Value Exception : No such Instance]
Anyone could guide me that how to resolve this.Most available SNMP Managers available have a facility to load the MIB file.
This is an option provided in the Manager. The manager loads the MIB file
which maps the OID to the name of the element you are looking for.
BEA's MIB file is BEA-WEBLOGIC-MIB.asn1 and can be found in the
wlserver6.1\lib dir
Please load this file into your manager.
cheers,
Mihir
"Kashif Rasheed" <[email protected]> wrote in message
news:3d2308df$[email protected]..
>
I have enabled the Wbelogic SNMP Agent and have developed an SNMP Managerthat attempts
to get the value of 1.3.6.1.4.1.140.625.530.1.50. But the manager isgiving this
error.
[Object ID : 1.3.6.1.4.1.140.625.530.1.50
Value Exception : No such Instance]
Anyone could guide me that how to resolve this. -
Upgrading from BEA Weblogic portal 8.1.5 to BEA Weblogic Portal 10.3
We are upgrading from BEA Weblogic portal 8.1.5 to BEA Weblogic Portal 10.3. We just took over the project from some other vendor since last 9 months. At some of the places in the code, we are using internal APIs of Weblogic Server which should not have been used at the first place.
As weblogic has changed the version and internal structure as well as the classes also, We are facing problems in terms of compilation of the code itself.
The class "ServletRequestImpl" is giving us issues.
Has anybody faced the similar issues, if yes, please let me know.Andy-
Since the Struts portlet support requires that struts app be converted to a module,
alternate message resources need to be accessed by modifying the bundle name by
appending the module name, since Struts doesn't automatically propogate the alternate
resources from the ServletContext to the Request when a module is selected.
For instance, in suppose your struts application module is /struts/myExample.
To access the alternate bundle from within that module, you'll need to specify
the bundle as alternate/struts/myExample.
-Brodi Beartusk
"Andy Hull" <[email protected]> wrote:
>
Hi,
I'm trying to get the struts-example webapp from Struts 1.1 RC1 working
under
Weblogic Portal 8.1 with the JSR 168 and Struts support patch.
I am having problems with the message bundle properties files ApplicationResources.properties
and AlternateApplicationResources.properties as neither of these files
are being
picked up.
These files are located in org/apache/struts/webapp/example in WEB-INF/src
and
WEB-INF/classes of my webapp (i.e. <WEBAPP>/WEB-INF - my struts-example
resides
in <WEBAPP>/struts-example). I've also tried adding <init-param>'s to
the <WEB-APP>/WEB-INF/web.xml
file for the action servlet as follows:
<servlet> <servlet-name>action</servlet-name> ... <init-param> <param-name>application</param-name>
<param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
</init-param> <init-param> <param-name>alternate</param-name> <param-value>org.apache.struts.webapp.example.AlternateApplicationResources</param-value>
</init-param> </servlet>
When I use the logon action as the starting action for the portlet, I
get:
Error opening /struts-example/logon.jsp. The source of this error is
javax.servlet.ServletException:
Cannot find message resources under key alternate at weblogic.servlet.jsp.PageContextImpl.handlePageException...
Any help would be appreciated.
--Andy -
Errors while running AMAgent Policy Agent 2.2 on BEA Weblogic 8.1 SP5
Trying to run SampleApp that SUN provided to test SAM Agent 2.2 for
BEA weblogic...
- Set up BEA domain and installed SAM agent 2.2 on all managed servers
- Deployed the sample app that came with the agent package and adjusted for local IPlanet DIT
Getting errors in amFilter
03/16/2006 05:21:37:037 PM EST: Thread[ExecuteThread: '11' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default']
ERROR: AmFilter: Error while delegating to inbound handler: SSO Task Handler, access will be denied
java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.identity.agents.common.URLFailoverHelper.getURL(URLFailoverHelper.java:243)
at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:88)
at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:748)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:285)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:258)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:363)
at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:345)
at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:210)
at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:98)
at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:185)
at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:38)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Any ideas on what could be wrongMike thanks..
I fixed the problem by doing the following .. I was missing this parameter .. I had deleted the Right hand side ..
Everything works now
# LOGIN URL
# Specifies the login URLs to be used by the Agent to redirect
# incoming users without sufficient credentials to the Access Manager
# authentication service.
# Hot-Swap Enabled: Yes
com.sun.identity.agents.config.login.url[0] = Put the value for your site -
Identity Agent for BEA Weblogic 8.1 / Errors
Hi,
We are trying to install the Identity Server agent for BEA Weblogic 8.1 (on Linux).
After filling in the �Startup Script Location� and �Weblogic Server MBeans Directory� values in the �Weblogic Server Information Panel� screen during installation, we receive the following error:
Unable to execute
at com.sun.identity.agents.tools.weblogic70.WebLogic70ConfigValidator.executeCommand(Unknown Source)
at com.sun.identity.agents.tools.weblogic70.WebLogic70ConfigValidator.getWeblogicVersion(Unknown Source)
at com.sun.identity.agents.install.panels.weblogic70.WebLogic70ConfigPanel.save(Unknown Source)
at com.sun.identity.agents.install.panels.weblogic70.WebLogic70ConfigPanel.isDisplayComplete(Unknown Source)
at com.sun.wizards.core.IteratorLayout.next(IteratorLayout.java:733)
at com.sun.wizards.core.WizardTreeManager.nextButtonPressed(WizardTreeManager.java:1198)
at com.sun.wizards.core.WizardTreeManager.dispatchNavigationEvent(WizardTreeManager.java:440)
at com.sun.wizards.core.WizardTreeManager.run(WizardTreeManager.java:402)
at java.lang.Thread.run(Thread.java:536)
We are trying to install it on Weblogic 8.1 � so any idea why the installer attempts operations on Weblogic 7.0?the question is actually simple
but the error message is nausea
please
set JAVA_HOME=<jdk-dir-used-by-weblogic>
set PATH=$JAVA_HOME/bin:$PATH
if your shell is bsh
you need
JAVA_HOME=<jdk-dir-used-by-weblogic>
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
the solution is from sun response -
REgarding succesive orders on a bea weblogic workshop
hello
I am working on Bea weblogic workshop.I have workflows which are listening to a channel . Now in my WLI server i have all my workflows .On recieving a message from the channel i set a static boolean value say XX to true , however on recieving another message on the same workflow , when i check for the static boolean XX it gives me results for the false condition. CAn anyone explain whether in workflows in Weblogic Integration the static values set by one order can be read by another .hello
I am working on Bea weblogic workshop.I have workflows which are listening to a channel . Now in my WLI server i have all my workflows .On recieving a message from the channel i set a static boolean value say XX to true , however on recieving another message on the same workflow , when i check for the static boolean XX it gives me results for the false condition. CAn anyone explain whether in workflows in Weblogic Integration the static values set by one order can be read by another . -
Error while creating a new Domain in BEA Weblogic
I am getting the below mentioned error while creating a new Domain in BEA Weblogic
Preparing...
Extracting Domain Contents...
Creating Domain Security Information...
Saving the Domain Information...
Storing Domain Information...
String Substituting Domain Files...
Performing OS Specific Tasks...
Performing Post Domain Creation Tasks...
Domain Creation Failed!
Domain Location: C:\bea\user_projects\domains\base_domain_1
Reason: Got error in writing the node manager C:\bea\wlserver_10.0\common\nodemanager\nodemanager.domains property file!
Exception:
java.lang.Exception: Got error in writing the node manager C:\bea\wlserver_10.0\common\nodemanager\nodemanager.domains property file!
at com.bea.plateng.domain.DomainNodeManagerHelper.registerDomainToNodeManager(DomainNodeManagerHelper.java:138)
at com.bea.plateng.domain.DomainNodeManagerHelper.registerDomainToNodeManager(DomainNodeManagerHelper.java:170)
at com.bea.plateng.domain.DomainGenerator.generate(DomainGenerator.java:435)
at com.bea.plateng.wizard.domain.gui.tasks.DomainCreationGUITask$1.run(DomainCreationGUITask.java:232)Hi,
It look two ways either you dont have permission to write any new thing to that domain.properties file or might file is got corrupted.
Please check for the permission to that file.
Regards,
Kal. -
Oracle ifs and BEA weblogic
We have one application server with weblogic and and ifs 1.0.9 , and one db server with Oracle 8.1.7.
with the following configuration:
Web server
appl server with weblogic 6.0 and ifs 1.1.9
Oracle 8i Enterprise with interMedia text
We need to use the iFS API call for our application.
As I know, weblogic 6.0 support JDK1.3 but ifs 1.1.9 supports up to JDK1.2.
Is this configuration possible?
Any conflict if two version JDK co-exist inside same machine?
Any suggestion?
If I separate the appl. server into two machines, that is,
one server installed with weblogic, the other one installed with ifs.
How could I make use the ifs API call from appl. server?
Is there any configuration guides for this setting?
Thanks a lot.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Luis:
The iFS API is 100% pure Java. You can use it from any other Java application, be it JSP, EJB, or a standalone application.
So it really comes down to the CLASSPATH. The iFS API is split among a set of .jar files, and some of the configuration information is stored in .properties files that are outside of these .jar files. All of this stuff needs to be in the CLASSPATH of whatever JVM is calling the iFS API.
The iFS API uses the Oracle JDBC driver to communicate with the Oracle database. This is another requirement. You can't use another JDBC driver; you have to use ours.
So again, it's all about configuration.<HR></BLOCKQUOTE>
Would you mind to share more detail on configurating weblogic to integrate the iFS API?
null -
Problem in calling a web service hosted on tomcat from BEA WebLogic portal
Hi,
I have a wsdl file for my web service which is hosted on apache tomcat 5.5(running on port : 8080). The contents of the wsdl file are-
*<?xml version="1.0" encoding="UTF-8"?>*
*<wsdl:definitions targetNamespace="http://soa.tutorials.serg.edu" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soa.tutorials.serg.edu" xmlns:intf="http://soa.tutorials.serg.edu" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
*<!--WSDL created by Apache Axis version: 1.4*
Built on Apr 22, 2006 (06:55:48 PDT)-->
*<wsdl:types>*
*<schema elementFormDefault="qualified" targetNamespace="http://soa.tutorials.serg.edu" xmlns="http://www.w3.org/2001/XMLSchema">*
*<element name="getNums">*
*<complexType>*
*<sequence>*
*<element name="n" type="xsd:int"/>*
*<element name="m" type="xsd:int"/>*
*</sequence>*
*</complexType>*
*</element>*
*<element name="getNumsResponse">*
*<complexType>*
*<sequence>*
*<element maxOccurs="unbounded" name="getNumsReturn" type="xsd:int"/>*
*</sequence>*
*</complexType>*
*</element>*
*<element name="getNums2">*
*<complexType>*
*<sequence>*
*<element name="n" type="xsd:int"/>*
*<element name="m" type="xsd:int"/>*
*</sequence>*
*</complexType>*
*</element>*
*<element name="getNums2Response">*
*<complexType>*
*<sequence>*
*<element maxOccurs="unbounded" name="getNums2Return" type="xsd:int"/>*
*</sequence>*
*</complexType>*
*</element>*
*</schema>*
*</wsdl:types>*
*<wsdl:message name="getNums2Request">*
*<wsdl:part element="impl:getNums2" name="parameters"/>*
*</wsdl:message>*
*<wsdl:message name="getNumsRequest">*
*<wsdl:part element="impl:getNums" name="parameters"/>*
*</wsdl:message>*
*<wsdl:message name="getNums2Response">*
*<wsdl:part element="impl:getNums2Response" name="parameters"/>*
*</wsdl:message>*
*<wsdl:message name="getNumsResponse">*
*<wsdl:part element="impl:getNumsResponse" name="parameters"/>*
*</wsdl:message>*
*<wsdl:portType name="Echo">*
*<wsdl:operation name="getNums">*
*<wsdl:input message="impl:getNumsRequest" name="getNumsRequest"/>*
*<wsdl:output message="impl:getNumsResponse" name="getNumsResponse"/>*
*</wsdl:operation>*
*<wsdl:operation name="getNums2">*
*<wsdl:input message="impl:getNums2Request" name="getNums2Request"/>*
*<wsdl:output message="impl:getNums2Response" name="getNums2Response"/>*
*</wsdl:operation>*
*</wsdl:portType>*
*<wsdl:binding name="EchoSoapBinding" type="impl:Echo">*
*<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>*
*<wsdl:operation name="getNums">*
*<wsdlsoap:operation soapAction=""/>*
*<wsdl:input name="getNumsRequest">*
*<wsdlsoap:body use="literal"/>*
*</wsdl:input>*
*<wsdl:output name="getNumsResponse">*
*<wsdlsoap:body use="literal"/>*
*</wsdl:output>*
*</wsdl:operation>*
*<wsdl:operation name="getNums2">*
*<wsdlsoap:operation soapAction=""/>*
*<wsdl:input name="getNums2Request">*
*<wsdlsoap:body use="literal"/>*
*</wsdl:input>*
*<wsdl:output name="getNums2Response">*
*<wsdlsoap:body use="literal"/>*
*</wsdl:output>*
*</wsdl:operation>*
*</wsdl:binding>*
*<wsdl:service name="EchoService">*
*<wsdl:port binding="impl:EchoSoapBinding" name="Echo">*
*<wsdlsoap:address location="http://localhost:8080/SOATest/services/Echo"/>*
*</wsdl:port>*
*</wsdl:service>*
*</wsdl:definitions>*
I created a client from the above wsdl file using ClientGen wizard in WebLogic. This client contains the follwoing classes-
Echo.java
EchoService.java
EchoService_Impl.java
Echo_Stub.java
I created a JSP portlet and the jsp content of it is-
String url = "http://localhost:8080/SOATest/services/Echo";
Echo echo = new EchoService_Impl(url).getEcho();
getNumsResponse = echo.getNums(getNums);
I tried to call that web service from BEA weblogic portal through a JSP potlet. I got an error saying -
*<An exception [javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element] was thrown while rendering the content at [TestEcho.jsp].*
*javax.servlet.ServletException: javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:420)*
* at jsp_servlet.__testecho._jspService(__testecho.java:112)*
* at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)*
* at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
* at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
* Truncated. see log file for complete stacktrace*
*javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.wsee.jaxrpc.ServiceImpl.throwServiceException(ServiceImpl.java:174)*
* at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:485)*
* at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)*
* at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
* at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
* Truncated. see log file for complete stacktrace*
*weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:313)*
* at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
* at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:391)*
* at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)*
* at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)*
* Truncated. see log file for complete stacktrace*
*java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.xml.domimpl.Loader.load(Loader.java:38)*
* at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:122)*
* at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)*
* at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)*
* at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
* Truncated. see log file for complete stacktrace*
*javax.xml.stream.XMLStreamException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)*
* at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
* at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
* at weblogic.xml.domimpl.Loader.load(Loader.java:73)*
* at weblogic.xml.domimpl.Loader.load(Loader.java:35)*
* Truncated. see log file for complete stacktrace*
*Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
* at weblogic.xml.babel.baseparser.BaseParser.parseProlog(BaseParser.java:417)*
* at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:328)*
* at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)*
* at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
* at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
* Truncated. see log file for complete stacktrace*
My web service is using soap binding. I have tested it with eclipse and other tools also. It is working well and good. But when I tried to call a web service which is created and hosted on WebLogic server(running on port : 7001), I got the correct output.
Can anyone help me out in calling a web service hosted on different server from WebLogic server.
Thanks in advance,
Tiijnar
Edited by: user8715057 on Aug 13, 2009 1:11 AMHi
1. The way you are invoking the WebService deployed on Tomcat server is looks suspicious. It may be valid by adding extra ?wsdl etc into the url, but still I have not seen this way to invoke the webservice.
2. So you used Weblogic ant task to generate client JARs by giving this WSDL. So looks like it generated the 4 classes (.java) and in addition any other classes for Request/Response xml objects.
3. Look at the source code of EchoService.java. It should have one default empty constructor. Internally it uses the default wsdl defined in this class. You will see another constructor that takes WSDL URL as one of the parameters (QName) etc. Echo.java is the class corresponding to the Port. In the same EchoService you should see an instance method like getEcho() something like that. This Echo.java class will have methods for all the Operations defined on this Port. So the standard code snippet we use most of the times will be like this:
EchoService myEchoService = new EchoService(); // Default it uses WSDL deployed on Tomcat at localhost:8080
Echo myEchoPort = myEchoService.getEchoPort(); // Something along these lines.
myEchoPort.xxxYYY(); // NOW this is the operation name that takes the input parameters and returns outputs defined as per the WSDL defintions. If the Input and Outputs are complex xml types, it will have corresponing .JAVA files with setters and getters.
Now if this WebService is deployed on same Tomcat but on different machine or different port, you just give the full WSDL URL with that host and port in the constructor for new EchoService(...). You may need to instantiate QName object. But look at the methods generated in EchoService.java class.
The way you are using with Impl and Stubs class may also work. I am not much famiiar with this APIs apporach. Still look at the methods generated in these classes.
Also if you latest Sun JDK 1.6, it also has one command like wsimport. Infact if you install WLS 10.3 with Sun JDK, it should have C:\beawlp103\jdk160_05\bin\wsimport command. This will also generate client jar given a WSDL URL.
Thanks
Ravi Jegga -
JSP on BEA Weblogic: random error when loading a jsp page that uses a Bean
Hi!
I wrote a simple jsp page that stores a String in a JavaBean, and then forwards to another jsp page to display that String. The jsp pages are deployed on a BEA Weblogic 6 Server, but I get a weird behaviour when loading the page into my browser. Usually I get an error message:
/Response.jsp(9): class 'query.jsp.QueryBean' could not be loaded
probably occurred due to an error in /Query.jsp line 9:
<jsp:useBean id = "queryBean" scope = "request" class = "query.jsp.QueryBean" />
But the funny thing is that after reloading the page a few times it eventually works. The bahaviour seems to be totally random - sometimes it works, sometimes it claims not finding the JavaBean class.
Anyone experienced something similar?
Thank you very much,
CharlieIs QueryBean.class located under '<appname>/Web_inf/query/jsp/'?
If it is please try changing the package name to something else like com.myclass or something like that. -
XSQL and BEA Weblogic 6.1
I spent a lot of time trying to figure out how to configure
the XSQL servlet to run on BEA Weblogic 6.1
It is really simple once you understand that you should work
off expanded directory instead of trying to get a .war or .ear
file uploaded.
I decided to give my explanation to help others...
This works with the current XDK (9.0.2.0.0D) on OTN and I got it
running on Windows 2000 and/or Solaris.
I based these instructions on Steve Muench for
"ANN Deploy Oracle XSQL Pages to OC4J" off the OTN web site.
1) get the latest xdk_java off the OTN web site.
2) create a directory (or subdirectory) named xsql (to hold the entire application
3) create /xsql/META-INF
/xsql/WEB-INF
/xsql/WEB-INF/lib
/xsql/WEB-INF/classes
structure to hold the XSQL servlet
4) create a /xsql/META-INF/application.xml with the following code:
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN'
'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<application>
<display-name>Oracle XSQL Servlet</display-name>
<description>Oracle XSQL Servlet</description>
<module>
<web>
<web-uri>xsql.war</web-uri>
<context-root>xsql</context-root>
</web>
</module>
</application>
5) create the file /xsql/WEB-INF/web.xml with the following content
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>oracle-xsql-servlet</servlet-name>
<servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>oracle-xsql-servlet</servlet-name>
<url-pattern>*.xsql</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>oracle-xsql-servlet</servlet-name>
<url-pattern>/xsql/*</url-pattern>
</servlet-mapping>
</web-app>
6)extract the xdk_java (that you copied from the OTN) on a temporary directory. (/otn)
7) copy the following files (they are in the /otn/lib subdirectory) into /xsql/WEB-INF/lib
oraclexsql.jar
xsqlserializers.jar
xmlparserv2.jar
xsu12.jar
8) copy /otn/xdk/admin/XSQLConfig.xml to xsql/WEB-INF/classes
9) copy the entire directory and subdir /otn/xdk/demo/java/xsql to /xsql/demo
10) no need to create a war or ear file as Weblogic will work better from the expanded directory
anyway and it is simpler to implement.
11) Now you need to copy that entire directory structure /xsql over to the Weblogic Application Server
config/domain-name/applications area so in my case it is
/bea/wlserver6.1/config/your_domain/applications/xsql
12) If Weblogic is running in development mode, it should deploy and load the servlet automatically.
If it is running in production mode, then we would need to restart it.
13) You should be able to test this with http://your_host:7001/xsql/demo/index.html
Any URL that specifies the /xsql will then be treated by the
XSQL Servlet.
It works for me...Hi Denis,
I followed your procedure to deploy XSQL Servlet on WebLogic 6.1. First I deployed as expanded directory structure although I turned 'Auto Deployed Enabled' flag to on for my domain, WebLogic couldn't pick up the application. Then I tried to create ear application and deployed it (In your message you are saying that don't need to create ear or war, you mean this is not just a necessity or it never could be deployed as ear/war files). I saw on the as deployed on console but when I tried the http://myhost:7001/xsql/demo/index.html, I got the following error message.
Oracle XDK Java 9.2.0.2.0 Production
XSQL-013: XSQL Page URI is null or has an invalid format.
Oracle XDK Java 9.2.0.2.0 Production
XSQL-013: XSQL Page URI is null or has an invalid format.
Can you help me to trouble shoot this problem? Thank you very much
Deha Peker
Maybe you are looking for
-
We are using Red Gate's SQL Monitor to alert (every 5 minutes) when memory grants pending are greater than zero. Several times a day we are alerted on our Devel and Prod servers. However, when querying the resource_semaphore wait type using sys.dm_os
-
Does anyone know how to remove the Oracle logo that now appears when using the Oracle look-and-feel parameter in the startup html file? I would like to use the new reports, but that would mean that I would have to redesign all my screens due to the 1
-
Hi All, I have a cursor which is giving performance issues. The query executed by the cursor is as below. There is no Full table scan on the first part of the UNION. But on the second part, there is a Full table scan on AP_INVOICES_ALL. Could you ple
-
Custom ATP integration with oracle
HI All, We have a requirement for developing Custom ATP for our client requirement. Anybody has developed this kind of custom ATP in Oracle? Can you share your experience if you come across such requirement? I think if we develop our own ATP in place
-
Hello, I have a live UCCE 8.0 system. Some tables like the TerminationCallDetail table are being deleted every 1 month. Is this a normal behaviour? If I expand the size of the HDS, will the purge happen less often? Does somebody has a reference or fe