Workshop 9.2 - ear - weblogic 8.1 problem
I've written my application in workshop 9.2 and successfully deployed it as EAR file to other domain in the same server. But I'm running into troubles when trying to deploy it to the 8.1 weblogic server. I'm getting the following error:
weblogic.management.DeploymentException: Error while loading descriptors: Error processing file 'META-INF/application.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header]
I'm quite new to this all and any tips will be helpful :)
Risto
Hello Risto,
Unfortunately, deploying a 9.2 application to a 8.1.x server is unsupported.
Hope this helps.
-Raj
Similar Messages
-
Can weblogic workshop be installed without weblogic server
I was trying a custom installation to install weblogic workshop 8.1 without weblogic server. But, when I only choose weblogic workshop, it still picks the weblogic server to install.
I want to understand can we just have weblogic workshop installed on various machines, so that we can build on various machines and finally deploy them all to a single server??
Any help for me to understand this will be much appreciated.
Note: I've installed a evaluation version of the software, not sure if that makes any difference..Has anyone else solved this problem? We too are experiencing the same problem.
We are trying to build a .JWS file from within an ANT build script. The build script compiles the site into a single EAR file that should contain a deployable and usable JWS component, however it obviously does not.
If anyone has a solution, please let us know. We're facing a code freeze on this project by this Friday and really need some help. -
Weblogic 10.0 Problems with stripes/struts
When trying to deploy the sample application for the stripes framework on weblogic 10.0 I get the following error when deploying.
<Dec 3, 2009 12:16:51 PM CET> <Error> <HTTP> <BEA-101165>
<Could not load user defined filter in web.xml:
net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
Problem instantiating default configuration objects.I actually had to switch to using the Sun JDK to get this error. JRockit does not report it, and just fails when I try to use the application. The problem appear to be weblogic 10.0 specific. No problems with jetty or tomcat, and I've heard reports that it is resolved in weblogic 10.3. Have ayone come accross similar problems when using stripes/struts on weblogic 10.0, and found a solution to this? Is there a patch available for 10.0 than fix this?
Regards
Morten
PS: I have ommited the complete stack trace, since it is monstrously huge.Guess I was wrong in thinking that this was an isolated weblogic 10.0 problem. I just downloaded weblogic 10.3 and tried to deploy the same application there, and the same error happened.
<03.des.2009 kl 15.12 CET> <Error> <HTTP> <BEA-101165>
<Could not load user defined filter in web.xml:
net.sourceforge.stripes.controller.StripesFilter.net.sourceforge.stripes.exception.StripesRuntimeException:
Problem instantiating default configuration objects.
at net.sourceforge.stripes.config.DefaultConfiguration.init(DefaultConfiguration.java:220)
at net.sourceforge.stripes.config.RuntimeConfiguration.init(RuntimeConfiguration.java:272)
at net.sourceforge.stripes.controller.StripesFilter.init(StripesFilter.java:125)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:329)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Truncated. see log file for complete stacktrace
java.lang.NullPointerException
at java.io.FilterInputStream.read(FilterInputStream.java:116)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
Truncated. see log file for complete stacktraceSo is there anyone out there with experience with struts/stripes, that can tell why this does not work? If you need to try this yourself, you can download the stripes sample application here:
http://sourceforge.net/projects/stripes/files/stripes/Stripes%201.5.2/stripes-1.5.2.zip/download
There is an example WAR called "stripes-examples.war" in the zip that is ready to be deployed.
Regards
Morten
PS: you still need to start weblogic with Sun JDK rather than JRockit to get the error. With JRockit the application simply fails when used. -
Weblogic server in workshop not deploying ear automatically
Hi,
I configured a weblogic server in the workshop studio, I added an ear to it and started. but when I try to access the web page of the web module, it says "cannot find the page".
On admin console, it doesn't show any application added to it. Only after I deploy the application manually thru admin console, I am able to run my application, but that doesn't make sense because for evey tiny change, I have to create an .ear, stop the application, deploy and again start it.
Can somebody tell me what is the problem?
Regards,
SushmaHi Sushma,
Workshop Studio is a web application development tool. Hence ear deployment isn't supported in the current release.
Please create a dynamic web application and target that tot he server
Please post all Workshop Studio related questions to the bea.workshop.developer.general newsgroup at http://forums.bea.com/bea/forum.jspa?forumID=600000007
cheers
Raj -
Using workshop to build EAR successfully but deployment of the EAR fails.
Hi there,
i've developed an application using Weblogic workshop. And also, It's been working fine when using the workshop to deploy and test in exploded format.
When building the EAR using workshop, the ear file was built successfully without any errors. But, when it's deployed as an EAR, the deployment failed!
This is the error throwing out at the console:
Aug 2, 2004 9:13:14 PM GMT+08:00> <Warning> <Deployer> <BEA-149004> <Failures w
re detected while initiating Deploy task for application Rapid.>
Aug 2, 2004 9:13:14 PM GMT+08:00> <Error> <Deployer> <BEA-149201> <Failed to co
plete the deployment task with ID 0 for the application Rapid.
ava.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean
at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.securit
.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
at java.security.SecureClassLoader.defineClass(Ljava.lang.String;[BIILja
a.security.CodeSource;)Ljava.lang.Class;(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Ljava.l
ng.String;)Ljava.lang.Class;(GenericClassLoader.java:476)
at weblogic.utils.classloaders.GenericClassLoader.findClass(Ljava.lang.S
ring;)Ljava.lang.Class;(GenericClassLoader.java:181)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;
Unknown Source)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;(
nknown Source)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(Ljava.lang.S
ring;)Ljava.lang.Class;(GenericClassLoader.java:223)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(Lja
a.lang.ClassLoader;)V(EJBModule.java:1030)
at weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.ClassLoader;)V(E
BModule.java:481)
And also, i notice that in the EAR file there is .workshop folder. will it cause any problem?
If the workshop deployed successfully in exploded format and application works properly, as well as generating the EAR file without any error, shouldn't the generated EAR file to be deployed without error?
Would anyone help up please?Did you deploy the application in a workshop enabled domain?
Hi there,
i've developed an application using Weblogic
workshop. And also, It's been working fine when
using the workshop to deploy and test in exploded
format.
When building the EAR using workshop, the ear file
was built successfully without any errors. But, when
it's deployed as an EAR, the deployment failed!
This is the error throwing out at the
console:
Aug 2, 2004 9:13:14 PM GMT+08:00> <Warning>
<Deployer> <BEA-149004> <Failures w
re detected while initiating Deploy task for
application Rapid.>
Aug 2, 2004 9:13:14 PM GMT+08:00> <Error> <Deployer>
<BEA-149201> <Failed to co
plete the deployment task with ID 0 for the
application Rapid.
ava.lang.NoClassDefFoundError:
com/bea/wlw/runtime/core/bean/SLSBContainerBean
at
at
at
t
java.lang.ClassLoader.defineClass(Ljava.lang.String;[B
IILjava.securit
.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
at
at
at
t
java.security.SecureClassLoader.defineClass(Ljava.lang
.String;[BIILja
a.security.CodeSource;)Ljava.lang.Class;(SecureClassLo
ader.java:123)
at
at
at
t
weblogic.utils.classloaders.GenericClassLoader.findLoc
alClass(Ljava.l
ng.String;)Ljava.lang.Class;(GenericClassLoader.java:4
76)
at
at
at
t
weblogic.utils.classloaders.GenericClassLoader.findCla
ss(Ljava.lang.S
ring;)Ljava.lang.Class;(GenericClassLoader.java:181)
at
at
at
t
java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Lj
ava.lang.Class;
Unknown Source)
at
at
at
t
java.lang.ClassLoader.loadClass(Ljava.lang.String;)Lja
va.lang.Class;(
nknown Source)
at
at
at
t
weblogic.utils.classloaders.GenericClassLoader.loadCla
ss(Ljava.lang.S
ring;)Ljava.lang.Class;(GenericClassLoader.java:223)
at
at
at
t
weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassD
ependencies(Lja
a.lang.ClassLoader;)V(EJBModule.java:1030)
at
at
at
t
weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.C
lassLoader;)V(E
BModule.java:481)
And also, i notice that in the EAR file there is
.workshop folder. will it cause any problem?
If the workshop deployed successfully in exploded
format and application works properly, as well as
generating the EAR file without any error, shouldn't
the generated EAR file to be deployed without error?
Would anyone help up please? -
One EAR , multiple WARs - CLASSPATH problem
Hi there,
According to [url http://e-docs.bea.com/wls/docs92/programming/splitcreate.html#wp1102496]WL 9 documentation, any thid-party library of my EAR located at APP-INF/lib can be referenced anywhere.
Unfortunately that's not happening ... :-(
This is my EAR scenario:
APP-INF\lib\log4j.jar
APP-INF\lib\struts.jar
APP-INF\lib\many-others.jar
ejb1.jar
ejb2.jar
web1.war (no jars inside)
web2.war (no jars inside)
web3.war (no jars inside)
There is no problem with EJB, but no web application can reach any jar from APP-INF\lib\ .
If I copy all jars to WEB-INF\lib inside a WAR, everything works fine. That won't be an option because I have 7 web modules and creating an EAR with the same jars 7 times is out of the question.
So, dear WL9 gurus, anyone could pull this off ? :-)You may try to use JSP compiler class. Please specify 'compilerclass'
option in weblogic.xml. This option specifies name of a Java compiler
that is executed in WebLogic Servers's virtual machine. (Used in place of
an executable compiler such as javac or sj.)
Please see
http://e-docs.bea.com/wls/docs61/webapp/weblogic_xml.html#jsp-descriptor.
Paco Garcia wrote:
> oops!
>
> >$WL_HOME/./config/DOMAIN/applications/.wl_notdelete_EARNAME
> >/wlap#####/ejbjarname.jar
>
> >with DOMAIN=DOM1, WL_HOME=W, ejbjar name=EJB1, EARNAME=EAR1
> >you get:
> >/w/./config/DOM1/applications/.wl_notdelete_EAR1/wlap#####/EJB1.jar:
>
> please read SERVERNAME instead of EARNAME
>
> PacoG.
Regards,
Ann
Developer Relations Engineer
BEA Support
-
WebLogic 7 Upgrade Problem - TxDataSource / XA Drivers
I am having major problems attempting to upgrade from WebLogic 6.1 to 7. After
installing and configuring WebLogic 7, my application wouldn't load, telling me
I needed to use TxDataSources instead of DataSources.
So I switched to TxDataSources and after increasing the Max Capacity in the pools,
I was able to get my application to load and run. However, whenever my application
tries to access two different pools in the same transaction, I get this runtime
error.
java.sql.SQLException: Connection has already been created in this tx context
fo
r pool named commcp. Illegal attempt to create connection from another pool: adm
cp
java.sql.SQLException: Connection has already been created in this tx context
fo
r pool named commcp. Illegal attempt to create connection from another pool: adm
cp
at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:339)
at weblogic.jdbc.jts.Driver.connect(Driver.java:132)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:265)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
ersistenceManager.java:698)
at dtpitb.adm.eb.conclude.ConcludeBean_8ki0z9__WebLogic_CMP_RDBMS.ejbFin
dByPrimaryKey(ConcludeBean_8ki0z9__WebLogic_CMP_RDBMS.java:968)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDB
MSPersistenceManager.java:216)
at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityM
anager.java:755)
at weblogic.ejb20.manager.BaseEntityManager.localFindByPrimaryKey(BaseEn
tityManager.java:711)
at weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJB
LocalHome.java:273)
at dtpitb.adm.eb.conclude.ConcludeBean_8ki0z9_LocalHomeImpl.findByPrimar
yKey(ConcludeBean_8ki0z9_LocalHomeImpl.java:109)
at dtpitb.adm.sb.common.SessionBeanCommon.getConclusion(SessionBeanCommo
n.java:237)
at dtpitb.adm.sb.reports.ADMReportsBean_l3bmj9_EOImpl.getConclusion(ADMR
eportsBean_l3bmj9_EOImpl.java:98)
at dtpitb.adm.webapp.worker.SearchDecisionHistory.processWork(SearchDeci
sionHistory.java:46)
at gov.nih.nci.itb.webapp.controller.Controller.service(Controller.java:
96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5445)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
From what I understand, this meant that I needed to use an XA-supported Driver.
So I installed the Oracle Thin/XA Driver (oracle.jdbc.xa.client.OracleXADataSource)
instead of the regular Oracle Thin Driver I was using (oracle.jdbc.driver.OracleDriver).
After trying that, my application will not load, throwing a bunch of XA Exceptions
similar to the following:
XA error: XAER_RMERR : A resource manager error has occured in the transaction
b
ranch start() failed on resource 'admcp': XAER_RMERR : A resource manager error
has occured in the transaction branch
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:498)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:19
0)
at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:577)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
Info.java:1178)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
ceInfo.java:1121)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
eInfo.java:287)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
rverTransactionImpl.java:407)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1157)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
109)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:147)
at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:259)
at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(Connection
Impl.java:139)
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.
java:92)
at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
.java:133)
at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
.java:79)
at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe
rifier.java:381)
at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
bleVerifier.java:432)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
BMSPersistenceManager.java:1119)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten
ceManager.java:150)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja
va:208)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java
:178)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:158)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive
nBeanInfoImpl.java:944)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1317)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:335)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication
Container.java:1662)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:1087)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:1074)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:1110)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:730)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
I now have decided I need advice.
Please advise.
Thanks,
PeteThanks, Wayne. My organization is in the process of purchasing WebLogic, but we
are still in the free trial period for another week or two.
I am using:
WebLogic 7.0 SP2
Oracle 8.1.7
(tried all 3 versions of classes12.zip)
Driver Class Name in Conn Pools:
Oracle Thin: "oracle.jdbc.driver.OracleDriver"
Also Tried:
Oracle Thin/XA: "oracle.jdbc.xa.client.OracleXADataSource"
Thanks,
Pete
"Wayne W. Scott" <[email protected]> wrote:
>
Wow, this is heavy duty stuff to be getting free support for!
Let's start with the basics to rule out known problems that have been
fixed.
Is this the base version or have you installed service packs?
Also, this is not an installation problem; it is getting into EJB and
TX. Other groups
like: w.d.i.ejb20; w.d.i.workshop; w.d.i.jdbc -- might be better.
You can also scan discussions in all groups via http://search.beasys.com/weblogic/gonews/
Also try searching at AskBEA -- http://support.bea.com/index.jsp
If these do not help, open a support case so that someone is assigned
to this.
Thank you,
Wayne Scott
Pete Hilfiker wrote:
I am having major problems attempting to upgrade from WebLogic 6.1to 7. After
installing and configuring WebLogic 7, my application wouldn't load,telling me
I needed to use TxDataSources instead of DataSources.
So I switched to TxDataSources and after increasing the Max Capacityin the pools,
I was able to get my application to load and run. However, whenevermy application
tries to access two different pools in the same transaction, I getthis runtime
error.
java.sql.SQLException: Connection has already been created in thistx context
fo
r pool named commcp. Illegal attempt to create connection from anotherpool: adm
cp
java.sql.SQLException: Connection has already been created in thistx context
fo
r pool named commcp. Illegal attempt to create connection from anotherpool: adm
cp
at weblogic.jdbc.jts.Driver.getExistingConnection(Driver.java:339)
at weblogic.jdbc.jts.Driver.connect(Driver.java:132)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
ce.java:265)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSP
ersistenceManager.java:698)
at dtpitb.adm.eb.conclude.ConcludeBean_8ki0z9__WebLogic_CMP_RDBMS.ejbFin
dByPrimaryKey(ConcludeBean_8ki0z9__WebLogic_CMP_RDBMS.java:968)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDB
MSPersistenceManager.java:216)
at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityM
anager.java:755)
at weblogic.ejb20.manager.BaseEntityManager.localFindByPrimaryKey(BaseEn
tityManager.java:711)
at weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJB
LocalHome.java:273)
at dtpitb.adm.eb.conclude.ConcludeBean_8ki0z9_LocalHomeImpl.findByPrimar
yKey(ConcludeBean_8ki0z9_LocalHomeImpl.java:109)
at dtpitb.adm.sb.common.SessionBeanCommon.getConclusion(SessionBeanCommo
n.java:237)
at dtpitb.adm.sb.reports.ADMReportsBean_l3bmj9_EOImpl.getConclusion(ADMR
eportsBean_l3bmj9_EOImpl.java:98)
at dtpitb.adm.webapp.worker.SearchDecisionHistory.processWork(SearchDeci
sionHistory.java:46)
at gov.nih.nci.itb.webapp.controller.Controller.service(Controller.java:
96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5445)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
From what I understand, this meant that I needed to use an XA-supportedDriver.
So I installed the Oracle Thin/XA Driver (oracle.jdbc.xa.client.OracleXADataSource)
instead of the regular Oracle Thin Driver I was using (oracle.jdbc.driver.OracleDriver).
After trying that, my application will not load, throwing a bunch ofXA Exceptions
similar to the following:
XA error: XAER_RMERR : A resource manager error has occured in thetransaction
b
ranch start() failed on resource 'admcp': XAER_RMERR : A resource managererror
has occured in the transaction branch
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:498)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:19
0)
at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:577)
at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
Info.java:1178)
at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
ceInfo.java:1121)
at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
eInfo.java:287)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
rverTransactionImpl.java:407)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1157)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
109)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:147)
at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:259)
at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(Connection
Impl.java:139)
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.
java:92)
at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
.java:133)
at weblogic.ejb20.utils.TableVerifier.checkTableAndColumns(TableVerifier
.java:79)
at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVe
rifier.java:381)
at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(Ta
bleVerifier.java:432)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RD
BMSPersistenceManager.java:1119)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersisten
ceManager.java:150)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.ja
va:208)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java
:178)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:158)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrive
nBeanInfoImpl.java:944)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1317)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:335)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplication
Container.java:1662)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:1087)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:1074)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:1110)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:730)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
I now have decided I need advice.
Please advise.
Thanks,
Pete -
Apache/2.2.4 (Win32) + Weblogic 8.1 Problem with Module
Hey together,
i'm pretty new to this whole weblogic thing.
I wanted to install the apache plugin for weblogic. I am using weblogic 8.1 and apache 2.2.4 on win xp sp2.
I followed the instructions given in the tutorial at bea.com.
When i try to test the conf-file via httpd.exe -t i get
httpd.exe: Syntax error on line 116 of C:/Programme/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:
/Programme/Apache Software Foundation/Apache2.2/modules/mod_wl_20.so into server: Das angegebene Modul wurde nicht gefun
den.
But the mod_wl_20.so file is definitley in this directory as all the other modules.
This is the important part of my httpd.conf:
<IfModule mod_weblogic.c>
<Location /weblogic>
SetHandler weblogic-handler
WebLogicHost localhost
WebLogicPort 7101
MatchExpression *
</Location>
</IfModule>
I even downloaded the latest version of this plugin without sucess. It's all 32 bit, so there should be no problems with that.
I read through several topics/threads dealing with same problems but without success.
Could any1 help please?
Thanks in advance.Hi,
What do you have on line 116 ? I have it setup on Win2k and it works fine with the following statements. Only difference is that I have Apache 2.0.54 (not 2.2.x)
LoadModule weblogic_module modules/mod_wl_20.so
<Location /wlPortal >
SetHandler weblogic-handler
WebLogicHost localhost
WebLogicPort 7001
</Location>
Kevin. -
Reg Weblogic Server Startup Problem
Hi
I have configured the weblogic Application Server using Oracle SOA11g
When i started the weblogic server, i am getting below exception.
Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1(11.1.1.5.0) (Build 110305)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Error Code: 942
Call: SELECT DRIVER_NAME, MIME_TYPES, PROTOCOLS, CARRIERS, SENDER_ADDRESSES, COS
T, DELIVERY_TYPES, SPEED, STATUS_TYPES, CHECKSUM, SUPPORTS_CANCEL, ENCODINGS, SU
PPORTS_REPLACE, SUPPORTS_TRACKING, SUPPORTS_STATUS_POLLING, DEFAULT_SENDER, CAPA
BILITY, LOCK_VERSION FROM DRIVER_INFO
Query: ReadAllQuery(oracle.sdpinternal.messaging.config.DriverInfo)>
Pls find below log from AdminServer.log and domain_name.log
MDS-01370: MetadataStore configuration for metadata-store-usage "soa-infra-store" is invalid.
ORA-06550: line 1, column 12:
PLS-00201: identifier 'MDS_INTERNAL_SHREDDED.GETREPOSITORYVERSION' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I have tried several solutions for above problem:
Sol1:
I have checked my datasource.
The database details and URL are correct and i am able to test the connection and the DB is up and running.
Sol2:
I dropped RCU and created again but it didnt resolve the issue.
Sol3:
I have renamed the folders tmp, cache and data folders to in the below location
C:\Oracle\Middleware\user_projects\domains\SOA_domain\servers\AdminServer
After starting the weblogic server,these folders are created again but problem is not solved.
Sol4:
Logged intoto Weblogic console->services->Data Source->Click on SOADataSource->Go to Transaction tab->verify 'XA Transaction Timeout:' is set to 0
Sol5:
The schemas details in RCU and during the SOA configuration, there is a screen called "Configure JDBC Component Schema".
The schema details are same in both cases
Sol6: Dropped Database, RCU and SOA and installed again.
But the problem is not solved.
Now i am getting below exception also:
Caused by: javax.ejb.CreateException: SDP-25700: An unexpected exception was cau
ght.
Cause: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.Res
ourceException: Could not create pool connection. The DBMS driver exception was:
IO Error: The Network Adapter could not establish the connection
Action: Check the stack trace for more details.
at oracle.sdpinternal.messaging.storage.MessagingStoreBean.ejbCreate(Mes
sagingStoreBean.java:174)
at oracle.sdpinternal.messaging.storage.MessagingStore_urkbp2_Impl.ejbCr
eate(Unknown Source)
... 56 more
; nested exception is: com.oracle.pitchfork.interfaces.LifecycleCallbackExceptio
n: Failure to invoke public void oracle.sdpinternal.messaging.storage.MessagingS
tore_urkbp2_Impl.ejbCreate() throws javax.ejb.CreateException,javax.ejb.EJBExcep
tion on bean class class oracle.sdpinternal.messaging.storage.MessagingStore_urk
bp2_Impl with args: []>
I have tried deleting tmp folder and renaming tmp, data and cache folders in C:\Oracle\Middleware\user_projects\domains\BPM_Sample_domain\servers\AdminServer location.
But the problem still perists.
Please help me in resolving the issue.
Regards
SwathiHi Swati,
When you see this error
Cause: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.Res
ourceException: Could not create pool connection. The DBMS driver exception was:
IO Error: The Network Adapter could not establish the connection
Action: Check the stack trace for more details.
That means Datasource Connection Pool is failing to create a pool either due to DB is down or no connection made by Pool resource.
Try to tune the Datasource with following parameter will help you.
1. Eanble Test connection on reseve
2. Connection creation retry frequency second set as 10 these two parameter make reconnect back to you DB and Pool start executing correctly.
After enable still have problem please provide complete stack.
Regards,
Kal -
J2SE 1.3 client - Weblogic 8.14 Problem with unmarshal exception
Hi
I have problem with using RMI IIOP with J2SE 1.3.1_01 - Weblogic 8.1 SP4. Client is runing good, methods are working perfectly, but when EJB throws my exception, it is not serialized and thrown on client but MarshalException is thrown.
I did everything as it is in weblogic documentation and I really do not know what to do.
Also I read in weblogic documentation this note:
Limitations Using RMI-IIOP on the Client
Use WebLogic Server with JDK 1.3.1_01 or higher. Earlier versions are not RMI-IIOP compliant. Note the following about these earlier JDKs:
Do not correctly unmarshal unchecked exceptions.But I am using 1.3.1_01 ...
When I run it with 1.4 it is of course running without problem.
Martin
My Exception :
java.io.IOException:
at com.sun.corba.se.internal.io.IIOPInputStream.throwExceptionType(Native Method)
at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:272)
at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:245)
at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:207)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1059)
at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
at Pokus.main(Pokus.java:59)
java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1065)
at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
at Pokus.main(Pokus.java:59)
Exception in thread "main"Hi,
I am sending the supported configuration link
please go through it.
http://e-docs.bea.com/platform/suppconfigs/configs81/81_over/overview.html#1146550
Regards
Prasanna Yalam -
Weblogic Plugin Configuration Problem -- no more in server list
HELP! Has anyone seen anything like this before. What we are seeing
is that the plugin sporadically sends requests to the wrong weblogic
instance. When it sends it to the wrong instance we are seeing the
following in the wlproxy.log. Like I said, this happens sporadically.
Sometimes it will work just fine for an entire transaction. Does
anyone know what the "no more in server list" means. We've had bea on
the phone for the last 12 hours and they haven't been able to help us
up to this point. If I need to send any more information please let
me know....
Thanks in advance!!!
Jeremy Martin
========New Request: [POST
/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000
HTTP/1.1] =========
Wed Mar 20 08:45:14 2002 Content-Length=368 clength=0
Wed Mar 20 08:45:14 2002 Going to get the post data of size 368
Wed Mar 20 08:45:14 2002 SEARCHING
id=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001]
from current ID=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001]
Wed Mar 20 08:45:14 2002
@@@FOUND...id=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001],
server_name=[p02n0310.it.sprintspectrum.com], server_port=[80]
Wed Mar 20 08:45:14 2002 Init:
availcookie=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
COLORS=spring; ZIPCODE=64119]
Wed Mar 20 08:45:14 2002 PRIMARY 207.40.168.118:7001 no more in server
list
Wed Mar 20 08:45:14 2002 The request string is
'/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000'
Wed Mar 20 08:45:14 2002 After trimming path:
'/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000'
Wed Mar 20 08:45:14 2002 Now trying whatever is on the list;
ci->canUseSrvrList = 1
Wed Mar 20 08:45:14 2002 AttemptConnect(): Srvr# [1] =
[207.40.168.115:7001]
Wed Mar 20 08:45:14 2002 AttemptConnect(): Srvr# [2] =
[207.40.168.13:7001]
Wed Mar 20 08:45:14 2002 general list: trying connect to
'207.40.168.13'/7001
Wed Mar 20 08:45:14 2002 Connected to 207.40.168.13:7001
Wed Mar 20 08:45:14 2002 Headers from the client [Accept]=[*/*]
Wed Mar 20 08:45:14 2002 Headers from the client
[Accept-Encoding]=[gzip, deflate]
Wed Mar 20 08:45:14 2002 Headers from the client
[accept-language]=[en-us]
Wed Mar 20 08:45:14 2002 Headers from the client
[Cache-Control]=[no-cache]
Wed Mar 20 08:45:14 2002 Headers from the client
[Content-Length]=[368]
Wed Mar 20 08:45:14 2002 Headers from the client
[content-type]=[text/xml]
Wed Mar 20 08:45:14 2002 Headers from the client
[Cookie]=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
COLORS=spring; ZIPCODE=64119]
Wed Mar 20 08:45:14 2002 Headers from the client
[Host]=[rmsweb.intranet.sprintspectrum.com]
Wed Mar 20 08:45:14 2002 Headers from the client
[User-Agent]=[Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)]
Wed Mar 20 08:45:14 2002 Sending header to WLS [Accept]=[*/*]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[Accept-Encoding]=[gzip, deflate]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[accept-language]=[en-us]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[Cache-Control]=[no-cache]
Wed Mar 20 08:45:14 2002 Sending header to WLS [Content-Length]=[368]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[content-type]=[text/xml]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[Cookie]=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
COLORS=spring; ZIPCODE=64119]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[Host]=[rmsweb.intranet.sprintspectrum.com]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[User-Agent]=[Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[X-WebLogic-Force-Cookie]=[true]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[Proxy-Client-IP]=[207.167.161.73]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[X-Forwarded-For]=[207.167.161.73]
Wed Mar 20 08:45:14 2002 Sending header to WLS
[x-weblogic-cluster-hash]=[fw44lcQkjNI+PhjBPgtTl5Qwmi4]
Wed Mar 20 08:45:16 2002 Header received from WLS : [HTTP/1.1 200 OK]
= []
Wed Mar 20 08:45:16 2002 Header received from WLS : [Server] =
[WebLogic 5.1.0 Service Pack 11 11/20/2001 08:39:10 #149952]
Wed Mar 20 08:45:16 2002 Header received from WLS : [Content-Length]
= [622]
Wed Mar 20 08:45:16 2002 Header received from WLS : [Content-Type] =
[text/xml]
Wed Mar 20 08:45:16 2002 Header received from WLS : [X-WebLogic-Load]
= [0]
Wed Mar 20 08:45:16 2002 Header received from WLS : [Set-Cookie] =
[WebLogicSession=PJigemmFCOSmpZvQ8VD8AEn7t7RtPEEbSQqarpCmUYbNZ5nhoL9j|-9091816865617485599/-819419123/6/7001/7001/7002/7002/7001/-1;
expires=Sunday, 11-May-2003 06:45:16 GMT; path=/]
Wed Mar 20 08:45:16 2002 Header received from WLS : [Connection] =
[Close]
Wed Mar 20 08:45:16 2002 Headers to the client [Server]=[WebLogic
5.1.0 Service Pack 11 11/20/2001 08:39:10 #149952]
Wed Mar 20 08:45:16 2002 Headers to the client [Content-Length]=[622]
Wed Mar 20 08:45:16 2002 Headers to the client
[Set-Cookie]=[WebLogicSession=PJigemmFCOSmpZvQ8VD8AEn7t7RtPEEbSQqarpCmUYbNZ5nhoL9j|-9091816865617485599/-819419123/6/7001/7001/7002/7002/7001/-1;
expires=Sunday, 11-May-2003 06:45:16 GMT; path=/]
Wed Mar 20 08:45:16 2002 r->status=200 returning 0
Wed Mar 20 08:46:58 2002
This one sound stricky. Have you checked all the usual suspects:
-same cookie name in WB-INF/weblogic.xml and the cookiename set in
plugin settings (defualts to JSESSIONID in 6.x)
-network errors between web servers and WLS servers
That utility can be invaluable in solving problems like this.I have seen
session settings cause sessions to be lost, but never the message you
are talking about. Try turning on the "DebugConfigInfo" setting and see
what the "?__WebLogicBridgeConfig" page can tell you about your
settings, what server list it is using and what servers are
primary/secondary. One tip, you need to hit the WLS server one time, and
then use the "?__WebLogicBridgeConfig". Until it communicates with the
WLS server, it can only tell you it's own settings and not any
information about up servers and primary/secondary assignements. Also
look to make sure each server in the "Server List" has a blue ":OK" next
to it to signify the plugin can see them.
Hope that can help, though I am not sure they will deal with the problem
you are seeing. Make sure you post the outcome to this issue, I will be
very interested in seeing it.
-Mark Vaughn
Jeremy Martin wrote:
>HELP! Has anyone seen anything like this before. What we are seeing
>is that the plugin sporadically sends requests to the wrong weblogic
>instance. When it sends it to the wrong instance we are seeing the
>following in the wlproxy.log. Like I said, this happens sporadically.
> Sometimes it will work just fine for an entire transaction. Does
>anyone know what the "no more in server list" means. We've had bea on
>the phone for the last 12 hours and they haven't been able to help us
>up to this point. If I need to send any more information please let
>me know....
>
>Thanks in advance!!!
>
>Jeremy Martin
>
>========New Request: [POST
>/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000
>HTTP/1.1] =========
>Wed Mar 20 08:45:14 2002 Content-Length=368 clength=0
>Wed Mar 20 08:45:14 2002 Going to get the post data of size 368
>Wed Mar 20 08:45:14 2002 SEARCHING
>id=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001]
>from current ID=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001]
>Wed Mar 20 08:45:14 2002
>@@@FOUND...id=[207.40.168.13:7001,207.40.168.115:7001,207.40.168.34:7001,207.40.168.118:7001],
>server_name=[p02n0310.it.sprintspectrum.com], server_port=[80]
>Wed Mar 20 08:45:14 2002 Init:
>availcookie=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
>CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
>CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
>COLORS=spring; ZIPCODE=64119]
>Wed Mar 20 08:45:14 2002 PRIMARY 207.40.168.118:7001 no more in server
>list
>Wed Mar 20 08:45:14 2002 The request string is
>'/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000'
>Wed Mar 20 08:45:14 2002 After trimming path:
>'/ra/controller/AuthenticationConversation/getAuthenticationXmlInfo?currenttime=03/20/2002%2008:45:12:548000'
>Wed Mar 20 08:45:14 2002 Now trying whatever is on the list;
>ci->canUseSrvrList = 1
>Wed Mar 20 08:45:14 2002 AttemptConnect(): Srvr# [1] =
>[207.40.168.115:7001]
>Wed Mar 20 08:45:14 2002 AttemptConnect(): Srvr# [2] =
>[207.40.168.13:7001]
>Wed Mar 20 08:45:14 2002 general list: trying connect to
>'207.40.168.13'/7001
>Wed Mar 20 08:45:14 2002 Connected to 207.40.168.13:7001
>Wed Mar 20 08:45:14 2002 Headers from the client [Accept]=[*/*]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[Accept-Encoding]=[gzip, deflate]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[accept-language]=[en-us]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[Cache-Control]=[no-cache]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[Content-Length]=[368]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[content-type]=[text/xml]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[Cookie]=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
>CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
>CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
>COLORS=spring; ZIPCODE=64119]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[Host]=[rmsweb.intranet.sprintspectrum.com]
>Wed Mar 20 08:45:14 2002 Headers from the client
>[User-Agent]=[Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)]
>Wed Mar 20 08:45:14 2002 Sending header to WLS [Accept]=[*/*]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[Accept-Encoding]=[gzip, deflate]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[accept-language]=[en-us]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[Cache-Control]=[no-cache]
>Wed Mar 20 08:45:14 2002 Sending header to WLS [Content-Length]=[368]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[content-type]=[text/xml]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[Cookie]=[WebLogicSession=PJZrt2jMA3CQTgvq2s31nz1Z1nh59Z81CQalCmaZLPWO2yVpAy71|6556818855266464983/-819419018/6/7001/7001/7002/7002/7001/-1;
>CFID=17578; CFTOKEN=9604102; FULLACCESS=1;
>CFGLOBALS=HITCOUNT%3D200%23LASTVISIT%3D%7Bts+%272002%2D03%2D06+10%3A52%3A38%27%7D%23TIMECREATED%3D%7Bts+%272001%2D11%2D03+17%3A29%3A44%27%7D%23;
>COLORS=spring; ZIPCODE=64119]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[Host]=[rmsweb.intranet.sprintspectrum.com]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[User-Agent]=[Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[X-WebLogic-Force-Cookie]=[true]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[Proxy-Client-IP]=[207.167.161.73]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[X-Forwarded-For]=[207.167.161.73]
>Wed Mar 20 08:45:14 2002 Sending header to WLS
>[x-weblogic-cluster-hash]=[fw44lcQkjNI+PhjBPgtTl5Qwmi4]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [HTTP/1.1 200 OK]
>= []
>Wed Mar 20 08:45:16 2002 Header received from WLS : [Server] =
>[WebLogic 5.1.0 Service Pack 11 11/20/2001 08:39:10 #149952]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [Content-Length]
>= [622]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [Content-Type] =
>[text/xml]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [X-WebLogic-Load]
>= [0]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [Set-Cookie] =
>[WebLogicSession=PJigemmFCOSmpZvQ8VD8AEn7t7RtPEEbSQqarpCmUYbNZ5nhoL9j|-9091816865617485599/-819419123/6/7001/7001/7002/7002/7001/-1;
>expires=Sunday, 11-May-2003 06:45:16 GMT; path=/]
>Wed Mar 20 08:45:16 2002 Header received from WLS : [Connection] =
>[Close]
>Wed Mar 20 08:45:16 2002 Headers to the client [Server]=[WebLogic
>5.1.0 Service Pack 11 11/20/2001 08:39:10 #149952]
>Wed Mar 20 08:45:16 2002 Headers to the client [Content-Length]=[622]
>Wed Mar 20 08:45:16 2002 Headers to the client
>[Set-Cookie]=[WebLogicSession=PJigemmFCOSmpZvQ8VD8AEn7t7RtPEEbSQqarpCmUYbNZ5nhoL9j|-9091816865617485599/-819419123/6/7001/7001/7002/7002/7001/-1;
>expires=Sunday, 11-May-2003 06:45:16 GMT; path=/]
>Wed Mar 20 08:45:16 2002 r->status=200 returning 0
>Wed Mar 20 08:46:58 2002
>
-
Weblogic 7 SP2 - problem in ejb-jar.xml
Hi,
I have a problem when trying to move from Weblogic 7 to 7 SP2. In some of our
ejb-jar.xml descriptors we have something like the following:
<!ENTITY ENTITY_PROP SYSTEM "Config/entity_config.txt">
then used this later on in the descriptor:
<env-entry-value>&ENTITY_PROP;</env-entry-value>
In all previous versions this would work fine with the Config directory sat in
the domain directory but when we are trying to move to SP2 the ejb's are failing
at deployment time with errors like:
weblogic.xml.process.XMLParsingException: File "zip://C/bea/user_projects/mydomain/myserver/.wlnotdelete/ScanServer/MkpCodeServerEJB.jar!/META-INF/Config/entity_config.txt"
not found. - with nested exception:
[org.xml.sax.SAXParseException: File "zip://C/bea/user_projects/mydomain/myserver/.wlnotdelete/ScanServer/MkpCodeServerEJB.jar!/META-INF/Config/entity_config.txt"
not found.].....
What has changed? What can I do to solve the problem?
thank you,
IanHi,
Please ignore the previous post. it is a bug in 10.3. Please contact the support and get the patch. The bug no is 8180493. thanks.
-Albert
Edited by: zhao.yong on 2009-6-22 下午11:17 -
Re: WebLogic RDB jdbc problem
Hi Joe,
I tried the two things you asked:
1. Setting the initial and max capacity of the Connection Pool to 1 does not make
any further difference, the reselt set is still sometimes empty.
2. If I use the code from the stand-alone application (thus if I get the connection
directly from the driver) than I get a good result: the retrieved result set is,
as far as I can see, always correctly filled.
In addition I tried to cast the Connection to WLConnection and then get the vendor
connection from it, and than to proceed with this connection further on, but this
did not make it any better.
Almir.
Joe Weinstein <[email protected]> wrote:
>
>
Almir wrote:
Hi Joe,
thanks for your quick answer to my questions. I red your sugestionsand tried
them out but unfortunately it did not make me come any further in searchfor answer
to this odd problem. Setting the statement cache size to 0 (I've alreadytried
this before your response) did not make any difference at all. Refreshingthe
statement before reuse neighter.
I also tried to make the stand-alone application to go wrong. But nomatter whether
I reuse connection and/or statement or whether I instantiate the newones every
time, the execution of the statement always comes back with a validand filled
ResultSet.
Interesting thing to mention aboout executing the statement withinthe server
is that if I put it in a loop of let say 100 repeats, it succeeds orit fails
all 100 times. Next time i execute this bean method where the loopis situated
it will again succeed or fail all 100 times. It remains consequentwithin the
same loop/bean method. Even if I get the data source and the connectionevery
time again (100 times) it remains consequent. Thi is maybe interestingfinding
but it does not say anything to me. Perhaps you can make some conclusionsout
of it.
Best regards,
Almir.Hmmmmm.... Interesting. The only other thing I can suspect is that the
driver
is not threadsafe... Would you try these two experiments?
1 - Alter the weblogic server to define the pool to have only one connection,
ie: initial capacity = 1 and max capacity = 1. Let me know if the
problem
is still there.
2 - Alter the application code you run in the server to get a connection
directly
from the driver, just like the standalone code.
Let me know...
Joe
Joe Weinstein <[email protected]> wrote:
Hi Almir.
I highly suspect the RDB driver of a bug where re-using a given Prepared
Statement
will sometimes produce an empty result set. Weblogic will cache your
prepared statements
so when you call prepareStatement() we may transparently return you
a
previously-used
statement for the same SQL and arguments.
To prove my theory, please do these two things:
1 - Define your pool's statement cache to be of size zero. This should
make the problem
go away.
2 - In a standalone program, you can create a given PreparedStatement,
and rerun it in
a loop, and see if it ever returns an empty result set. I will showyou
how to include
the code we do to refresh the statement before reuse:
try
Class.forName ("oracle.rdb.jdbc.rdbThin.Driver");
Connection conn = DriverManager.getConnection("jdbc:rdbThin://<database_name>","<user>",
"<pass>");
String sqlStatement = "SELECT TABEL1.COLUMN1, TABEL1.COLUMN2,
TABEL2.COLUMN1
FROM TABEL1, TABEL2 WHERE (TABEL2.COLUMN2= TABEL1.COLUMN3) AND (TABEL2.COLUMN1
= ?)ORDER BY TABEL1.COLUMN1";
PreparedStatement ps = conn.prepareStatement(sqlStatement,
ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
for (int i = 0; i < 100; i++)
ps.setObject(1, new Integer(1));
boolean result = ps.execute();
ResultSet rs = ps.getResultSet();
// check result set here
rs.close();
cleanUpStatementForReUse(ps);
ps.close();
conn.close();
catch (Exception ex)
System.out.println(ex);
private void cleanUpStatementForReUse(PreparedStatement p)
try { p.clearParameters(); p.clearBatch(); } catch (Throwable ignore)
try { p.setEscapeProcessing(true); } catch (Throwable ignore) {}
try
if (p.getFetchDirection() != ResultSet.FETCH_FORWARD)
p.setFetchDirection(ResultSet.FETCH_FORWARD);
} catch (Throwable ignore) {}
try
if (p.getFetchSize() != 0)
p.setFetchSize(0);
} catch (Throwable ignore) {}
try
if (p.getMaxFieldSize() != 0)
p.setMaxFieldSize(0);
catch (Throwable ignore) {}
try
if (p.getMaxRows() != 0)
p.setMaxRows(0);
catch (Throwable ignore) {}
try
if (p.getQueryTimeout() != 0)
p.setQueryTimeout(0);
catch (Throwable ignore) {}
try
p.clearWarnings();
catch (Throwable ignore) {}
Almir wrote:
Hello everybody,
we are developing an application for Bea WebLogic Application Server8.1. This
application uses data from an existing database. This is an OracleRDB 7-1.220
database. Because the WebLogic AS does not include a JDBC driver forthis type
of database we got one from Oracle: RDBJDBC71. I installed this driverand tested
it by using a standalone Java application which executes a number
of
SQL statemens.
This test was satisfying, no problems occured.
Then, in order to use it within the application server, I defined
a
JDBC Connection
Pool in WebLogic with corresponding Data Source. And it worked, ourapplication
could connect with the database and execute the needed transactions.
But after a while we noticed a realy strange problem. When a particularSELECT
SQL stament is executed we expect a list of 6 records as result. Butsometimes
the returned resultset is just empty. I tried this hundreds of times.No error
or exception occurs but sometimes the response is correct and sometimesnot.
In the first place we thought that the JDBC driver was causing thisproblem but
then I executed the same SQL Select statement within a Java stand-aloneapplication
(and not using the Application Server) and the result was correct.Repeating this
hundreds of times did not change the outcome, the given resultset
was
always correct.
I tried reconfigurating the Connection Pool in different ways but
it
did not make
any difference: sometimes it worked and sometimes it didn't.
Here below you can see the code samples of both implementations.
Stand-alone:
try
Class.forName ("oracle.rdb.jdbc.rdbThin.Driver");
Connection conn = DriverManager.getConnection("jdbc:rdbThin://<database_name>","<user>",
"<pass>");
String sqlStatement = "SELECT TABEL1.COLUMN1, TABEL1.COLUMN2,TABEL2.COLUMN1
FROM TABEL1, TABEL2 WHERE (TABEL2.COLUMN2= TABEL1.COLUMN3) AND (TABEL2.COLUMN1
= ?)ORDER BY TABEL1.COLUMN1";
PreparedStatement ps = conn.prepareStatement(sqlStatement,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ps.setObject(1, new Integer(1));
boolean result = ps.execute();
ResultSet rs = ps.getResultSet();
// Result set is here always filled!!!!
rs.close();
ps.close();
conn.close();
catch (Exception ex)
System.out.println(ex);
Application server:
try
Context ctx = new InitialContext();
Object object = ctx.lookup(data_store_name);
DataStore ds = (DataStore)object;
Connection conn = ds.getConnection();
String sqlStatement = "SELECT TABEL1.COLUMN1, TABEL1.COLUMN2,TABEL2.COLUMN1
FROM TABEL1, TABEL2 WHERE (TABEL2.COLUMN2= TABEL1.COLUMN3) AND (TABEL2.COLUMN1
= ?)ORDER BY TABEL1.COLUMN1";
PreparedStatement ps = (PreparedStatement)conn.prepareStatement(sqlStatement,
ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ps.setObject(1, new Integer(1));
boolean result = ps.execute();
ResultSet rs = ps.getResultSet();
// Result set is here sometimes empty !!!!
rs.close();
ps.close();
conn.close();
catch (Exception ex)
System.out.println(ex);
Any sugestions are welcome.
Thanks.
Almir.I have had the same problem as you with sporadic results for queries with RDB Drivers. Were you able to solve it and if so how?
Sam Opoku-Boadu -
Workshop 8.1 EAR file production / development confusion!
Hi I am trying to create an EAR for deploymnet on a managaed server in production
mode. The managed server exists on another machaine. I have a few questions regarding
this.
Is the EAR file produced by the workshop 8.1 menu item only for use for a server
running in development mode?
Can I produce an EAR for a server in production mode by auto generating a build.xml
file with the supplied command line tool ( can't remember it;'s name) within my
application directory created by the workshop 8.1 IDE , and then use the wlpackage
tool on the build.xml to produce a production mode EAR?
Please can someone elp me on this one cheers :)"martin" <[email protected]> wrote in message
news:407fefc7$[email protected]..
>
Hi I am trying to create an EAR for deploymnet on a managaed server inproduction
mode. The managed server exists on another machaine. I have a fewquestions regarding
this.
Is the EAR file produced by the workshop 8.1 menu item only for use for aserver
running in development mode?You should be able to use this EAR file in production...
>
Can I produce an EAR for a server in production mode by auto generating abuild.xml
file with the supplied command line tool ( can't remember it;'s name)within my
application directory created by the workshop 8.1 IDE , and then use thewlpackage
tool on the build.xml to produce a production mode EAR?
Please can someone elp me on this one cheers :) -
Weblogic startup class: problem calling EJB's
Has anyone ever experienced a problem in using a startup class (registered in weblogic.properties)
and tried to lookup and use an EJB in the same application?
Basically, I have a startup class which registers to receive messages from an
MQ queue, and when it receives a message, it tries to do a lookup of a bean and
use it, but I receive a 'NullPointerException'.
I'm running Weblogic 5.1
(I know that Weblogic 6.0 makes use of MessageDrivenBeans, but my app isn't using
6 or EJB 2.0)
Thanks...Can you post weblogic.log? Are you sure that EJB was deployed successfully.
Also comment the PROVIDER_URL in initial context and see if that solves the problem
Viresh Garg
BEA Systems
shaun wrote:
The exception is simply a 'NullPointerException' coming from the startup class
(I don't have the old log file or I would include the trace here.). Basically,
when my startup class receives a call to the onMessage(...) method (from listening
for messages), it looks up an EJB on the server, through the InitialContect class
and gets a 'null' returned back, thereby throwing the NullPointerException.
If anyone else is successful in having a startup class which can lookup and call
an EJB within the same Weblogic server, please help.
Thanks again....
Viresh Garg <[email protected]> wrote:
Can you post the exception stack trace? Also what exactly are you doing
in startup class.
Viresh Garg
Principal Developer Relations Engineer
BEA Systems
Shaun wrote:
Has anyone ever experienced a problem in using a startup class (registeredin weblogic.properties)
and tried to lookup and use an EJB in the same application?
Basically, I have a startup class which registers to receive messagesfrom an
MQ queue, and when it receives a message, it tries to do a lookup ofa bean and
use it, but I receive a 'NullPointerException'.
I'm running Weblogic 5.1
(I know that Weblogic 6.0 makes use of MessageDrivenBeans, but my appisn't using
6 or EJB 2.0)
Thanks...
Maybe you are looking for
-
Customizing Printed Purchase Order (XML) in R12
Hi, I need to customize the Printed Purchase Order (which is sent to Supplier). I see the existing report (Executable: XDODTEXE Method: Java Concurrent Program) , I tried to download the template with data definition code=POXPRPOL_XML but i dont see
-
I want to set Firefox to automatically download or save a PDF without the panel coming up to ask me. However, when I go to Firefox->Preferences->Applications there is no entry for PDF files to set it to open or save the file without asking me (i.e.,
-
Dear all, Notice either from Contract or Info record, when select "Condition" button there is a popup window that display a 2 condition types. I need to double click one of the condition type can further define the pricing. My question is, from SPRO
-
FOOTER IS NOT MOVING AS I ADJUST PAGE HEIGHT
I MEAN THE FOOTER NOT MOVING CORRESPONDING TO A NEW CHANGE IN HEIGHT.IF I CHANGE THE HEIGHT THE FOOTER STILL STAYS IN MIDDLE.IT IS NOT MOVING AUTOMATICALLY AS I SAW IN THE TUTORIAL.PLEASE HELP.
-
Music in library not play, why? how fix?
some music in library not play, why? how fix?