XSQL und BEA Weblogic ERROR:XSQL-013
We develop an web-application using XSQL to generate XML, which is further transformed via XSL to HTML or PDF.
As IDE we use JDeveloper 9.0.3.1.
Running and debugging in JDeveloper works fine.
We deploy the application as war-file on bea weblogic 7.2.
When starting the xsql-servlet / calling the xsql file we get the following error:
Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
XSQL-013: XSQL Page URI is null or has an invalid format.
XSQLConfig is located in:
WEB-INF\classes\XSQLConfig.xml</li>
XSQLConfig remains untouched and holds the right connection (OCI)
<connection name="KimOci">
<username>...</username>
<password>...</password>
<dburl>jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=...)(PORT=...)))(CONNECT_DATA=(SID=...)))</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
XSQL-File starts with
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
<xsql:include-request-params/>
<xsql:include-param name="ImageUrl"/>
<xsql:include-param name="BaseUrl"/>
<xsql:include-param name="LocalUrl"/>
<xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="global" row-element="date">
select ...
Whats wrong or missing?
Thanks
Trying to check whats going on within the XSQL-Prozessor we tried the programmatic approach.
First step is to call XSQL from within an action /jsp .
<%
String baseUrl = request.getScheme()
+ "://"
+ request.getServerName()
+ ":"
+ request.getServerPort()
//+ "/"
+ request.getContextPath()
+ "/"
URL pageUrl = new URL(baseUrl+"report/untitled2.xsql");
XSQLRequest req = new XSQLRequest(pageUrl);
PrintWriter of = new PrintWriter( new FileOutputStream("./report.xml"));
PrintWriter ef = new PrintWriter( response.getOutputStream());
Hashtable params = new Hashtable(0);
req.process(params, of, ef );
%>
But still there is an error.
This time we got:
Oracle XSQL Programmatic Page Processor 9.0.3.0.0 (Production) XSQL-005: XSQL page is not well-formed. XML parse error at line 2, char 1 Expected 'EOF'
The code of untitled2.xsql
<?xml version = "1.0" encoding = "ISO-8859-1"?>
<page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
<amen>leer</amen>
</page>
Similar Messages
-
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 -
BEA Weblogic error......
I'm running WL 6.1-SP2, petstore 1.1.2 deployathon, oracle 9i.
When I start the "StartExampesServer" script this is the error.
<Aug 6, 2002 5:54:47 PM CDT> <Notice> <Management> <Loading configuration file
.\config\examples\config.xml ...>
<Aug 6, 2002 5:54:53 PM CDT> <Notice> <WebLogicServer> <Starting WebLogic Admin
Server "examplesServer" for domain "exam
ples">
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Couldn't find a WLBean
called "TheMailer" ]
at weblogic.utils.Debug.assert(Debug.java:84)
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.initialize60(CompositeMBeanDescriptor.java:218)
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.init(CompositeMBeanDescriptor.java:159)
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.<init>(CompositeMBeanDescriptor.java:152)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:393)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:126)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:128)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:295)
at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:30)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:984)
at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:971)
at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:956)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:648)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy10.addTarget(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:867)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:966)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:886)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:802)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
at weblogic.management.mbeans.custom.ApplicationManager.startAdminManager(ApplicationManager.java:278)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:152)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy5.start(Unknown Source)
at weblogic.management.Admin.startApplicationManager(Admin.java:1184)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)Thank you!
But I've used the built-in plugin and it apperas when I try to do a "Add" for the BEA Weblogic App Server.
The problem is that it does not know the state of the App Server, so the error i've copied is what I get.
Any Idea on how to solve this?
Greetings,
HeCSa. -
BEA/Weblogic:Error 404- not found help
I am trying to follow an example in Bea weblogic Server for Dummies and I got that error when trying to test the web application.
Follow these steps to create a web application:
1. Make sure that WebLogic is not running.
If you started WebLogic from the Start menu, simply close WebLogic’s
window. If you started WebLogic as a service, stop the service.
2. Create your application directory.
Choose a name for your web application and create a directory of the
same name in your domain’s applications directory. For example, if
you wanted to create an application named myapp, you would create a
directory named
c:\bea\user_projects\mydomain\applications\myapp
3. Create an index file named index.html.
Create an index file that will be displayed when the user visits your web
site. Listing 5-1 shows a sample index file.
4. Create your WEB-INF directory.
The WEB-INF directory holds configuration files needed by your web
application. You should create a WEB-INF directory within the directory
you created in Step 2. If your web application were named myapp, for
example, your WEB-INF directory would be named
c:\bea\user_projects\mydomain\applications\myapp\WEB-INF
5. Create a web application descriptor named web.xml and save it in the
WEB-INF directory.
index.html File:
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html>
web.xml file:
<?xml version=”1.0” encoding=”UTF-8” ?>
<!DOCTYPE web-app PUBLIC
“-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN”
“http://java.sun.com/dtd/web-app_2_3.dtd” >
<web-app>
<display-name>Example Application</display-name>
</web-app>
When I tried to test the application with http://localhost:7001/myapp, I get that 404 error.
Appreciate any advice given. Thanks.I am trying to follow an example in Bea weblogic Server for Dummies and I got that error when trying to test the web application.
Follow these steps to create a web application:
1. Make sure that WebLogic is not running.
If you started WebLogic from the Start menu, simply close WebLogic’s
window. If you started WebLogic as a service, stop the service.
2. Create your application directory.
Choose a name for your web application and create a directory of the
same name in your domain’s applications directory. For example, if
you wanted to create an application named myapp, you would create a
directory named
c:\bea\user_projects\mydomain\applications\myapp
3. Create an index file named index.html.
Create an index file that will be displayed when the user visits your web
site. Listing 5-1 shows a sample index file.
4. Create your WEB-INF directory.
The WEB-INF directory holds configuration files needed by your web
application. You should create a WEB-INF directory within the directory
you created in Step 2. If your web application were named myapp, for
example, your WEB-INF directory would be named
c:\bea\user_projects\mydomain\applications\myapp\WEB-INF
5. Create a web application descriptor named web.xml and save it in the
WEB-INF directory.
index.html File:
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html>
web.xml file:
<?xml version=”1.0” encoding=”UTF-8” ?>
<!DOCTYPE web-app PUBLIC
“-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN”
“http://java.sun.com/dtd/web-app_2_3.dtd” >
<web-app>
<display-name>Example Application</display-name>
</web-app>
When I tried to test the application with http://localhost:7001/myapp, I get that 404 error.
Appreciate any advice given. Thanks. -
JCOM manpulation error: weblogic Error BEA-210000 Export of object barred
Hi everyone,
I'm trying to access a COM (MSWORD.OLB ) object from weblogic .
I've writing a sample Java proggram to access some methods of my COM Object.
But during the runtime, i got the following BEA weblogic error :
*<Error> <COM> <BEA-210000> <Export of object: com.linar.jintegra.Variant@b96c73 barred>*
com.linar.jintegra.a
at com.linar.jintegra.ba.c(Unknown Source)
at com.linar.jintegra.ba.a(Unknown Source)
at com.linar.jintegra.Variant.<init>(Unknown Source)
at com.linar.jintegra.Marshaller.a(Unknown Source)
at com.linar.jintegra.Marshaller.a(Unknown Source)
at com.linar.jintegra.Marshaller.b(Unknown Source)
at com.linar.jintegra.Dispatch.vtblInvoke(Unknown Source)
at word.DocumentsProxy.open(Unknown Source)
Any ideas to solve this problem ?
Thanks
Sergio
Edited by: user11108138 on 10 févr. 2012 02:24Sorry for delay!!
I tried W2KSP1, W2KSP2 and XPpro on several P3 / P4 with 256 / 521 RAM.
Uli
"dan seeman" <[email protected]> schrieb im Newsbeitrag
news:[email protected]..
Hi,
One last question. Can you tell me more about what OS you have theWLServer
installed on (machine type, OS and version)?
Thanks in advance.
dan
Uli Schulze-Eyssing wrote:
Hi Dan,
wl70 release
Uli
"dan seeman" <[email protected]> schrieb im Newsbeitrag
news:[email protected]..
What version of WLS you are using?
dan
Uli Schulze-Eyssing wrote:
We are trying to use jCOM to connect to our WL-App. (We had been
using
JIntegra before)
I made a simple JCom-Helper identical to the one, delivered in the
earlybound-sample.
Trying to create an object in VB couses the server to say:
<03.05.2002 15:11:58 CEST> <Error> <COM> <210000> <IOXIDResolveropNum 5
invoked. This method is not implemented.>
<03.05.2002 15:11:58 CEST> <Error> <socket> <000413> <Failure in
processSockets() - GetData: weblogic.socket.NTSocketMuxer$GetData -fd:
'2324', numBytes: '654'
java.lang.NullPointerException
java.lang.NullPointerException
atweblogic.com.MuxableSocketDCOM.isMessageComplete(MuxableSocketDCOM.ja
>>>>
va:182)
atweblogic.com.MuxableSocketDCOM.dispatch(MuxableSocketDCOM.java:203)
>>>>
atweblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:667)
>>>>
atweblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
>>>>
23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
>
and no object is created (VB hangs in waiting for the object)
In the FAQ I can read:
065070
There is a known issue with the logging of WebLogic Server jCOMerror
messages. COM warnings are incorrectly logged as errors, as in thisexample:
<Error> <COM> <210000> <IOXIDResolveropNum 5 invoked. This method is
not
implemented.>
So: I know, this is only a warning, but where is my object? ;-)
Can s/o tell me?
Many thanks,
Uli -
How to install oracle xsql servlet on bea weblogic 5.1
Hi there,
I tried to install oracles xsql servlet (1.0.4.1) on bea weblogic 5.1 without
any success.
in weblogic.properties I started with:
weblogic.httpd.webApp.xsql=c:\\weblogic\\myserver\\servletclasses\\xsql
And in this dir I have WEB-INF with the following web.xml:
<?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>
</web-app>
So the xsql extension is mapped to the named servlet which is found in a jar file
contained in subdirectory lib.
The problem is that the general mapping of *.xsql extension to specified class
does not work at all. And there are no errors...
Application server just presents me with the content of the xsql file instead
of executing servlet whith the xsql file as input.
Any ideas??
Thanx in advance.
JK
What kind of problem do you have?
If it's not connected with JDBC, you'd better post your question
in webservices newsgroup.
Regards,
Slava Imeshev
"leopld goess" <[email protected]> wrote in message
news:[email protected]..
hy out there.
i've been working with apache soap on wl 5.1 for a while now, and
everything seems to be working allright- as long as i don't try to
install a servicepack, namely sp8 or sp10. if i do that, the entire
soap service fails to deploy.
any ideas...
thanx
leopold -
XSQL-007 and list of XSQL error codes.
I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
XSQL-007: Cannot acquire a database connection to process page.
Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
set serveroutput on size 2000
begin
for i in 1..9999 loop
dbms_output.put_line ( sqlerrm(-i) ) ;
end loop ;
end ;
Steve.There's not a way to loop through the errors in Java. Here's the list.
XSQL-001: Cannot locate requested XSQL file. Check the name.
XSQL-002: Cannot acquire database connection from pool: {0}
XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
XSQL-004: Could not acquire a database connection named: {0}
XSQL-005: XSQL page is not well-formed.
XSQL-006: XSLT stylesheet is not well-formed: {0}
XSQL-007: Cannot acquire a database connection to process page.
XSQL-008: Cannot find XSLT Stylesheet: {0}
XSQL-009: Missing arguments on command line
XSQL-010: Error creating: {0}\nUsing standard output.
XSQL-011: Error processing XSLT stylesheet: {0}
XSQL-012: Cannot Read XSQL Page
XSQL-013: XSQL Page URI is null or has an invalid format.
XSQL-014: Resulting page is an empty document or had multiple document elements.
XSQL-015: Error inserting XML Document
XSQL-016: Error parsing posted XML Document
XSQL-017: Unexpected Error Occurred
XSQL-018: Unexpected Error Occurred processing stylesheet {0}
XSQL-019: Unexpected Error Occurred reading stylesheet {0}
XSQL-020: XSQLConfig.xml file is not well-formed.
XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
XSQL-022: Cannot load serializer class {0}
XSQL-023: Class {0} is not an XSQL Serializer
XSQL-024: Attempted to get response Writer after getting OutputStream
XSQL-025: Attempted to get response OutputStream after getting Writer -
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. -
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. -
Error in shutdown script for bea weblogic
We have this error in the shutdown script of our bea weblogic:
./stopWebLogic.sh[33]: -Xms256m: not found.
using the Oracle OCI database driver
Shutdown initiated
The shutdown sequence has been initiated.the script is as follows:
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#!/bin/sh
# Weblogic start script for egovernment
# Based on Colin Brick's initial version
# Modified 02/04/03 - Colin Brick
# - included settings for Oblix from using SSO Assembly Test as example
# Set General environment variables (Should normally not be changed)
#Java settings
JDK_HOME=/opt/bea/jdk131/
export JDK_HOME
JAVACMD=java
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
export JAVA_OPTIONS
WEBLOGIC_PORT=51080
#Bea settings
BEA_HOME=/opt/bea
export BEA_HOME
WEBLOGIC_HOME=/opt/bea/wlserver6.1
export WEBLOGIC_HOME
BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
export BEA_SECURITY_POLICY
#Oracle settings
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
domain_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#Set the shared library path
if [ -n "$SHLIB_PATH" ]; then
SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
else
SHLIB_PATH=$SHARED_LIBRARY_PATH
fi
export SHLIB_PATH
# Start weblogic
# change to weblogic home
cd $WEBLOGIC_HOME
PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
$JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
I don't know why it sais it can't find "-Xms256m" since it's not in the script.
Anyone with some experience in this field who can help me out?./stopWebLogic.sh[33]: -Xms256m: not found.
this can be produced by something like this:
javaoptions="-Xms256m" // or other option too
$javacmd $javaoptions
Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case. -
How to configure XSQL-Servlet with Weblogic 6.0
Hi,
what are the steps to configure the xsql-servlet? I downloaded ora xdk 9.2 and getting the following error when requesting demo via url= http://localhost:7001/xsql/home.xsql:
Oracle XDK Java 9.2.0.6.0 Production
XSQL-001: Cannot locate requested XSQL file. Check the name.
In general, I can't run either demo that came with XDK... please help!
Vipul,
Can you try adding them as the first entry in the classpath in the
startWebLogic.smd file.
Raj Alagumalai -
XSQL/XSL help (iPlanet): Error processing XSLT stylesheet
hello-
i am running XSQL and XSL pages on an iPlanet web server and i am receiving the following error:
XSQL-011: Error processing XSLT stylesheet: /xslt/page/xsl_page.xsl
XSL-1002: Error while processing include XSL file (\xslt\util\other_xsl.xsl (The system cannot find the path specified)).
here's the deal: other_xsl.xsl (the one it says it can't find) is there in the right place, but the web server is not looking from the document root (which IS set correctly on the web server). it is looking for the file starting at the current directory.
for example, the server is processing /xslt/page/xsl_page.xsl. it is then looking for the include file using this path: /xslt/page/XSLT/UTIL/other_xsl.xsl --- instead of the correct /xslt/util/other_xsl.xsl.
the include statement uses the full path starting from the web root (<xsl:include href="/xslt/util/other_xsl.xsl"/>)
any help would be appreciated.thanks for the response. the /xslt/util directory is browsable by the web server, and using relative paths does work (that is one of the ways i discovered what was going on in the first place), but i am rebuilding a machine and redeploying an exisiting application-- the intention is to not re-write any code.
the part that is most confusing is that the current code/directory structure works on the current box, but not on my rebuilt box. i have gone through every config file with a fine tooth comb. it appears that the current box and my build are set up exactly the same-- but, like i said, on one it reads the include-path from the document root, on the other from the current directory.
so confusing. -
Error Configuring BEA Weblogic Server v9.2
I'm using Eclipse 3.4 (Ganymede) with the new Enterprise Pack for Eclipse. When I try to create a New Server Runtime Environment for Weblogic 9.2, I get the following error:
"RE is selected, but the path is invalid."
The path is D:\export\webapps\sbea\weblogic92 which is correct because I successfully used that with Eclipse 3.3 with BEA Weblogic Weblogic 9.2 runtime that you could access from Eclipse 3.3.I was able to fix this by uninstalling all BEA products and re-installing WLS 9.2M1.
-
An internal error occurred during: "Starting BEA WebLogic Server v8.1 at lo
Hi,
On "Start the server in debug mode"
file .log
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_AR
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.jobs 4 2 2009-08-05 12:29:57.060
!MESSAGE An internal error occurred during: "Starting BEA WebLogic Server v8.1 at localhost".
!STACK 0
java.lang.NullPointerException
at oracle.eclipse.tools.weblogic.legacy.GenericWeblogicServerBehaviour.findWorkshopJspDebuggerLaunchConfigurationDelegate(GenericWeblogicServerBehaviour.java:477)
at oracle.eclipse.tools.weblogic.legacy.GenericWeblogicServerBehaviour.setupLaunch(GenericWeblogicServerBehaviour.java:226)
at org.eclipse.jst.server.generic.core.internal.ExternalLaunchConfigurationDelegate.launch(ExternalLaunchConfigurationDelegate.java:101)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3057)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3007)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:294)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
OS= Windows XP SP2
Eclipse Java Version= 1.6.0_13
Workspace Java Version= 1.4.2_08
BEA Weblogic= 8.1.6
Eclipse= 3.5.0
WTP= 3.1.0
Project Facets= Dynamic Web Module 2.3
Java= 1.4
Tanks and sorry my English.
GustavoI am also experiencing the same NullPointerException when launching Weblogic 8.1 in debug mode within Eclipse 3.5. Is there any anticipated fix for this issue, or a bugtraq record that we can follow to know when the issue is addressed? I do not expect JSP debugging to work (as it wasn't available with Weblogic 8.1 under Eclipse 3.4 either) - BUT right now I cannot debug ANY server-side code within Weblogic 8.1 in Eclipse 3.5 as the server cannot start in debug mode at all.
Many thanks. -
Hi
I have installed the BEA weblogic server 6.1 service pack 4 as part of PIA (PeopleSoft
Internet Architecture) installation for PeopleSoft 8.8.
After starting the weblogic server, When I type the
http://localhost:12080 (http port number 12080) ideally it should take me to
the BEA home page, but it is throwing an error in the log file.
" Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
Your help is very much appreciated.
Any pointers are welcome.
Thanks
AswarthaI had similar problems with my install of Weblogic 6.1 sp4. I am installing PS
HRMS 8.8 sp1
and PeopleTools 8.44 Patch 2 (Patch 2 is required for install) Peoplesoft sent
me Weblogic 8.1
with my new Tools 8.44. This version and installation is light years ahead of
Weblogic 6.1. If
you are able to load the new version of Weblogic and Tuxedo, it is worth it.
If not, you may want to check to see if your JAR file was installed correctly.
(The new version
of WL doesn't make you unzip your JAR files for the install.)
In the command line for unzipping the JAR file, make sure you type the phrase
EXACTLY as
shown IT IS CASE SENSITIVE. I messed with this for two hours until I saw that
I wasn't putting
a capital letter in one of the words where I should have been.
Hope this helps.
"Aswarth" <[email protected]> wrote:
>
Hi
I have installed the BEA weblogic server 6.1 service pack 4 as part of
PIA (PeopleSoft
Internet Architecture) installation for PeopleSoft 8.8.
After starting the weblogic server, When I type the
http://localhost:12080 (http port number 12080) ideally it should take
me to
the BEA home page, but it is throwing an error in the log file.
" Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
Your help is very much appreciated.
Any pointers are welcome.
Thanks
Aswartha
Maybe you are looking for
-
Has anyone had trouble with safari after having their hard drive replaced?
I received an email about the recall on hard drives for the iMacs and took it to my local apple store to have it replaced. I brought it home today and started it up to find safari will not open. Whenever I try to use safari it brings up a prompt sa
-
Render audio with video (Preference setting) or do it in Encore for DVD?
Should I check the [by default] unchecked "Render audio when rendering video" checkbox on the General page of the Preferences? Does Encore transcode the audio more quickly vs. choosing this option in PP CS4 Preferences? What about quality? Is that af
-
Calendar appointments not being sent
Hi, I am having an issue with our exchange server, Exchange 2010. This issue just started happening out of the blue, Up to now everything was working properly. We have a resource room mailbox established for a conference room (This is set up as a st
-
Trying to re-activate my iphone 5 and it wont work
i just setup ios7 on my iphone 5 and the keyboard wasn't working and i tried everything so i had to restore the phone. Now i'm not able to re activate it because it says it can't connect to the activation servers, i have tried resetting the phone and
-
Hi, guys: I have a challenging problem for me. I have two input fields (nested:text tags) for user to enter item number and cost, then calculate the total cost. Total cost should be displayed automatically after user enters item number and unit cost.