Application-server.dtd FileNotFoundException
I am building an app via ant, to run in an Ora9ias (9.0.3) installation on Win2k (SP2). I've been running successfully with this configuration for nearly a year. This morning, out of the blue, I started getting this exception when I try to build:
[makeParent] java.io.FileNotFoundException: http://xmlns.oracle.com/ias/dtds/application-server.dtd
[makeParent] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:707)
[makeParent] at java.net.URL.openStream(URL.java:960)
[makeParent] at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
[makeParent] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)
[makeParent] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)
[makeParent] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)
[makeParent] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
[makeParent] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
[makeParent] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
[makeParent] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
[makeParent] at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
[makeParent] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
[makeParent] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
[makeParent] at com.gal.fast.portal.build.ParentAppTask.execute(ParentAppTask.java:148)
[makeParent] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
[makeParent] at org.apache.tools.ant.Task.perform(Task.java:317)
[makeParent] at org.apache.tools.ant.Target.execute(Target.java:309)
[makeParent] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[makeParent] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[makeParent] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
[makeParent] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
[makeParent] at org.apache.tools.ant.Task.perform(Task.java:317)
[makeParent] at org.apache.tools.ant.Target.execute(Target.java:309)
[makeParent] at org.apache.tools.ant.Target.performTasks(Target.java:334)
[makeParent] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[makeParent] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[makeParent] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[makeParent] at org.apache.tools.ant.Main.start(Main.java:196)
[makeParent] at org.apache.tools.ant.Main.main(Main.java:235)
There have been no network configuration changes at my workplace, and other DTD-related operations seem to be working properly. Has something significant changed at xmlns.oracle.com ?
hi,
am facing now exactly the same poblem and i couldnt figure it out yet but my situation might help spotting your problem.
am accessing my solaris 10 server using an xwindow manager and when ever i close the session my server stops being accessible and checking its status again i found that the imqbroke is stopped for the same reason which is client closed the connection . in my case this is true as i log off so u really need to check whats causing the connection to close.
Best regards
Similar Messages
-
Petstore not working in J2EE1.4.1 beta2(with sunone application server)
Hi,
I have downloaded an installed J2EE1.4_beta2 , which has J2EE SDK, JRE , Sunone application server, and J2ee blueprints sample apps. I have installed properly as per the installation instruction. I am able to run Quickstart application. But when I try to run petstore the following error occurs..
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Populate exception occured :null
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)
root cause
javax.ejb.EJBException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.j2ee.blueprints.petstore.tools.populate.XMLDBHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:546)
at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:257)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1992)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:902)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:533)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1535)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.populate(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)Hello,
I have the exact same problem, but i am using JDK1.4.2 and JDKEE1.3.1
have you figured out how to solve the problem ?
By the way, which database server are you using ?
Thanks -
Client-cert auth impl in web.xml does not work in Oracle Application Server
Hi,
I am new to implementing security features on the web applications.. I have developed a new web service using jdev1012 and deployed in OAS 10.1.2. Its working fine according to the business requirements, but I am in need of implementing client-cert authentication to enable the web service available to only those who have client certificate.
My server details are:
Oracle Application Server 10g Release 2 (10.1.2)
Server certificate is in place and SSL mode have been already enabled.. able to access my web service through https://<mydomain.com>/myws/TreqWS as well able to see the WSDL file through https://<mydomain.com>/myws/TreqWS?WSDL.
I tried to include the following in my web.xml file as part of implementing CLIENT-CERT authentication.
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WSCollection</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>WSCollection</realm-name> <!-- am not sure about this realm-name and its purpose -->
</login-config>
It is not woking as expected, though I have restarted my oc4j container after including this content to the web.xml file. i.e, I am able to invoke the web service though my sample java client program, though I donot have client certificate/keystore.
I believe I am missing something..Can anyone help me in this regard to implement CLIENT-CERT authentication successfully?
Thanks,
MsI am having the same problem with doc and xsl. I have added this
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
to my web.xml. I even restarted the server. I still see doc and xsl in binary.
Is there some other setting that needs to take place?
I am using WL6.1 with fixpack 1.
I can see the doc and excel files in the browser if I don't go through the weblogic
server. That just confirms it's not my browser.
Kumar Allamraju <[email protected]> wrote:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
It works fine for me in 6.1 SP1.
<br><br>
If the following doesn't work , can you
<br>try application/winword instead of application/msword?
<p>--
<br>Kumar
<p>Siming Mu wrote:
<blockquote TYPE=CITE>Hi,
<p>I setup in my web.xml a mime mapping as follows,
<p><mime-mapping>
<br><extension>doc</extension><mime-type>application/msword</mime-type>
<br></mime-mapping>
<p>When I specify a test.doc url, the doc file appears in my browser
as
binary data
<br>instead of download.
<p>Please reference change request 055002, which decribes this problem.
According
<br>to edocs, it has been fixed in wls6.1sp1.
<p>But I am seeing it fixed. Am I doing anything wrong? Thanks.
<p>Siming</blockquote>
</html> -
Please Help! ERROR: Application Server failed. when Refreshing
Please help on this below issue. Thanks.
We have a requirement that using ASP.NET (C#), we need to open saved .rpt file (saved with data and the rpt file is assigned to the web page as query string) and let the users refresh themselves with latest data by clicking at refresh icon of the CrystalReportViewer. But it throws 'The Report Application Server failed' error message. What could cause this message. below is the piece of code we are using to configure the report.
private void ConfigureCrystalReports()
string reportPath = Server.MapPath("Reports
SEMS0001_UBS.rpt");
this.CrystalReportSource2.ReportDocument.Load(reportPath);
CrystalReportViewer1.Visible = false;
SetDBLogonForReport(this.CrystalReportSource2.ReportDocument);
int i = 0;
foreach (ParameterField field in this.CrystalReportSource2.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
//this.CrystalReportSource2.ReportDocument.Refresh();
CrystalReportViewer1.ParameterFieldInfo = this.CrystalReportSource2.ReportDocument.ParameterFields;
CrystalReportViewer1.Visible = true;
public void SetDBLogonForReport(ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
//foreach (CrystalDecisions.Shared.IConnectionInfo connection in reportDocument.DataSourceConnections)
// connection.SetConnection(ConfigurationManager.AppSettings["DBServer"], "", ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
// connection.SetLogon(ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
//reportDocument.Database.Tables[0].ApplyLogOnInfo(tableLogonInfo);Attaching full code ... Our case is the RPT files are stored wih default parameters and saved data. We need to let users just refresh the rpt files with latest db data and overwrite with the same rpt files. But this code keep showing The application server failed mesg. when the refresh icon of viewer is clicked.
Attaching the code as it is not properly attached in my previous reply ...
=======================
Begin - aspx.cs code
=======================
using System;
using System.Data;
using System.Data.OleDb;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.Shared;
using CrystalDecisions.Web;
public partial class _Default : System.Web.UI.Page
private ConnectionInfo connectionInfo = new ConnectionInfo();
protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
//ConfigureCrystalReports();
protected void CrystalReportViewer1_Init(object sender, EventArgs e)
ConfigureCrystalReports();
private void ConfigureCrystalReports()
string reportPath = Server.MapPath(@"Reports\Report1.rpt");
this.CrystalReportSource1.ReportDocument.Load(reportPath);
CrystalReportViewer1.Visible = false;
SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
//this.CrystalReportSource1.ReportDocument.Refresh();
CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
CrystalReportViewer1.Visible = true;
public void ReportDocument_RefreshReport(object sender, EventArgs e)
try
SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
this.CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "passwd", "server", "");
foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
field.HasCurrentValue = true;
field.AllowCustomValues = true;
//field.EnableNullValue = true;
this.CrystalReportSource1.ReportDocument.Refresh();
this.CrystalReportSource1.ReportDocument.SaveAs(@"C:\Inetpub\wwwroot\XsiteRpt\Reports\Report1.RPT", true);
catch (Exception ex)
Msg.Text = ex.Message;
public void SetDBLogonForReport(ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
=======================
End - aspx.cs.code
=======================
=======================
Begin - Assemblies
=======================
<assemblies>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
=======================
End - Assemblies
=======================
=======================
Begin - aspx
=======================
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Xsite.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Refresh Report</title>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Panel ID="PanelMsg" runat="server">
<br />
<asp:Label ID="Msg" runat="server" Font-Bold="False" Font-Names="Verdana" ForeColor="Navy"></asp:Label>
<br />
</asp:Panel>
<asp:Panel ID="PanelViewer" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" OnReportRefresh="ReportDocument_RefreshReport" runat="server" AutoDataBind="True"
EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReuseParameterValuesOnRefresh="True" HasRefreshButton="True" Height="820px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1" ShowAllPageIds="True" Width="1215px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
</CR:CrystalReportSource>
</asp:Panel>
</div>
</form>
</body>
</html>
=======================
End - aspx
======================= -
Application Server Platform Edition 8.1 2005Q2 fails to start - CLI156
I have installed and re-installed PE8.1 on my laptop many times (with security off). I followed Quickstart and after 60 seconds end up with CLI156. I have upgraded from XP Home Edition to XP Professional. I have been going round and round for the last 4 days. I have searched for CLI156 and have tried many options. Any pointers (if not memory references) would be appreciated.
Pertinent information is as follows:
Machine information
Vendor:TOSHIBA
Machine Name:Satellite L15
BIOS Name:Rev 1.0 XXX
BIOS Version:V1.80
Version:PSL10U-01X02FV
CPU Maker:GenuineIntel
CPU Name:Intel(R) Celeron(R) M processor 1.30GHz
CPU Base Clock:400
OS:Microsoft Windows XP Professional
OS Build:2600
OS SP:Service Pack 2
Ram:768432
Windows IP Configuration
Host Name . . . . . . . . . . . . : FE
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Ethernet adapter Wireless Network Connection:
Connection-specific DNS Suffix . : ph.cox.net
Description . . . . . . . . . . . : INPROCOMM IPN2220 Wireless LAN Card
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Lease Obtained. . . . . . . . . . : Sunday, October 02, 2005 8:24:56 AM
Lease Expires . . . . . . . . . . : Monday, October 03, 2005 8:24:56 AM
Microsoft TCP/IP version 6
Realtek RTL8139/810x Family Fast Ethernet NIC
INPROCOMM IPN2220 Wireless LAN Card
Microsoft Tun Miniport Adapter
TOSHIBA Network Device Usermode I/O Protocol
INPROCOMM IPN2220 Wireless LAN Card
Realtek RTL8139/810x Family Fast Ethernet NIC
Point to Point Protocol Over Ethernet
INPROCOMM IPN2220 Wireless LAN Card
Realtek RTL8139/810x Family Fast Ethernet NIC
Point to Point Tunneling Protocol
Layer 2 Tunneling Protocol
Remote Access NDIS WAN Driver
WAN Miniport (ATW)
Direct Parallel
WAN Miniport (PPPOE)
WAN Miniport (PPTP)
WAN Miniport (L2TP)
RAS Async Adapter
NDIS Usermode I/O Protocol
INPROCOMM IPN2220 Wireless LAN Card
Realtek RTL8139/810x Family Fast Ethernet NIC
Message-oriented TCP/IP Protocol (SMB session)
WINS Client(TCP/IP) Protocol
Microsoft TCP/IP version 6
Realtek RTL8139/810x Family Fast Ethernet NIC
Microsoft TCP/IP version 6
INPROCOMM IPN2220 Wireless LAN Card
Microsoft TCP/IP version 6
Microsoft Tun Miniport Adapter
Internet Protocol (TCP/IP)
INPROCOMM IPN2220 Wireless LAN Card
Internet Protocol (TCP/IP)
Realtek RTL8139/810x Family Fast Ethernet NIC
Internet Protocol (TCP/IP)
WAN Miniport (IP)
Internet Protocol (TCP/IP)
INPROCOMM IPN2220 Wireless LAN Card
Realtek RTL8139/810x Family Fast Ethernet NIC
WAN Miniport (IP)
Network Device information
Realtek RTL8139/810x Family Fast Ethernet NIC
Device ID : PCI\VEN_10EC&DEV_8139&SUBSYS_FF311179&REV_10\4&16793A72&0&10F0
Status : Enable
Driver Vender : Realtek Semiconductor Corp.
Driver Version : 5.618.1015.2004
Driver Date : 10-15-2004
INPROCOMM IPN2220 Wireless LAN Card
Device ID : PCI\VEN_17FE&DEV_2220&SUBSYS_03101468&REV_00\4&16793A72&0&20F0
Status : Enable
Driver Vender : INPROCOMM
Driver Version : 3.3.11.2004
Driver Date : 11-4-2004
Diagnostics results
Ping Option : Off
ConfigFree Version
ConfigFree(TM) 4.90.57a
Database 3.00.02
Network Diagnostics
No Problem found
netstat -an before installation (cox high speed Internet security, IM, skype - off)
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1429 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1435 0.0.0.0:0 LISTENING
TCP 127.0.0.1:19989 0.0.0.0:0 LISTENING
TCP 192.168.1.101:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING 0
TCP [::]:1025 [::]:0 LISTENING 0
TCP [::]:1429 [::]:0 LISTENING 0
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1436 *:*
UDP 0.0.0.0:1640 *:*
UDP 0.0.0.0:3456 *:*
UDP 0.0.0.0:4500 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.1.101:123 *:*
UDP 192.168.1.101:137 *:*
UDP 192.168.1.101:138 *:*
UDP 192.168.1.101:1900 *:*
UDP 192.168.1.101:11206 *:*
fport before installation (cox high speed Internet security, IM, skype - off)
FPort v2.0 - TCP/IP Process to Port Mapper
Copyright 2000 by Foundstone, Inc.
http://www.foundstone.com
Pid Process Port Proto Path
1264 inetinfo -> 25 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 135 TCP
4 System -> 139 TCP
4 System -> 445 TCP
1684 LEXPPS -> 1025 TCP C:\WINDOWS\system32\LEXPPS.EXE
1264 inetinfo -> 1429 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 1435 TCP
524 CFSServ -> 19989 TCP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
524 CFSServ -> 123 UDP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
0 System -> 123 UDP
0 System -> 137 UDP
0 System -> 138 UDP
1264 inetinfo -> 445 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 500 UDP
4 System -> 1436 UDP
1684 LEXPPS -> 1640 UDP C:\WINDOWS\system32\LEXPPS.EXE
0 System -> 1900 UDP
1264 inetinfo -> 3456 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 4500 UDP
0 System -> 11206 UDP
fport after installation of App Server (cox high speed Internet security, IM, skype - off)
FPort v2.0 - TCP/IP Process to Port Mapper
Copyright 2000 by Foundstone, Inc.
http://www.foundstone.com
Pid Process Port Proto Path
1264 inetinfo -> 25 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 135 TCP
4 System -> 139 TCP
4 System -> 445 TCP
1684 LEXPPS -> 1025 TCP C:\WINDOWS\system32\LEXPPS.EXE
1264 inetinfo -> 1429 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 1435 TCP
524 CFSServ -> 19989 TCP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
524 CFSServ -> 123 UDP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
0 System -> 123 UDP
0 System -> 137 UDP
0 System -> 138 UDP
1264 inetinfo -> 445 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 500 UDP
4 System -> 1436 UDP
1684 LEXPPS -> 1640 UDP C:\WINDOWS\system32\LEXPPS.EXE
0 System -> 1900 UDP
1264 inetinfo -> 3456 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 4500 UDP
0 System -> 28459 UDP
early in initializing App Server
fport
FPort v2.0 - TCP/IP Process to Port Mapper
Copyright 2000 by Foundstone, Inc.
http://www.foundstone.com
Pid Process Port Proto Path
1264 inetinfo -> 25 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 135 TCP
4 System -> 139 TCP
4 System -> 445 TCP
1684 LEXPPS -> 1025 TCP C:\WINDOWS\system32\LEXPPS.EXE
1264 inetinfo -> 1429 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 1435 TCP
3960 appserv -> 1664 TCP C:\Sun\AppServer\lib\appserv.exe
0 System -> 1666 TCP
1664 java -> 1668 TCP C:\Sun\jdk1.5.0_02\bin\java.exe
3960 appserv -> 1669 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1670 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1671 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1672 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1673 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1674 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1675 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1676 TCP C:\Sun\AppServer\lib\appserv.exe
524 CFSServ -> 19989 TCP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
0 System -> 123 UDP
3960 appserv -> 123 UDP C:\Sun\AppServer\lib\appserv.exe
1664 java -> 137 UDP C:\Sun\jdk1.5.0_02\bin\java.exe
3960 appserv -> 138 UDP C:\Sun\AppServer\lib\appserv.exe
1264 inetinfo -> 445 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 500 UDP
4 System -> 1436 UDP
1684 LEXPPS -> 1640 UDP C:\WINDOWS\system32\LEXPPS.EXE
3960 appserv -> 1900 UDP C:\Sun\AppServer\lib\appserv.exe
1264 inetinfo -> 3456 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 4500 UDP
3960 appserv -> 34840 UDP C:\Sun\AppServer\lib\appserv.exe
netstat -an early in initialization of App Server
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1429 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1435 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1664 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1664 127.0.0.1:1668 ESTABLISHED
TCP 127.0.0.1:1666 127.0.0.1:1667 TIME_WAIT
TCP 127.0.0.1:1668 127.0.0.1:1664 ESTABLISHED
TCP 127.0.0.1:1669 127.0.0.1:1670 ESTABLISHED
TCP 127.0.0.1:1670 127.0.0.1:1669 ESTABLISHED
TCP 127.0.0.1:1671 127.0.0.1:1672 ESTABLISHED
TCP 127.0.0.1:1672 127.0.0.1:1671 ESTABLISHED
TCP 127.0.0.1:1673 127.0.0.1:1674 ESTABLISHED
TCP 127.0.0.1:1674 127.0.0.1:1673 ESTABLISHED
TCP 127.0.0.1:1675 127.0.0.1:1676 ESTABLISHED
TCP 127.0.0.1:1676 127.0.0.1:1675 ESTABLISHED
TCP 127.0.0.1:19989 0.0.0.0:0 LISTENING
TCP 192.168.1.101:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING 0
TCP [::]:1025 [::]:0 LISTENING 0
TCP [::]:1429 [::]:0 LISTENING 0
TCP [::]:1668 [::]:0 LISTENING 0
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1436 *:*
UDP 0.0.0.0:1640 *:*
UDP 0.0.0.0:3456 *:*
UDP 0.0.0.0:4500 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.1.101:123 *:*
UDP 192.168.1.101:137 *:*
UDP 192.168.1.101:138 *:*
UDP 192.168.1.101:1900 *:*
UDP 192.168.1.101:34840 *:*
Starting Domain domain1, please wait.
Log redirected to C:\Sun\AppServer\domains\domain1\logs\server.log.
Full thread dump Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing):
"Thread-2" prio=5 tid=0x02d85588 nid=0x970 runnable [0x033cf000..0x033cf9e8]
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:177)
at com.sun.enterprise.util.FlusherThread.run(ProcessExecutor.java:625)
"RMI RenewClean-[192.168.1.101:1664,com.sun.enterprise.admin.server.core.channel
.LocalRMIClientSocketFactory@1415de6]" daemon prio=5 tid=0x02dfad98 nid=0x8ec in
Object.wait() [0x0333f000..0x0333fae8]
at java.lang.Object.wait(Native Method)
- waiting on <0x22a8b3e8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x22a8b3e8> (a java.lang.ref.ReferenceQueue$Lock)
at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCCli
ent.java:500)
at java.lang.Thread.run(Thread.java:595)
"GC Daemon" daemon prio=2 tid=0x02de5e10 nid=0x27c in Object.wait() [0x032ff000.
.0x032ffb68]
at java.lang.Object.wait(Native Method)
- waiting on <0x22fe34d8> (a sun.misc.GC$LatencyLock)
at sun.misc.GC$Daemon.run(GC.java:100)
- locked <0x22fe34d8> (a sun.misc.GC$LatencyLock)
"RMI RenewClean-[192.168.1.101:1664,com.sun.enterprise.admin.server.core.channel
.LocalRMIClientSocketFactory@3ee284]" daemon prio=5 tid=0x02de5c90 nid=0x100 in
Object.wait() [0x032bf000..0x032bfbe8]
at java.lang.Object.wait(Native Method)
- waiting on <0x22fe30e8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x22fe30e8> (a java.lang.ref.ReferenceQueue$Lock)
at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCCli
ent.java:500)
at java.lang.Thread.run(Thread.java:595)
"Low Memory Detector" daemon prio=5 tid=0x00a6db08 nid=0x198 runnable [0x0000000
0..0x00000000]
"CompilerThread0" daemon prio=10 tid=0x00a6c6e0 nid=0xe10 waiting on condition [
0x00000000..0x02bcf6c0]
"Signal Dispatcher" daemon prio=10 tid=0x00a6ba00 nid=0x844 waiting on condition
[0x00000000..0x00000000]
"Finalizer" daemon prio=9 tid=0x00a68dd8 nid=0xf10 in Object.wait() [0x02b4f000.
.0x02b4fa68]
at java.lang.Object.wait(Native Method)
- waiting on <0x22f6a038> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x22f6a038> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x00a478b0 nid=0xf34 in Object.wait() [0x
02b0f000..0x02b0fae8]
at java.lang.Object.wait(Native Method)
- waiting on <0x22f6a0b8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x22f6a0b8> (a java.lang.ref.Reference$Lock)
"main" prio=5 tid=0x000377a8 nid=0x194 runnable [0x0007f000..0x0007fc38]
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
- locked <0x22adcf20> (a java.net.SocksSocketImpl)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:207)
at com.sun.enterprise.admin.server.core.channel.LocalRMIClientSocketFact
ory.createSocket(LocalRMIClientSocketFactory.java:65)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at com.sun.enterprise.admin.server.core.channel.AdminChannelServer_Stub.
getServerStatusCode(Unknown Source)
at com.sun.enterprise.admin.server.core.channel.RMIClient.getInstanceSta
tusCode(RMIClient.java:250)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.getInstance
Status(PEInstancesManager.java:555)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.isInstanceS
tarting(PEInstancesManager.java:278)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager$1.check(PEI
nstancesManager.java:417)
at com.sun.enterprise.admin.servermgmt.pe.InstanceTimer.run(InstanceTime
r.java:32)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.waitUntilSt
arting(PEInstancesManager.java:423)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.waitUntilSt
arting(PEInstancesManager.java:407)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.startInstan
ce(PEInstancesManager.java:244)
at com.sun.enterprise.admin.servermgmt.pe.PEInstancesManager.startInstan
ce(PEInstancesManager.java:87)
at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.startDomain(P
EDomainsManager.java:178)
at com.sun.enterprise.cli.commands.StartDomainCommand.startDomain(StartD
omainCommand.java:104)
at com.sun.enterprise.cli.commands.StartDomainCommand.runCommand(StartDo
mainCommand.java:141)
at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:1
35)
at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:46)
"VM Thread" prio=10 tid=0x00a67010 nid=0x82c runnable
"VM Periodic Task Thread" prio=10 tid=0x00a6ed18 nid=0x5a0 waiting on condition
J2EE 1.4 SDK and Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 June 6,
2005
All in one and separate bundles
sjsas_pe-8_1_02_2005Q2-windows
netstat -an late in initializing App Server
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1429 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1435 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1664 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1664 127.0.0.1:1668 ESTABLISHED
TCP 127.0.0.1:1668 127.0.0.1:1664 ESTABLISHED
TCP 127.0.0.1:1669 127.0.0.1:1670 ESTABLISHED
TCP 127.0.0.1:1670 127.0.0.1:1669 ESTABLISHED
TCP 127.0.0.1:1671 127.0.0.1:1672 ESTABLISHED
TCP 127.0.0.1:1672 127.0.0.1:1671 ESTABLISHED
TCP 127.0.0.1:1673 127.0.0.1:1674 ESTABLISHED
TCP 127.0.0.1:1674 127.0.0.1:1673 ESTABLISHED
TCP 127.0.0.1:1675 127.0.0.1:1676 ESTABLISHED
TCP 127.0.0.1:1676 127.0.0.1:1675 ESTABLISHED
TCP 127.0.0.1:19989 0.0.0.0:0 LISTENING
TCP 192.168.1.101:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING 0
TCP [::]:1025 [::]:0 LISTENING 0
TCP [::]:1429 [::]:0 LISTENING 0
TCP [::]:1668 [::]:0 LISTENING 0
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1436 *:*
UDP 0.0.0.0:1640 *:*
UDP 0.0.0.0:3456 *:*
UDP 0.0.0.0:4500 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.1.101:123 *:*
UDP 192.168.1.101:137 *:*
UDP 192.168.1.101:138 *:*
UDP 192.168.1.101:1900 *:*
UDP 192.168.1.101:65456 *:*
netstat -an at CLI156 error
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1429 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1435 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1664 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1669 127.0.0.1:1670 ESTABLISHED
TCP 127.0.0.1:1670 127.0.0.1:1669 ESTABLISHED
TCP 127.0.0.1:1671 127.0.0.1:1672 ESTABLISHED
TCP 127.0.0.1:1672 127.0.0.1:1671 ESTABLISHED
TCP 127.0.0.1:1673 127.0.0.1:1674 ESTABLISHED
TCP 127.0.0.1:1674 127.0.0.1:1673 ESTABLISHED
TCP 127.0.0.1:1675 127.0.0.1:1676 ESTABLISHED
TCP 127.0.0.1:1676 127.0.0.1:1675 ESTABLISHED
TCP 127.0.0.1:19989 0.0.0.0:0 LISTENING
TCP 192.168.1.101:139 0.0.0.0:0 LISTENING
TCP [::]:135 [::]:0 LISTENING 0
TCP [::]:1025 [::]:0 LISTENING 0
TCP [::]:1429 [::]:0 LISTENING 0
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1436 *:*
UDP 0.0.0.0:1640 *:*
UDP 0.0.0.0:3456 *:*
UDP 0.0.0.0:4500 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1900 *:*
UDP 192.168.1.101:123 *:*
UDP 192.168.1.101:137 *:*
UDP 192.168.1.101:138 *:*
UDP 192.168.1.101:1900 *:*
UDP 192.168.1.101:31995 *:*
fport at CLI156 error
FPort v2.0 - TCP/IP Process to Port Mapper
Copyright 2000 by Foundstone, Inc.
http://www.foundstone.com
Pid Process Port Proto Path
1264 inetinfo -> 25 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 135 TCP
4 System -> 139 TCP
4 System -> 445 TCP
1684 LEXPPS -> 1025 TCP C:\WINDOWS\system32\LEXPPS.EXE
1264 inetinfo -> 1429 TCP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 1435 TCP
3960 appserv -> 1664 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1669 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1670 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1671 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1672 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1673 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1674 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1675 TCP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 1676 TCP C:\Sun\AppServer\lib\appserv.exe
524 CFSServ -> 19989 TCP C:\Program Files\TOSHIBA\ConfigFree\CFSServ
.exe
3960 appserv -> 123 UDP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 137 UDP C:\Sun\AppServer\lib\appserv.exe
3960 appserv -> 138 UDP C:\Sun\AppServer\lib\appserv.exe
1264 inetinfo -> 445 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
1104 -> 500 UDP
4 System -> 1436 UDP
1684 LEXPPS -> 1640 UDP C:\WINDOWS\system32\LEXPPS.EXE
3960 appserv -> 1900 UDP C:\Sun\AppServer\lib\appserv.exe
1264 inetinfo -> 3456 UDP C:\WINDOWS\system32\inetsrv\inetinfo.exe
2768 -> 4500 UDP
3960 appserv -> 21498 UDP C:\Sun\AppServer\lib\appserv.exe
contnets of server.log
[#|2005-10-02T08:31:05.873-0700|INFO|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|
_ThreadID=10;|
C:/Sun/jdk1.5.0_02\bin\java
-client
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
-Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=C:/Sun/jdk1.5.0_02/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext
-Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanSe
rverBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serve
rbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactor
yImpl
-Dcom.sun.aas.configName=server-config
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentB
uilderFactoryImpl
-Dcom.sun.aas.promptForIdentity=true
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.Transf
ormerFactoryImpl
-Dcom.sun.aas.domainName=domain1
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dproduct.name=Sun-Java-System/Application-Server
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.
bind,javax.help
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Djava.library.path=C:\Sun\jdk1.5.0_02\jre\bin\client;C:\Sun\AppServer\lib;C:\Sun\AppServer\
lib;C:\Sun\jdk1.5.0_02\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Sun\AppServer\lib;C:\Sun\AppS
erver\bin;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bi
n;C:\Sun\AppServer\bin;C:\Sun\jdk1.5.0_02\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\syst
em32\WBEM;C:\Sun\AppServer\bin;xDefaultS-1-x�
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-cp
C:/Sun/jdk1.5.0_02/lib/tools.jar;C:/Sun/AppServer/lib/appserv-rt.jar;C:/Sun/AppServer/lib\ac
tivation.jar;C:/Sun/AppServer/lib\admin-cli.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Su
n/AppServer/lib\appserv-cmp.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\ap
pserv-jstl.jar;C:/Sun/AppServer/lib\appserv-upgrade.jar;C:/Sun/AppServer/lib\commons-launche
r.jar;C:/Sun/AppServer/lib\commons-logging.jar;C:/Sun/AppServer/lib\dom.jar;C:/Sun/AppServer
/lib\j2ee-svc.jar;C:/Sun/AppServer/lib\j2ee.jar;C:/Sun/AppServer/lib\jax-qname.jar;C:/Sun/Ap
pServer/lib\jaxr-api.jar;C:/Sun/AppServer/lib\jaxr-impl.jar;C:/Sun/AppServer/lib\jaxrpc-api.
jar;C:/Sun/AppServer/lib\jaxrpc-impl.jar;C:/Sun/AppServer/lib\jmxremote.jar;C:/Sun/AppServer
/lib\jmxremote_optional.jar;C:/Sun/AppServer/lib\jsf-api.jar;C:/Sun/AppServer/lib\jsf-impl.j
ar;C:/Sun/AppServer/lib\mail.jar;C:/Sun/AppServer/lib\relaxngDatatype.jar;C:/Sun/AppServer/l
ib\rmissl.jar;C:/Sun/AppServer/lib\saaj-api.jar;C:/Sun/AppServer/lib\saaj-impl.jar;C:/Sun/Ap
pServer/lib\xalan.jar;C:/Sun/AppServer/lib\xercesImpl.jar;C:/Sun/AppServer/lib\xsdlib.jar;C:
/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:/Sun/AppServer/imq/lib/jaxm-api
.jar;C:/Sun/AppServer/imq/lib/fscontext.jar;C:/Sun/AppServer/lib/ant/lib/ant.jar;C:/Sun/AppS
erver/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar
com.sun.enterprise.server.PEMain
start
display
native|#]
set path
Path=C:\Sun\AppServer\bin;C:\Sun\jdk1.5.0_02\bin;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\system32\WBEM;C:\Sun\AppServer\bin;xDefaultS-1-x☺^
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
set J2EE_HOME
J2EE_HOME=C:\Sun\AppServer
set JAVA_HOME
JAVA_HOME=C:\sun\jdk1.5.0_02\bin
set include
INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\
pertinent ports from domain.xml
id="http-listener-1" address="0.0.0.0" port="8080" id="http-listener-2"
address="0.0.0.0" port="8181"
id="admin-listener" address="0.0.0.0" port="4848"
id="orb-listener-1" address="0.0.0.0" port="3700"
id="SSL" address="0.0.0.0" port="3820"
id="SSL_MUTUALAUTH" address="0.0.0.0" port="3920"
<jmx-connector accept-all="false" address="0.0.0.0" auth-realm-name="admin-realm"
enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false"/>
<jms-host name="default_JMS_host" host="FE" port="7676" admin-user-name="admin"
admin-password="admin"/>
<property name="DatabaseName"
value="jdbc:pointbase:server://localhost:9092/sun-appserv-samples"/>
contents of domain.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
-->
<!-- Generated from default-domain.xml.template -->
<!DOCTYPE domain PUBLIC "-//Sun Microsystems Inc.//DTD Application Server 8.0 Domain//EN"
"http://www.sun.com/software/appserver/dtds/sun-domain_1_1.dtd">
<domain application-root="${com.sun.aas.instanceRoot}/applications"
log-root="${com.sun.aas.instanceRoot}/logs">
<applications>
<web-module name="adminapp" context-root="/web1"
location="${com.sun.aas.installWhen I set it to false, the the server log no longer gets to display native!#]
when it the hangs.
I finally gave up the ghost, bought a 160G drive, installed it into my desktop, installed Fedora Linux and have not had a problem. Life would be much better if I could get it running on the laptop. My gut tells me that something is wrong with either JAVA_HOME or J2EE_HOME, but I cannot see it. -
Uploading xml file from application server
HI everybody guys having promblem reading xml file from application server.Here is the solution. the sample program is below.
TYPE-POOLS: ixml. "iXML Library Types
*TABLES : rbkp.
TYPE DECLERATIION
TYPES: BEGIN OF type_tabpo,
ebeln TYPE ekko-ebeln, "PO document number
ebelp TYPE ekpo-ebelp, "PO line item
END OF type_tabpo.
TYPES: BEGIN OF type_ekbe,
belnr TYPE rbkp-belnr, "Invoice document
gjahr TYPE rbkp-gjahr, "fiscal year
END OF type_ekbe.
TYPES: BEGIN OF type_invoice,
belnr TYPE rbkp-belnr, "PO document number
gjahr TYPE rbkp-gjahr, "Fiscal Year
rbstat TYPE rbkp-rbstat, "invoice status
END OF type_invoice.
TYPES: BEGIN OF t_xml_line, "Structure for holding XML data
data(256) TYPE x,
END OF t_xml_line.
INTERNAL TABLE DECLERATIION
DATA: gi_tabpo TYPE STANDARD TABLE OF type_tabpo,
gi_ekbe TYPE STANDARD TABLE OF type_ekbe,
gi_invoice TYPE STANDARD TABLE OF type_invoice,
gi_bapiret2 TYPE STANDARD TABLE OF bapiret2.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory.
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO swif_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
*DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line, " XML Table of the structure
l_xml_line TYPE t_xml_line, " Record of structure t_xml_line
l_xml_table_size TYPE i. " XML table size
DATA: l_filename TYPE string.
WORK AREA DECLARATION
DATA: gw_tabpo TYPE type_tabpo,
gw_ekbe TYPE type_ekbe,
gw_invoice TYPE type_invoice,
gw_bapiret2 TYPE bapiret2.
BEGIN OF SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: p_file TYPE pathintern LOWER CASE DEFAULT '/usr/sap/tmp/'.
Validation of XML file: Only DTD included in XML document is supported
SELECTION-SCREEN END OF BLOCK blk1.
INTIALISATION.
INITIALIZATION.
SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN.
To validate p_file is not initial
PERFORM sub_validate_file.
PERFORM sub_validate_path.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Request for filename for xml file from the application server
PERFORM sub_get_filename_appl USING p_file.
START OF SELECTION SCREEN
START-OF-SELECTION.
PERFORM sub_fetch_po_details.
PERFORM sub_get_invoice.
PERFORM sub_rel_invoice.
END OF SELECTION SCREEN
END-OF-SELECTION.
*& Form sub_validate_file
To Validate the file
FORM sub_validate_file .
IF p_file IS INITIAL.
MESSAGE e000. "specify the file path
ENDIF.
ENDFORM. " sub_validate_file
*& Form sub_get_filename_appl
form sub_get_filename_appl USING l_fname TYPE any.
DATA: l_fname TYPE filename-fileintern. " File name
*GET THE FILENAME FROM THE APPLICATION SERVER
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = l_fname
filemask = '*'
IMPORTING
serverfile = l_fname
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " sub_get_filename_appl
*& Form sub_fetch_po_details
To fetch the PO details from the application server
Format of file is XML
FORM sub_fetch_po_details .
TYPE DECLERATIION
l_ixml = cl_ixml=>create( ).
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table.
LOOP AT gi_tabpo INTO gw_tabpo.
WRITE:/ gw_tabpo.
ENDLOOP.
ENDFORM. " sub_fetch_po_details
*& Form get_xml_table
Read from the xml file
FORM get_xml_table .
Local variable declarations
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = p_file.
code to upload data from application server
OPEN DATASET l_filename FOR INPUT IN BINARY MODE.
IF sy-subrc <> 0.
WRITE:/ 'invalid file path'.
ENDIF.
DO.
READ DATASET l_filename INTO l_xml_line.
IF sy-subrc EQ 0.
APPEND l_xml_line TO l_xml_table.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET l_filename.
code to find the table size
DESCRIBE TABLE l_xml_table.
l_xml_table_size = ( sy-tleng ) * ( sy-tfill ).
*code to convert hexadecimal to XML
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
replacement
= space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
l_str1 WITH space.
ENDLOOP.
CALL TRANSFORMATION ('ID') " code to put in internal table
SOURCE XML l_str1
RESULT tab = gi_tabpo[].
ENDFORM. " get_xml_tableHi Raja,
I tried the same. But it not populating the table and giving an error message in the return table "line 1 col 1-unexpected symbol; expected '<', '</', entity reference, charac".
I can't find any ' ; ' in the XML file. What could be the possible reason of error? -
Data sources in deploying web app. to Oracle Application Server
I am using simple web application - JSP with BC4J (JDeveloper 9.0.5.1).
I want to configure my application to use Data Source instead of JDeveloper connection and deploy it to production database, so DB administrator will take care of username and password.
First, I create a new application module configuration that uses a data source instead of a JDeveloper connection with BC config. name TestAppModuleWithDS.
Then I modify my application client (DataBindings.cpx) to use the new configuration (TestAppModuleWithDS).
After that I create deployment profile and deploy to application server connection and try to test it on standalone server, and on production server together with my DBA.
But the application is not running, always displaying error messages...
Please what is the procedure and how to set Config of ApplModule.
It is working properly with embeded server, but on standalone server there is an error:
java.lang.UnsupportedClassVersionError: oracle/jdeveloper/cm/ConnectionDescriptor (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1154)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:390)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java:138)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:271)
at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:817)
at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:169)
at lastcoil.jspService(_testjsp.java:52)
[SRC:/testjsp.jsp:11]
at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Unknown Source)
Application module in testjsp.jsp (_testjsp.java) is:
oracle.jbo.html.jsp.datatags.ApplicationModuleTag __jsp_taghandler_1=(oracle.jbo.html.jsp.datatags.ApplicationModuleTag)OracleJspRuntime.getTagHandler(pageContext,oracle.jbo.html.jsp.datatags.ApplicationModuleTag.class,"oracle.jbo.html.jsp.datatags.ApplicationModuleTag id configname releasemode");
__jsp_taghandler_1.setParent(null);
__jsp_taghandler_1.setId("TestAppModule");
__jsp_taghandler_1.setConfigname("test.TestAppModule.TestAppModuleWithDS");
__jsp_taghandler_1.setReleasemode("Stateful");
__jsp_tag_starteval=__jsp_taghandler_1.doStartTag();
if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))
DataBindings.cpx is configured like this:
?xml version='1.0' encoding='windows-1252' ?>
<JboProject
id="DataBindings"
xmlns="http://xmlns.oracle.com/adfm/application"
version="9.0.5.15.88"
SeparateXMLFiles="false"
Package=""
ClientType="JClient" >
<Contents >
<DataControl
id="TestAppModule"
SubType="DCBC4J"
SupportsFindMode="true"
SupportsTransactions="true"
Package="test"
FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
Configuration="TestAppModuleWithDS" >
<Parameters >
<Parameter
name="Sync"
value="Batch" >
</Parameter>
</Parameters>
</DataControl>
</Contents>
</JboProject>
D:\JDeveloper10\j2ee\home\config\data-sources.xml je:
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
<data-sources>
<!--
An example/default DataSource that uses
Oracle JDBC-driver to create the connections.
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware sources.
The source generally used in application code is the "EJB"
one - it provides transactional safety and connection
pooling. Oracle thin driver could be used as well,
like below.
url="jdbc:oracle:thin:@host:port:sid"
-->
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="OracleDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="scott"
password="tiger"
url="jdbc:oracle:thin:@localhost:5521:oracle"
inactivity-timeout="30"
/>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="TestAppModuleWithDS"
location="jdbc/hmlCoreDS"
xa-location="jdbc/xa/hmlXADS"
ejb-location="jdbc/hmlDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="user1"
password="psw1234"
url="jdbc:oracle:thin:@server.com:1521:sidname"
inactivity-timeout="30"
/>
D:\HotStripMill Projects\bc4j\src\lastcoil\common\bc4j.xcfg
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="TestAppModuleWithDS">
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCDataSource>jdbc/hmlCoreDS</JDBCDataSource>
<jbo.project>bc4j</jbo.project>
<AppModuleJndiName>test.TestAppModule</AppModuleJndiName>
<java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
<ApplicationName>test.TestAppModule</ApplicationName>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="hml">
<ENTRY name="JDBC_PORT" value="1521"/>
<ENTRY name="ConnectionType" value="JDBC"/>
<ENTRY name="HOSTNAME" value="server.com"/>
<ENTRY name="user" value="user1"/>
<ENTRY name="ConnectionName" value="hml"/>
<ENTRY name="SID" value="sidname"/>
<ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
<ENTRY name="password">{904}05437B2C11AE10318B521E7C6EE279666E</ENTRY>
<ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
<ENTRY name="DeployPassword" value="true"/>
</ConnectionDefinition>
</BC4JConfig>
</data-sources>
Thanks!iAS 1.0.x is StoneAge Technology (TM).
Using the E-Business Suite you should look into the newer versions of the Application Server. I believe that 10.1.2.x supports the EBS, otherwise 9.04 should do the trick. Webservice support is much better in the newer versions. 1.0.x is from around 2000/2001 so the Webservice technology back than was "different" :-)
cu
Andreas -
Configuring IdM7.1 on SJS application server 8.2 using Mysql DataSource
Hi all
i tried to configure MysqlDatasource on Sun Application server EE 8.2.The operating system is Solaris10. i am able to successfully create the connection pool and JDBC datasource (jdbc/trialdb) but when i ran the command
lh setRepo -v -tDatastore
-icom.sun.enterprise.naming.SerialInitContextFactory -fjdbc/trialdb
-uiiop://localhost:3306
it gives me the following exceptions/errors
Defaulting administrator to 'configurator'.
Defaulting credentials to 'configurator'.
Checking 'RelationalDataStore:jdbc/trialdb'...
java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
ity.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.omg.CORBA.ORB.create_impl(ORB.java:295)
at org.omg.CORBA.ORB.init(ORB.java:336)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
ontextFactory.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
54)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
ore.java:3834)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
ava:3779)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.Command.main(Command.java:117)
java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/ejb.p
roperties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
at com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:5
4)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(
PIORB.java:377)
at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.ja
va:347)
at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:
116)
at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
a:336)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
ontextFactory.java:31)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
54)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:571)
at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
ore.java:3834)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
ava:3779)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.Command.main(Command.java:117)
Warning: unable to read transaction.interoperability config property
java.io.FileNotFoundException: /psegApp/opt/SUNWappserver/appserver/config/secur
ity.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42
at com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(S
ecurityMechanismSelector.java:102)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLS
ocketFactory.java:211)
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:73)
at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(Connecti
onTable.java:68)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:7
0)
at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(Init
ialNamingClient.java:769)
at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostIn
fo(InitialNamingClient.java:597)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(I
nitialNamingClient.java:573)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBIn
itRef(InitialNamingClient.java:544)
at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialRefe
rences(InitialNamingClient.java:1080)
at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_r
eferences(InitialNamingClient.java:981)
at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.ja
va:2425)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:52)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
ore.java:3834)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
ava:3779)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.Command.main(Command.java:117)
javax.naming.CommunicationException: Can't find SerialContextProvider
Failed to load JDBC DataSource 'jdbc/trialdb':
==> javax.naming.CommunicationException: Can't find SerialContextProvider
com.waveset.util.ConfigurationError: Failed to load JDBC DataSource 'jdbc/triald
b':
==> javax.naming.CommunicationException: Can't find SerialContextProvider
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:610)
at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
ore.java:3834)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
ava:3779)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.Command.main(Command.java:117)
Caused by: javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
... 17 more
Wrapped exception:
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.waveset.util.JdbcUtil.getDataSourceObject(JdbcUtil.java:583)
at com.waveset.repository.RelationalDataStore.setupJdbc(RelationalDataSt
ore.java:3834)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.j
ava:3779)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.waveset.util.Command.main(Command.java:117)There is no security.properties file under config directory. i checked with other installation, no such file have been created under this directory.
Please help me where i am missing or some else step needs to be followed. i exactly followed the Sun installation manual.
Thanks in advance.Hi Paz,
Thanks for taking the time :)
To answer your questions:
1. Has this WebServices ever worked or is this the first time?
The web service is working perfectly fine on my working station, the problem appears only when I deploy it on my actual server, which means that the web service is working.
2. What Apache Axis Version are you using?
1.4
3. What JRE version are you using?
Both my development pc and my server run jre 1.5.0_14
4. In the actual server environment, can you confirm all information are exactly same as DEV environment...
Oh yes! Absolutely.
My recent assumption is that some windows service might be needed to run the web service client and obviously I have no clue which one it might be.
Just to make sure; is the security policy of my Application Server set correctly?
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "queuePrintJob";
permission java.net.SocketPermission "*", "connect,accept,resolve";
permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
// work-around for pointbase bug 4864405
permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
permission java.util.PropertyPermission "*", "read,write";
permission java.lang.RuntimePermission "modifyThreadGroup";
Again thanks for taking the time :) -
Servlet on "Sun Java System Application Server Platform Edition 9.0"
Hi Friends,
I'm using Sun Java System Application Server Platform Edition 9.0
my server is instatted on "C:\Sun\AppServer\" and rest is default istallation path
my web page is calling from "C:\Sun\AppServer\domains\domain1\docroot\" folder
I wrote a test servert and placed the complied
using the command
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>javac -cp C
:\Sun\AppServer\lib\j2ee.jar TestServlet.java
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>
and placed the class file in "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk\TestServlet.class" having following code
package in.muk;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException {
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<html><head><title>TestServlet</title>");
out.println("\t<style>body { font-family: 'Lucida Grande', " +
"'Lucida Sans Unicode';font-size: 13px; }</style>");
out.println("</head><body><p>Current Date/Time: " + new Date().toString() + "</p>");
out.println("</body></html>");
out.close();
The content of my "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml" file is
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>in.muk.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>--------------------
The content of "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\sun-web.xml"
is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
</sun-web-app>--------------
The proble is I'm not able to call this servlet on web
with URL
*http://localhost:8080/TestServlet
*it is giving "HTTP Status 404 - "
Could anybody please help me in finding out why I'm not able to access the Servlet.
Thank you with regards.
Edited by: mu_kumar on Mar 5, 2008 9:00 PMHello,
Did you download the window version?
Download it from
https://sdlc4e.sun.com/ECom/EComActionServlet;jsessionid=127ACE07200555497A21DDC654885146
And don't worry, it's the correct version. Also could you check on your PC,
Start\Programs\ Sun Microsystems\ Application Server PE 9.
Also which operative system are you using?
eve -
Hi,
Can someone tell me what maximum values can I set in the following properties under Connection Attributes when I define a DataSource on
Application Server. I have almost 25+ web application deployed on my 10.1.2.0.2 server that all uses one data source I have defined. Now the issue is the number of requests
are very high and every now and then I get timeout error when trying to get the database connection. At one particular instance at peak time I may get over 200+ requests that
do some databse connections etc. Following are my current settings. But need to increase some more but wondering what are the maximum values I can have. I have only one server 10.1.2.0.2
Connection Retry Interval (seconds) = 5
Max Connection Attempts = 3
Cached Connection Inactivity Timeout (seconds) = 30
Maximum Open Connections = 60
Minimum Open Connections = 10
Wait For Free Connection Timeout (seconds) = 15
What other properties can I have to make use of datasource effectively.
ThanksHere is the copy of my datasources.xml.
<?xml version = '1.0' standalone = 'yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
<!--
An example/default DataSource that uses
Oracle JDBC-driver to create the connections.
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware sources.
The source generally used in application code is the "EJB"
one - it provides transactional safety and connection
pooling. Oracle thin driver could be used as well,
like below.
url="jdbc:oracle:thin:@host:port:sid"
-->
<data-source class="com.evermind.sql.DriverManagerDataSource" name="OracleDS"
location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="scott" password="tiger"
url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"
inactivity-timeout="30"/>
<!-- For SQL Server -->
<data-source location="jdbc/TestDS"
class="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"
password="pwd" xa-location="jdbc/TestDS"
ejb-location="jdbc/TestDS"
connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
username="usr"
url="jdbc:microsoft:sqlserver://someloc99:1433/DevelopmentAp"
inactivity-timeout="30" name="jdbc/TestDS"
connection-retry-interval="5" max-connections="50"
max-connect-attempts="3">
<description>jdbc/TestDS</description>
<property name="DatabaseName" value="DevelopmentAp"/>
<property name="serverName" value="someloc99"/>
</data-source>
</data-sources>I also tried changing max-connections="0" it did helped but still after sometime I get timeout while connecting to the database. Don't know if it's with SQL Server that is not letting that many concurrent connections/sessions or something on the Application Server side.
Thanks
Message was edited by:
WhiteSox
Message was edited by:
WhiteSox -
Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
public Connection getConnection()throws RemoteException
InitialContext initctx = null;
Connection con = null;
try
initctx = initcontext.getContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
return con;
public String getDate()throws RemoteException
String Date=null;
try
con=getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
while(rs.next())
Date=rs.getString(1);
stmt.close();
con.close();
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
return Date;
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!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>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!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>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
<ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
</ejb-ref>
<ejb-ref>
<description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>country_code_desc</field-name>
</cmp-field>
<cmp-field>
<field-name>phone_format_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_code</field-name>
</cmp-field>
<cmp-field>
<field-name>active_date</field-name>
</cmp-field>
<cmp-field>
<field-name>date_created</field-name>
</cmp-field>
<cmp-field>
<field-name>active_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_phone_code</field-name>
</cmp-field>
<cmp-field>
<field-name>country_tax_percent</field-name>
</cmp-field>
<cmp-field>
<field-name>sort_order</field-name>
</cmp-field>
<cmp-field>
<field-name>date_modified</field-name>
</cmp-field>
<cmp-field>
<field-name>user_created</field-name>
</cmp-field>
<cmp-field>
<field-name>user_modified</field-name>
</cmp-field>
<resource-ref>
<description></description>
<res-ref-name>jdbc/ePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
private SessionContext context;
* Sets the context of the bean
* @param context The Bean's Context
public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
Context ctx = initcontext.getContext();
Connection con=null;
Vector records=new Vector();
int pageno=Integer.parseInt(pagenos);
int min=(pageno-1)*10;
int max=pageno*10;
int counter=0;
boolean recordsfound=false;
try
DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
con=remote.getConnection();
Statement stmt = con.createStatement();
ResultSet rscount =
stmt.executeQuery(countquery);
while(rscount.next())
int temp=rscount.getInt(1);
int pagecount=temp;
pagecount=pagecount/10;
if((temp%10)>0)
pagecount=pagecount+1;
records.addElement(""+pagecount);
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
counter++;
if(counter>min && counter<=max)
String row[]=new String[8];
recordsfound=true;
row[0]=rs.getString(1);
row[1]=rs.getString(2);
row[2]=rs.getString(3);
row[3]=rs.getString(4);
row[4]=rs.getString(5);
row[5]=rs.getString(6);
row[6]=rs.getString(7);
row[7]=rs.getString(8);
records.addElement(row);
con.close();
catch(Exception e)
System.out.println("Error in selecting Country
Code "+e);
throw new Exception("Error in selecting Country
Code "+e);
return(records);
public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
Context ctx = initcontext.getContext();
Double Sort_Order=null;
Double cntry_tax_prct=null;
if(sort_order!=null && sort_order.length()>0)
Sort_Order=new Double(sort_order);
if(country_tax_percent!=null &&
country_tax_percent.length()>0)
cntry_tax_prct=new Double(country_tax_percent);
String user_created=null;
Timestamp date_created=null;
Timestamp active_date=null;
String user_modified=null;
Timestamp date_modified=null;
try
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
active_date=date_created;
EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);
catch(Exception e)
System.out.println("Error in Creating COUNTRY
Code "+e);
throw new Exception("Error in Creating COUNTRY
Code "+e);
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
Statement st;
ResultSet rs;
ResultSetMetaData rmeta;
....%>
<%
try
Context ctx = initcontext.getContext();
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
con=dbremote.getConnection();
st=con.createStatement();
rs=st.executeQuery(strsqlquery);
rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!! -
User Role problems in Sun Java Application Server Platform Edition 8
I am having two problems setting up user roles in Sun Java Application Server Platform Edition 8. At first, I thought that it was a problem with the higher level features that I was using, so I created a very simple example using the simplest authentication I can use, but the problem still occurs. I am using the file realm and configuring the users in the App Server Admin Console. I create 2 users in different roles. One user should have access, the other should not.
1) The first problem is that both users can access the page
2) The second problem is that the isUserInRole() method returns false for both users with the role that it should be authenticating against.
Here is a sample of my code:
Users Configured in Console:
username password roles
user1 ********** admin
user2 ********** noaccess
web.xml
<security-role>
<role-name>admin</role-name>
</security-role>
<security-constraint>
<web-resource-collection>
<web-resource-name>My Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>file</realm-name>
</login-config>
<servlet>
<servlet-name>
TestServlet
</servlet-name>
<servlet-class>
mypackage.TestServlet
</servlet-class>
<security-role-ref>
<role-name>admin</role-name>
<role-link>admin</role-link>
</security-role-ref>
</servlet>
<servlet-mapping>
<servlet-name>
TestServlet
</servlet-name>
<url-pattern>
/TestServlet
</url-pattern>
</servlet-mapping>
TestServlet.java:
out.println("admin role: " + request.isUserInRole("admin") + "<BR/>");
Thanks before hand for any responses.
- BrianHi Jeanfrancois,
Your suggestion has lead me to find my problem. There were actually three problems.
1) First, you suggestion to reorder my xml file did not cause any errors to occur. I got suspicious that my web.xml file was wrong. I looked at some sample web-xml files and found that I was missing the header as follows:
<?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'>
2) When I added this information, the deploy feature failed stating the my web.xml file was out of order. I fixed the ordering. It now deployed, but the security still wasn't working.
3) I then added the sun-web.xml file. This file was missing before hand as I thought it was unnessary. However, this file added the essential mapping from a role to a group. After adding this, it now started to work.
Thanks so much for you time and effort. You really did help me.
- Brian Blank -
Servlet configration on "Sun Java System Application Server Platform Editio
Hi Friends,
I'm using Sun Java System Application Server Platform Edition 9.0
my server is instatted on "C:\Sun\AppServer\" and rest is default istallation path
my web page is calling from "C:\Sun\AppServer\domains\domain1\docroot\" folder
I wrote a test servert and placed the complied class file in "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk\TestServlet.class" having following code
using the command
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>javac -cp C
:\Sun\AppServer\lib\j2ee.jar TestServlet.java
C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\classes\in\muk>
{noformat}<code>package in.muk;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException {
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<html><head><title>TestServlet</title>");
out.println("\t<style>body { font-family: 'Lucida Grande', " +
"'Lucida Sans Unicode';font-size: 13px; }</style>");
out.println("</head><body><p>Current Date/Time: " + new Date().toString() + "</p>");
out.println("</body></html>");
out.close();
</code>{noformat}
The content of my "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\web.xml" file is
{noformat}<code><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>in.muk.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
</code>{noformat}
The content of "C:\Sun\AppServer\domains\domain1\docroot\WEB-INF\sun-web.xml"
is -----
{noformat}<code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
</sun-web-app>
</code>{noformat}
The proble is I'm not able to call this servlet on web
with URL
http://localhost:8080/TestServlet
it is giving "HTTP Status 404 - "
Could you please help me in finding out where is the errorThanks for the reply.
I am using Sun Java System Application Server Platform Edition 8.2 (build b06-fcs). Could be some problem in the application itself. Can you suggest what may be missing? As suggested in the bug description i used the wscompile -infix option as well. -
Eclipse/Sun Java Application Server
Hi,
I'm running MyEclipse 5.5.1 on an XP machine and Java System Application Server on a Win 2003 server in an intranet. I want to deploy directly from MyEclipse, but the server won't start. Have tried Tomcat wich works fine, firewalls are disabled. The log file complains it can't find the path/file specified, although it DOES exist.
An example, this file does exist: C:\Sun\SDK\imq\lib\imqjmsra.rar
Thanks,
Mattias
Here's the complete log file:
[#|2007-06-11T00:07:35.765+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01) ...|#]
[#|2007-06-11T00:07:36.281+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java HotSpot(TM) Client VM;1.5.0_11;Sun Microsystems Inc.;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_11] from [Sun Microsystems Inc.]|#]
[#|2007-06-11T00:07:36.359+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|SEC1002: Security Manager is OFF.|#]
[#|2007-06-11T00:07:36.734+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Using MQ RA for Broker lifecycle control|#]
[#|2007-06-11T00:07:42.265+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:MBeanServer initialized successfully|#]
[#|2007-06-11T00:07:43.390+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
[#|2007-06-11T00:07:43.500+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.selfmanagement|_ThreadID=10;_ThreadName=main;|sgmt.service_initialized|#]
[#|2007-06-11T00:07:43.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|LCM0101: Exception loading lifecycle module [AMConfiguratorLifeCycleModule]; [java.lang.ClassNotFoundException: com.sun.am.AMConfiguratorLifeCycleModule]|#]
[#|2007-06-11T00:07:43.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|LCM0101: Exception loading lifecycle module [JBIFramework]; [java.lang.ClassNotFoundException: com.sun.jbi.framework.sun.SunASJBIFramework]|#]
[#|2007-06-11T00:07:44.218+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;The system cannot find the path specified:C:\Sun\SDK\imq\lib\imqjmsra.rar;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|RAR7000 : Check for a new version of MQ installation failed : The system cannot find the path specified:C:\Sun\SDK\imq\lib\imqjmsra.rar|#]
[#|2007-06-11T00:07:45.890+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.transaction|_ThreadID=10;_ThreadName=main;3700;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
[#|2007-06-11T00:07:47.703+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079: Initialization of AMX MBeans successful|#]
[#|2007-06-11T00:07:48.031+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;service:jmx:rmi:///jndi/rmi://192.168.1.100:8686/jmxrmi;|ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://192.168.1.100:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors|#]
[#|2007-06-11T00:07:48.031+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;true;|ADM1506: Status of Standard JMX Connector: Active = [true]|#]
[#|2007-06-11T00:07:48.484+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;|JMS Service Connection URL is :mq://p4:7676/|#]
[#|2007-06-11T00:07:48.500+0300|INFO|sun-appserver-pe9.0|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...|#]
[#|2007-06-11T00:07:48.625+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|EB-start:brokerProps={imq.instancename=imqbroker, imq.jmx.rmiregistry.port=8686, BrokerArgs=-port 7676 -name imqbroker -imqhome C:\Sun\SDK\imq\bin\.. -varhome Z:\SDK\domains\domain1\imq -useRmiRegistry -rmiRegistryPort 8686, imq.jmx.rmiregistry.use=true, imq.portmapper.port=7676}|#]
[#|2007-06-11T00:07:48.671+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|
[11/jun/2007:00:07:48 EEST] WARNING [B2001]: Unable to load default property file C:\Sun\SDK\imq\lib\props\broker\default.properties:
java.io.FileNotFoundException: C:\Sun\SDK\imq\lib\props\broker\default.properties (The system cannot find the path specified)
|#]
[#|2007-06-11T00:07:48.687+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] ERROR [B3001]: Defaulting to use the fallback properties. The Broker will only run in a minimal configuration using these settings. Fallback properties are being used because the defaults.property files could not be loaded. Please check the value of IMQ_HOME
|#]
[#|2007-06-11T00:07:48.718+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST]
================================================================================
Sun Java(tm) System Message Queue 4.0
Sun Microsystems, Inc.
Version: 4.0 (Build 27-a)
Compile: Thu 03/02/2006
Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
This product includes code licensed from RSA Data Security.
================================================================================
Java Runtime: 1.5.0_11 Sun Microsystems Inc. C:\Program Files\MyEclipse 5.5.1 GA\jre
|#]
[#|2007-06-11T00:07:48.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] IMQ_HOME=C:\Sun\SDK\imq
|#]
[#|2007-06-11T00:07:48.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] IMQ_VARHOME=Z:\SDK\domains\domain1\imq
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Windows XP 5.1 x86 192.168.1.100 (2 cpu) Administrator
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Java Heap Size: max=506816k, current=21956k
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Arguments: -port 7676 -name imqbroker -imqhome C:\Sun\SDK\imq\bin\.. -varhome Z:\SDK\domains\domain1\imq -useRmiRegistry -rmiRegistryPort 8686
|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] ERROR [B3086]: The broker got an exception when trying to acquire the lock file:
null\instances\imqbroker\lock
java.io.IOException: The system cannot find the path specified
The lock file may be corrupted, or there may be a permission problem
with the lock file or the directory that contains the lock file.
If you are certain no other copy of the broker is running with the
instance name "imqbroker" then you may remove the lock file and
try starting the broker again.
|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|RAR6035 : Resource adapter start failed : {0}
javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|
com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:142)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
... 10 more
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.796+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Failed to start JMS RA|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.jms.JmsProviderLifecycle@e5f01b;com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Service com.sun.enterprise.jms.JmsProviderLifecycle@e5f01b cannot be started! : com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:420)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:142)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
... 4 more
Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
... 10 more
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.828+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Server Startup failed. Exiting...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Server shutdown in progress...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;|WEB0303: Stopping Sun-Java-System/Application-Server.|#]
[#|2007-06-11T00:07:48.828+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while stopping the web container
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:754)
at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:83)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:440)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:123)
at com.sun.enterprise.server.PEMain.run(PEMain.java:343)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: LifecycleException: WEB0103: This web container has not yet been started
at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:834)
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:746)
... 5 more
|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5051: Shutting down all J2EE applications ...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5060 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5061 : Resource adapters Stop() Complete|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5052: Application shutdown complete.|#]
[#|2007-06-11T00:07:49.250+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Server stopped due to Server startup failure.|#]Hi,
I'm running MyEclipse 5.5.1 on an XP machine and Java System Application Server on a Win 2003 server in an intranet. I want to deploy directly from MyEclipse, but the server won't start. Have tried Tomcat wich works fine, firewalls are disabled. The log file complains it can't find the path/file specified, although it DOES exist.
An example, this file does exist: C:\Sun\SDK\imq\lib\imqjmsra.rar
Thanks,
Mattias
Here's the complete log file:
[#|2007-06-11T00:07:35.765+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01) ...|#]
[#|2007-06-11T00:07:36.281+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java HotSpot(TM) Client VM;1.5.0_11;Sun Microsystems Inc.;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_11] from [Sun Microsystems Inc.]|#]
[#|2007-06-11T00:07:36.359+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|SEC1002: Security Manager is OFF.|#]
[#|2007-06-11T00:07:36.734+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Using MQ RA for Broker lifecycle control|#]
[#|2007-06-11T00:07:42.265+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:MBeanServer initialized successfully|#]
[#|2007-06-11T00:07:43.390+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
[#|2007-06-11T00:07:43.500+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.selfmanagement|_ThreadID=10;_ThreadName=main;|sgmt.service_initialized|#]
[#|2007-06-11T00:07:43.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|LCM0101: Exception loading lifecycle module [AMConfiguratorLifeCycleModule]; [java.lang.ClassNotFoundException: com.sun.am.AMConfiguratorLifeCycleModule]|#]
[#|2007-06-11T00:07:43.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|LCM0101: Exception loading lifecycle module [JBIFramework]; [java.lang.ClassNotFoundException: com.sun.jbi.framework.sun.SunASJBIFramework]|#]
[#|2007-06-11T00:07:44.218+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;The system cannot find the path specified:C:\Sun\SDK\imq\lib\imqjmsra.rar;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|RAR7000 : Check for a new version of MQ installation failed : The system cannot find the path specified:C:\Sun\SDK\imq\lib\imqjmsra.rar|#]
[#|2007-06-11T00:07:45.890+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.transaction|_ThreadID=10;_ThreadName=main;3700;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
[#|2007-06-11T00:07:47.703+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079: Initialization of AMX MBeans successful|#]
[#|2007-06-11T00:07:48.031+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;service:jmx:rmi:///jndi/rmi://192.168.1.100:8686/jmxrmi;|ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://192.168.1.100:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors|#]
[#|2007-06-11T00:07:48.031+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;true;|ADM1506: Status of Standard JMX Connector: Active = [true]|#]
[#|2007-06-11T00:07:48.484+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;|JMS Service Connection URL is :mq://p4:7676/|#]
[#|2007-06-11T00:07:48.500+0300|INFO|sun-appserver-pe9.0|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...|#]
[#|2007-06-11T00:07:48.625+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|EB-start:brokerProps={imq.instancename=imqbroker, imq.jmx.rmiregistry.port=8686, BrokerArgs=-port 7676 -name imqbroker -imqhome C:\Sun\SDK\imq\bin\.. -varhome Z:\SDK\domains\domain1\imq -useRmiRegistry -rmiRegistryPort 8686, imq.jmx.rmiregistry.use=true, imq.portmapper.port=7676}|#]
[#|2007-06-11T00:07:48.671+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|
[11/jun/2007:00:07:48 EEST] WARNING [B2001]: Unable to load default property file C:\Sun\SDK\imq\lib\props\broker\default.properties:
java.io.FileNotFoundException: C:\Sun\SDK\imq\lib\props\broker\default.properties (The system cannot find the path specified)
|#]
[#|2007-06-11T00:07:48.687+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] ERROR [B3001]: Defaulting to use the fallback properties. The Broker will only run in a minimal configuration using these settings. Fallback properties are being used because the defaults.property files could not be loaded. Please check the value of IMQ_HOME
|#]
[#|2007-06-11T00:07:48.718+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST]
================================================================================
Sun Java(tm) System Message Queue 4.0
Sun Microsystems, Inc.
Version: 4.0 (Build 27-a)
Compile: Thu 03/02/2006
Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
This product includes code licensed from RSA Data Security.
================================================================================
Java Runtime: 1.5.0_11 Sun Microsystems Inc. C:\Program Files\MyEclipse 5.5.1 GA\jre
|#]
[#|2007-06-11T00:07:48.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] IMQ_HOME=C:\Sun\SDK\imq
|#]
[#|2007-06-11T00:07:48.734+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] IMQ_VARHOME=Z:\SDK\domains\domain1\imq
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Windows XP 5.1 x86 192.168.1.100 (2 cpu) Administrator
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Java Heap Size: max=506816k, current=21956k
|#]
[#|2007-06-11T00:07:48.750+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] Arguments: -port 7676 -name imqbroker -imqhome C:\Sun\SDK\imq\bin\.. -varhome Z:\SDK\domains\domain1\imq -useRmiRegistry -rmiRegistryPort 8686
|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|[11/jun/2007:00:07:48 EEST] ERROR [B3086]: The broker got an exception when trying to acquire the lock file:
null\instances\imqbroker\lock
java.io.IOException: The system cannot find the path specified
The lock file may be corrupted, or there may be a permission problem
with the lock file or the directory that contains the lock file.
If you are certain no other copy of the broker is running with the
instance name "imqbroker" then you may remove the lock file and
try starting the broker again.
|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|RAR6035 : Resource adapter start failed : {0}
javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.796+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|
com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:142)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
... 10 more
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.796+0300|INFO|sun-appserver-pe9.0|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Failed to start JMS RA|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.jms.JmsProviderLifecycle@e5f01b;com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Service com.sun.enterprise.jms.JmsProviderLifecycle@e5f01b cannot be started! : com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA|#]
[#|2007-06-11T00:07:48.796+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: Failed to start JMS RA
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:420)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:142)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:215)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:83)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:434)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:415)
... 4 more
Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:412)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:116)
... 10 more
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:199)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:409)
... 13 more
|#]
[#|2007-06-11T00:07:48.828+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Server Startup failed. Exiting...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Server shutdown in progress...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;|WEB0303: Stopping Sun-Java-System/Application-Server.|#]
[#|2007-06-11T00:07:48.828+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while stopping the web container
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:754)
at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:83)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:440)
at com.sun.enterprise.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:123)
at com.sun.enterprise.server.PEMain.run(PEMain.java:343)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
Caused by: LifecycleException: WEB0103: This web container has not yet been started
at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:834)
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:746)
... 5 more
|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5051: Shutting down all J2EE applications ...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5060 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE 5061 : Resource adapters Stop() Complete|#]
[#|2007-06-11T00:07:48.828+0300|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5052: Application shutdown complete.|#]
[#|2007-06-11T00:07:49.250+0300|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=5216a006-263a-4cc7-9f1d-607165e4f4c7;|Server stopped due to Server startup failure.|#] -
How to start Sun Java System Application Server 9.0
yesterday morning i downloaded the software from sun.java.com and installed it .but i failed in starting the application server on my system(windows). i read the quick start guide and followed the steps : <From the Start menu, choose Programs => Sun Microsystems => Application Server PE 9 => Start Default Server. > the first try the message appeared in the command window is <domain listens on at least following ports for connections:[8080 8181 4848 3700 3820 3920 8686 ]> . i tried it later for several times ,but i got a same answer [b]<the domain (domain1) is already running .cli156 could not start the domain domain1> . both of the two answers are different from the message shows in the Guide . finally i failed . i hope someone can help me , i will really appreciate it .
sent by :
meansundear skgaju,thank you very much ! but i am still in the trouble. i failed in the step http://<IP>:port/ whether i typed the port number 4849 or 4848 . and then i try to open domain.xml. but it shows [the system can not find the appointed object and something wrong when system deals with the resource : of 'http://www.sun.com/software/appserver/dtds/sun-domain_1_2.dtd' . i puzzled. could you tell me what's wrong with my machine?
Maybe you are looking for
-
Issues with airport and windows XP
just installed XP on my mac (cant believe i just typed that!) and running airport extreme and expresses (no WEP) and can connect on the macbook running OSX (10.4.6) no problem. boot into XP (pro) and i get a connection, strong signal, all that jazz,
-
Current Security Context Not Trusted When Using Linked Server From ABAP
Hello, I am experiencing a head-scratcher of a problem when trying to use a Linked Server connection to query a remote SQL Server database from our R/3 system. We have had this working just fine for some time, but after migrating to new hardware and
-
How do you delete an inspection rule in MARS
-
Troubleshooting "error generating preview" in Installer
From time to time, I have run into this maddening condition where I build an installer and it will not run because it reports "error generating preview" errors on the EXE for which I am trying to build the installer. Most often, I can build the EXE
-
Tracking the DDL (DROP) statements executed in a DB ?
Hi , I had a requirement like tracking all the DDL executed in the DB. I used V$SQL to track the DDL statements.Also by joining V$SQL and V$SESSION using the ADDRESS and SQL_ADDRESS, i'm tracking the MACHINE and TERMINAL of the user who issued this c