Sun Application Server 8.1 remote deplyment database connection

I use the deploy to Remote server to deply a project to Sun Application Server 8.1. When i try to connect to the database I get connection error
javax.servlet.ServletException: javax.faces.FacesException: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Access denied for user ''@'testserver.com' (using password: YES)
it seems it doesnt pick the User from the Connection pull settings. The settings at the server seem correct.
This works fine when i deply to Application server 8.0 that comes with the Sun creator

The user is correct and it does work from 8.0/
The server doesnt pick the username from the
configuration
the error message says use '' emptyWhat "configuration" are you referring to? Do you mean the way that you have the 8.1 server set up?
Since you cannot ping, then there is something wrong with the configuration on the 8.1 server.
Why don't you remove the connection pool and start over from scratch and cut/paste the settings from the 8.0 app server over. Then make sure you can ping once everything is set up.
Also, where is the 8.1 box located? Are you sure it has access to the database that you are trying to reach?
You might try posting this to the App Server forum as it really isn't a Creator problem.

Similar Messages

  • Remote debugging of Sun Application server

    Hello Techies,
    I am using remote sun application server 6.0. I am having one web instance in this server.
    I want to know how can i debug my instance ??
    I am using Eclipse ide. I had used the option Run>Debug>RemoteJavaApplication> I had given my host name n port no.
    I am getting unable to connect remote VM.
    How can I solve this problem?? Plz help regarding this one.
    regards,
    Ramu

    Hi friends,
    In a java application, When we try to open a pdf from a hyperlink, it opens it on the page itself and displays all garbage.
    It should open in adobe reader. Is it possible. If yes, How ?
    Regards,
    Jassie.

  • Exception/error messages from remotely deploying sun application server 8.2

    Hi
    I have a solaris network with some servers running sun application server 8.2. When I deploy applications to these application servers (using ant) from a single server connected to them on the netwrok, sometimes exceptions are thrown. What is done now, is the person doing the deploying from the central server, logs onto each server with an appserver and looks through each application servers log file to see if there were any exceptions thrown while deploying apps on that server. What I would like to do is find some way to have those exceptions sent back to the deploying system so that they can show up on the terminal from which the any script was run.
    appserver <------------------------- central server running ant -----------------------------------> appserver
    / | \
    / | \
    / | \
    / | \
    / | \
    appserver appserver appserver
    Many appservers getting apps deployed to them through the use of ant. Want to catch any exception thrown by any of the appservers and view on terminal on central server running ant.
    Any ideas/thoughts?
    Thanks...
    Mike

    The diagram did not come the way I had hoped. It was suppose to look like the "central server running ant" was pointing to a number of different servers running an appserver.
    Thanks for any suggestions...
    Mike

  • Sun Application Server 9.1_02 + Sun RFID Software 3.0 + Postgres8.3?

    Hi all
    I am working on some RFID-related project. I need to capture, fiter and then perform some other tasks on the data sensed by RFID readers, all in Java. So I choose Sun's software. There was no luck when I was trying to configure my system to work with Sun's software. Hope you experienced could do me a favor and help me out. Thanks in advance. Here are details.
    In the installation guide of Sun Java System RFID Software 3.0, it says, to install RFID information server, Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 and PostgreSQL 8.0.4 are needed.
    For the following 2 reasons:
    1 PostgreSQL 8.0.4 is now not available to download on www.postgresql.org;
    2 I think later version of PostgreSQL or Sun Application Server should be compatible to their earlier versions
    I tried the following combination other than those stated in the installation guide:
    1 PostgreSQL 8.3;
    2 Sun Java System Application Server 9.1_02, bound with Sun Java Application Platform SDK Update 5;
    3 Sun Java System RFID Software 3.0
    Then, the application server successfully communicates with PostgreSQL, demonstrated by "ping success" through the connection pool built in application server's admin console.
    The RFID information server communicates successfully with PostgreSQL, demonstrated by deploying RFID information server database successfully in PostgreSQL.
    But, instructed by the installation guide, when I tried to validate my RFID information server installation by typing "http://localhost:8080/epcis" in the browser, the application server reported "the resource is not available".
    I looked into many other internet resources and instructions about this, but no luck at all. I am now really, really stuck. Hope you could do me this favor. Thanks.
    PS:
    1 PostgreSQL8.3 is available on http://www.postgresql.org/download/
    2 Sun Java System Application Server is available on http://java.sun.com/javaee/downloads/index.jsp
    3 Sun Java System RFID Software and the installation guide are available on https://sun-rfid.dev.java.net/SJS_RFID_Software.html
    4 Operation System is Windows XP

    Would be a great idea to open-source the Sun RFID project, since the project is inactive over the last tree years.
    Seems that this project have a great architecture, but the techonolgy is outdated ...
    We have another open source initiave (google for Aspire RFID), but seems that this project still imature ...
    Comercial options includes ALE Server, and Sendra Solutions (but I didn't evaluated these)
    Mario Prado-Brazil

  • How to configure sun application server 8.2 for Oracle RAC 10g

    Hello,
    We have numerous boxes running the sun platform application server 8.2 and 2 boxes running enterprise version 8.2 all connecting to a 4 node Oracle RAC 10 G release 2 database. We have the system up and working. The application servers are connecting just fine to the database and the apps don't have any problems querying, inserting, etc. However, when we try to do failover testing of situations when a node or nodes of the Oracle RAC database goes down the application server does not gain new valid connections. Our configuration is this, OracleDataSource for the data source, table validation turned on with a valid table, ONS configuration set in properties, connectionCache enabled, and fastconnectionfailover enabled as well in the properties. We have that long oracle rac url with load balancing turned on set fot the database URL. We have the checkbox checked to fail all connections on any failure. ONS is configured properly within the database because we have a java application that runs outside of the application server that uses all the same settings described above (only set manually in our code for the OracleDataSource). This application works seemlessly when DB nodes are shutdown. We can shutdown all but one node and it's still humming along without skipping a beat. Start up one of the others, kill the last node, it still hums along nicely without skipping a beat. We'd really like to get the applications running in the application server to work the same way. Any help would be greatly appreciated. We've tried all the combinations that we can think of with configuration settings in the application server and it never works. Am tempted to rip out the database connection pool from inside the application server and configure it manually in the code but we are using entity beans and this is the much easier approach, if it will work. It's down to the point of does sun application server actually work with oracle RAC for connection failovers.

    Hi,
    We are also facing similar execption. Here is the error, we are getting, when a node is failed on RAC.
    [#|2007-11-11T12:43:53.685+0000|WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.core.transaction|_ThreadID=38;|JTS5041: The resource manager is doing work outside a global transaction
    oracle.jdbc.xa.OracleXAException
    at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1270)
    at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:318)
    at com.sun.gjc.spi.XAResourceImpl.start(XAResourceImpl.java:184)
    at com.sun.jts.jta.TransactionState.startAssociation(TransactionState.java:258)
    at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:181)
    at com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:397)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:312)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:114)
    at com.sun.enterprise.resource.ResourceManagerImpl.registerResource(ResourceManagerImpl.java:113)
    at com.sun.enterprise.resource.ResourceManagerImpl.enlistResource(ResourceManagerImpl.java:71)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:268)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:193)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:122)
    at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:70)
    at com.syntegra.nasp.etp.dax.DBManager.getConnection(DBManager.java:192)
    at com.syntegra.nasp.etp.dax.DBManager.createDBCommand(DBManager.java:241)
    at com.syntegra.nasp.etp.dax.DBManager.createDBCommand(DBManager.java:251)
    at com.syntegra.nasp.etp.dax.sp.SPS_PRESCRIPTION_GUID_PROC.getCommand(SPS_PRESCRIPTION_GUID_PROC.java:31)
    at com.syntegra.nasp.etp.dax.sp.SPS_PRESCRIPTION_GUID_PROC.execute(SPS_PRESCRIPTION_GUID_PROC.java:23)
    at com.syntegra.nasp.etp.dax.PrescriptionBaseDataMapper.loadPresciptionByGUID(PrescriptionBaseDataMapper.java:203)
    at com.syntegra.nasp.etp.model.PrescriptionBase.findByPrescriptionGUID(PrescriptionBase.java:176)
    at com.syntegra.nasp.etp.messages.PatientPrescriptionReleaseRequest.execute(PatientPrescriptionReleaseRequest.java:120)
    at com.syntegra.nasp.etp.service.ETPSLBean.processMessage(ETPSLBean.java:159)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:128)
    at $Proxy6.processMessage(Unknown Source)
    at com.syntegra.nasp.etp.listener.RequestListener.onRequest(RequestListener.java:204)
    at com.syntegra.spine.csf.consumer.mdb.CSFListenerRegisteringConsumer.onRequest(CSFListenerRegisteringConsumer.java:54)
    at com.syntegra.spine.csf.consumer.mdb.CSFConsumerBase.invokeListener(CSFConsumerBase.java:267)
    at com.syntegra.spine.csf.consumer.mdb.CSFConsumerBase.processMessage(CSFConsumerBase.java:180)
    at com.syntegra.spine.csf.consumer.mdb.CSFConsumerBase.onMessage(CSFConsumerBase.java:102)
    at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:955)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)
    at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:956)
    at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)
    at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:130)
    at $Proxy9.onMessage(Unknown Source)
    at com.sun.genericra.inbound.DeliveryHelper.deliverMessage(DeliveryHelper.java:183)
    at com.sun.genericra.inbound.DeliveryHelper.deliver(DeliveryHelper.
    Regards
    Selvan.

  • How to make a connection pools to oracle 10g in sun application server 8

    env:
    windows xp.
    sun application server 8
    oracle 10g in windows xp .
    I do this
    1: copy the oracle jdbc ojdbc14.jar orai18n.jar file to sun/appserver/lib
    2. add path in admin console
    3. restart the server
    4. make a connnect pools with resource type javax.sql.DataSource
    5.add properties with password,username ,database name= jdbc:oracle:thin:@127.0.0.1:1521:orcl ,(with this url ,my jdbc program can connect oracle10).
    6 .try the ping , it show Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: &#25351;&#23450;&#20102;&#26080;&#25928;&#30340;(direct to unusale) Oracle URL: OracleDataSource.makeURL
    please replay to me ,thank very much.

    I change the thin driver to oci driver ,jdbc:oracle:oci:@orcl ,then fix the problem.

  • Creating connection pool on Sun Application Server 8.1

    Hi All,
    I am trying to create a connection pool for my MySql database on Sun Application Server(Version 8.1) using 'asadmin'. I am also able to create the connection pool successfully but when i am trying to ping the connection pool, it is giving me the java.net.UnknownHostException. The command I am using for creating the connection pool is as follows:
    create-jdbc-connection-pool user admin password adminadmin host localhost port 4849 datasourceclassname com.mysql.jdbc.jdbc2.optional.MySqlConnectionPoolDataSource restype javax.sql.XADatasource --property User=root:Password=admin:SelectMethod=Cursor:DatabaseName=testdb:serverName=\"localhost\":portNumber=3306 MyConnectionPool
    My database and the application server are running on the same machine.
    Has anyone come across such a problem? Any help would be highly appriciated.
    Thanks in Advance,
    Anurag.

    hi Anurag,
    Check the properties in the jdbc-connection-pool tag and make sure that the values are populated correctly. You can also try specifying the actual hostname or IP address of the machine instead of localhost and see if that works.
    Cheers,
    Vasanth

  • Again:Ping failed: Sun Application Server 8

    Hi,
    My Sun application server could not start its shows this
    ...Ping failed..
    Possible reasons include:
    -Port conflict
    -Incorrect server configuration ( domain.xml to be corrected manually )
    -Corrupted Deployed application preventing the server to start ( This can be seen in server.log file. In this case, domain.xml needs to be modified )
    How domain.xml can be modified?
    Please tell a way to get rid of Ping failure..............
    LAst lines of my Server.log file
    Priya
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)java.util.logging.ErrorManager: 0: FATAL ERROR: COULD NOT RENAME LOG FILE..
    java.lang.RuntimeException: File Rotate Failed
    at com.sun.enterprise.server.logging.FileandSyslogHandler$1.run(FileandSyslogHandler.java:227)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.rotate(FileandSyslogHandler.java:207)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:256)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.util.logging.ErrorManager: 0: Error In getLogService
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:E:\Sun1\Creator\SunAppServer8\domains\creator\config\domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:315)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:397)
    at com.sun.enterprise.config.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:192)
    at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:36)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:84)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:57)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:95)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:281)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:293)
    ... 37 more
    Caused by: org.xml.sax.SAXParseException: Attribute "context-root" is required and must be specified for element type "web-module".
    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:266)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 39 more
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)java.util.logging.ErrorManager: 0: FATAL ERROR: COULD NOT RENAME LOG FILE..
    java.lang.RuntimeException: File Rotate Failed
    at com.sun.enterprise.server.logging.FileandSyslogHandler$1.run(FileandSyslogHandler.java:227)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.rotate(FileandSyslogHandler.java:207)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:256)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.util.logging.ErrorManager: 0: Error In getLogService
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:E:\Sun1\Creator\SunAppServer8\domains\creator\config\domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:315)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:397)
    at com.sun.enterprise.config.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:192)
    at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:36)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:84)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:57)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:95)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:281)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:293)
    ... 37 more
    Caused by: org.xml.sax.SAXParseException: Attribute "context-root" is required and must be specified for element type "web-module".
    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:266)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 39 more
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)java.util.logging.ErrorManager: 0: FATAL ERROR: COULD NOT RENAME LOG FILE..
    java.lang.RuntimeException: File Rotate Failed
    at com.sun.enterprise.server.logging.FileandSyslogHandler$1.run(FileandSyslogHandler.java:227)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.rotate(FileandSyslogHandler.java:207)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:256)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    java.util.logging.ErrorManager: 0: Error In getLogService
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:E:\Sun1\Creator\SunAppServer8\domains\creator\config\domain.xml
    cause: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:315)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:397)
    at com.sun.enterprise.config.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:192)
    at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:36)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:84)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:57)
    at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:95)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:281)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: org.netbeans.modules.schema2beans.Schema2BeansNestedException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
    Attribute "context-root" is required and must be specified for element type "web-module".
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:718)
    at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2262)
    at com.sun.enterprise.config.ConfigContextImpl.refresh(ConfigContextImpl.java:293)
    ... 37 more
    Caused by: org.xml.sax.SAXParseException: Attribute "context-root" is required and must be specified for element type "web-module".
    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:266)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)
    at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:714)
    ... 39 more
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)java.util.logging.ErrorManager: 0: FATAL ERROR: COULD NOT RENAME LOG FILE..
    java.lang.RuntimeException: File Rotate Failed
    at com.sun.enterprise.server.logging.FileandSyslogHandler$1.run(FileandSyslogHandler.java:227)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.rotate(FileandSyslogHandler.java:207)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:256)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:469)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:198)
    at java.io.PrintStream.write(PrintStream.java:260)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
    at java.io.PrintStream.write(PrintStream.java:305)
    at java.io.PrintStream.print(PrintStream.java:448)
    at java.io.PrintStream.println(PrintStream.java:585)
    at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.println(SystemOutandErrHandler.java:144)
    at java.lang.Throwable.printStackTrace(Throwable.java:464)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at java.util.logging.ErrorManager.error(ErrorManager.java:78)
    at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
    at com.sun.enterprise.server.logging.FileandSyslogHandler.publish(FileandSyslogHandler.java:266)
    at java.util.logging.Logger.log(Logger.java:424)
    at java.util.logging.Logger.doLog(Logger.java:446)
    at java.util.logging.Logger.log(Logger.java:535)
    at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:152)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
    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.commons.launcher.ChildMain.run(ChildMain.java:269)

    Hi,
    The steps for backing up database are:
    1)shutdown pointbase server
    2)backup all database files using OS utilities like copy (e.g., files are usually in SunAppserver8/pointbase/databases/)
    3)restart pointbase server
    The bundled Pointbase database is for development only, so we do not provide support for functions that are needed in a production environment, such as backup processes.
    Pointbase does include nonstandard SQL commands that enable backing up a running database, and backing up or restoring specified tables. You can contact Pointbase directly at pointbase.com for trial downloads and developer documentation.
    Thanks,
    Creator Team.

  • Configuring Realm on Sun Application Server 9.0

    Hi,
    I was able to configure file realm on Sun Application Server 9.0 . But after getting authenticated (login is success), in the server.log it generates the following log & does not allow me to navigate in my application .
    [#|2007-07-31T18:10:51.281+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=httpWorkerThread-8080-1;|JACC Policy Provider: PolicyWrapper.implies, context(jscreator/jscreator)- permission((javax.security.jacc.WebRoleRefPermission /faces/Index.jsp appadmin)) domain that failed(ProtectionDomain  (file:/jscreator/jscreator <no signer certificates>)
    null
    (principals com.sun.enterprise.deployment.PrincipalImpl "admin",
    com.sun.enterprise.deployment.Group "appadmin")
    java.security.Permissions@148853d (
    (java.net.SocketPermission localhost:1024- listen,resolve)
    (java.net.SocketPermission * connect,resolve)
    (unresolved javax.security.jacc.WebRoleRefPermission jsp appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission Faces Servlet appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission XmlHttpProxy appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission default appadmin)
    (unresolved javax.security.jacc.WebRoleRefPermission ThemeServlet appadmin)
    (unresolved javax.security.jacc.WebUserDataPermission /faces/* null)
    (unresolved javax.security.jacc.WebUserDataPermission /:/faces/* null)
    (unresolved javax.security.jacc.WebResourcePermission /faces/* GET,POST)
    (unresolved javax.security.jacc.WebResourcePermission /:/faces/* null)
    (unresolved javax.security.jacc.WebResourcePermission /faces/* !GET,POST)
    (unresolved com.sun.enterprise.security.CORBAObjectPermission * *)
    (java.io.FilePermission C:\DOCUME~1\SRIDHA~1\LOCALS~1\Temp\\- delete)
    (java.io.FilePermission C:/sun/domains/domain1\lib\databases\- delete)
    (java.io.FilePermission <<ALL FILES>> read,write)
    (javax.security.auth.PrivateCredentialPermission javax.resource.spi.security.PasswordCredential * "*" read)
    (java.lang.RuntimePermission loadLibrary.*)
    (java.lang.RuntimePermission modifyThreadGroup)
    (java.lang.RuntimePermission accessDeclaredMembers)
    (java.lang.RuntimePermission queuePrintJob)
    (java.lang.RuntimePermission stopThread)
    (java.util.PropertyPermission java.version read)
    (java.util.PropertyPermission java.vm.name read)
    (java.util.PropertyPermission java.vm.vendor read)
    (java.util.PropertyPermission os.name read)
    (java.util.PropertyPermission java.vendor.url read)
    (java.util.PropertyPermission java.vm.specification.vendor read)
    (java.util.PropertyPermission java.specification.vendor read)
    (java.util.PropertyPermission os.version read)
    (java.util.PropertyPermission java.specification.name read)
    (java.util.PropertyPermission java.class.version read)
    (java.util.PropertyPermission file.separator read)
    (java.util.PropertyPermission java.vm.version read)
    (java.util.PropertyPermission os.arch read)
    (java.util.PropertyPermission java.vm.specification.name read)
    (java.util.PropertyPermission java.vm.specification.version read)
    (java.util.PropertyPermission java.specification.version read)
    (java.util.PropertyPermission java.vendor read)
    (java.util.PropertyPermission * read)
    (java.util.PropertyPermission path.separator read)
    (java.util.PropertyPermission line.separator read)
    (javax.management.MBeanTrustPermission register)
    (javax.management.MBeanPermission [com.sun.messaging.jms.*:*] *)
    Can anyone help me out..???
    Thanks in advance.

    http://forums.java.net/jive/forum.jspa?forumID=56&start=0

  • JBoss 4 to Sun Application Server...where to start

    Hi there...
    I'm charged with making sure my company's product, which has mostly been running on JBoss, works w/ Sun Application Server.
    I've been trying to use the Migration Tool with poor results...I know some of it is because it's for JBoss 3 and not 4....
    giving it the entire .EAR for our product tells me that it doesn't handle webservices...diving into the EAR's JAR containing our services and removing webservices.xml gives the same result of various permutations of putting in source code / xml leads , namely it runs and then freezes with
    DefaultValidationEventHandler: [FATAL_ERROR]: Premature end of file.
    Location:
    DefaultValidationEventHandler: [ERROR]: Unexpected element {}:ejb-local-ref
    Location:
    back on the console I launched the UI from
    To possibly oversimplify, I copied out some of the most relevant .xml we have,
    ejb-jar.xml
    jboss.xml
    jbosscmp-jdbc.xml
    jboss-web.xml
    web.xml
    and put them in a single directory...now the Migration tool runs, leaves most of the files unchanged, and for our ejb-jar.xml it fails, and says
    Unknown error.
    EjbJar is Null
    Admittedly our ejb-jar.xml is handcrafted and maybe suspect, but still.
    So I guess right now I'm not too optimistic about this tool.
    Some of the problem is my understanding of what all goes in an EAR in terms of DD is weak. I'm trying to smarten up, but haven't found a good description of "these are the typical DD files for Sun Application Server", with examples or precise descriptions of the contents...and the migration tool doesn't get to the point where it's making some of the files i expected based on
    http://java.sun.com/j2ee/tools/migration/doc/JBOSS3.0_S1AS7.html
    (for example sun-cmp-mappings.xml doesn't appear anywhere in the AppServer\docs directory... )
    Any pointers or advice appreciated...

    There is an article, while it is for Application Server 7, it still could be useful:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/jse7/jse7_jboss_plugin.html

  • How to configure oracle thin drivers for SUN APPLICATION SERVER

    hi all,
    I am working with EJB with oracle as back-end. I wants to know how to configure oracle thin drivers for the SUN APPLICATION SERVER. Please explain me breifly.
    Advanced thanks to all the replies.
    with regards,
    /kumaraswamy.n

    Kumaraswamy,
    Did you try searching the Internet? Here are the results of my Internet search:
    http://tinyurl.com/zo4gk
    And one of the first hits in the list was this:
    Deploying to a Sun Java System Application Server
    Good Luck,
    Avi.

  • How can I call a Stateless-EJB3  from MBeans in Sun Application Server 9.1?

    Hi,
    I have some jobs running as Timer-Service-EJB in Sun Application Server 9.1. The Timer will be startet by a Lifecycle-Modul and it works fine.
    I have also some MBeans running in the same App-Server which should start or stop the Timer-Services by invoking dedicated methods
    in the Timer-Service-EJB.
    InitialContext ctx = new InitialContext();
    MyJob job = (MyJob) ctx.lookup("ejb/MyJob");
    job.startTimer();But I get the following error;
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
    ..... Why is it impossible to get an reference of the SerialInitContextFactory? The appserv-rt.jar is in the classpath of the Appserver ( installdir/lib ).
    Following the Sun Application Server 9.1 Developer Guide, I tried to copy the dependent classes (including appserv-rt.jar ) into domain-dir/lib.
    But I got the same error.
    Any ideas?
    Thanks,
    Stefan

    Hi Santanu,
    You need to write SoapHandler in order to pass username and pwd. You will need 2 classes namely HeaderHandlerResolver & SoapHandler. This is how i do in in my JAX-WS clients. I generate stubs and then attach handler to webserviceinterface
    PFA HeaderHandlerResolver.java and SoapHandler.java you would attach soap handler something like this in your code i have never done this via ADF so not sure.
    HeaderHandlerResolver soapHandlerResolver = new HeaderHandlerResolver();
    docInfo.setHandlerResolver(soapHandlerResolver);
    In SoapHandler class you will mention username and pwd like this
    soapMessageContext.put(BindingProvider.USERNAME_PROPERTY,"username");
    soapMessageContext.put(BindingProvider.PASSWORD_PROPERTY,"pwd");
    Regards,
    Amol Gavali

  • JMS problem with Sun Application Server 8.2

    Hi!
    I've just started trying JMS and found a problem.
    I set a connection factory called "QueueConnectionFactory" in the Sun Application Server Admin Consol.
    After this I test this code:
    import javax.jms.*;
    import javax.naming.*;
    public class Sun_JNDI
    public static void main(String args[]) throws Exception
    Context jndiContext = null;
    System.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory" );
    System.setProperty("java.naming.factory.url.pkgs","=com.sun.enterprise.naming");
    System.setProperty("java.naming.provider.url","localhost:1024");
    jndiContext = new InitialContext();
    Object O = jndiContext.lookup("QueueConnectionFactory");
    System.out.println(jndiContext);
    in result I got this long Exception message:
    2006.02.12. 10:52:59 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1356"
    2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
    SEVERE: RAR6001 : Class Not found : com.sun.messaging.jms.ra.ResourceAdapter
    2006.02.12. 10:53:00 com.sun.enterprise.connectors.ActiveRAFactory createActiveResourceAdapter
    SEVERE:
    com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    2006.02.12. 10:53:00 com.sun.enterprise.naming.SerialContext lookup
    SEVERE: NAM0004: Exception during name lookup : {0}
    com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    Exception in thread "main" javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR]
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at Sun_JNDI.main(Sun_JNDI.java:40)
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException: Error in creating active RAR
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:76)
    at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:267)
    at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:189)
    at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:71)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
    ... 2 more
    Caused by: java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:50)
    ... 7 more
    So I tested this code under Netbeans5 and I don't where to find jar file contains the class: com.sun.messaging.jms.ra.ResourceAdapter
    Other time I tryied to lookup this URL: "java:comp/env/jms/QueueConnectionFactory"
    The result was: javax.naming.NameNotFoundException
    I know it is a small code example but if I'm not able to solve this problem I can't go on with JMS.
    I would be glad by any help.
    Regards:
    Sandor

    Hello
    In my code it looks like that:
    1: System.setProperty("com.sun.jndi.ldap.LdapCtxFactory", "iiop://localhost:3700");
    2: Context ctx = new InitialContext();
    3: TopicConnectionFactory factory = (TopicConnectionFactory)ctx.lookup("jms/DailyDestinationFactory");
    4: TopicConnection connection = factory.createTopicConnection();
    5: TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    6: Topic topic = (Topic)ctx.lookup("jms/DailyBean");
    7: TopicPublisher pub = session.createPublisher(topic);
    8: TextMessage msg = session.createTextMessage();
    9: msg.setText("NewMessage");
    10: pub.send(msg);
    and it work with Sun App Server 8.2.

  • Not able to Parse XML data in Sun Application Server 8.2

    Iam not able to parse the xml data in sun application server,this is working fine in tomcat and oracle server.
    Please go thru the code , thanks in advance.This is used in ajax.
    function processStateChange() {
    if (req.readyState == 4) { // Complete
    if (req.status == 200) { // OK response
         var message=req.responseXML.getElementsByTagName("value")[0];
              setMessage(message.childNodes[0].nodeValue);
    //document.getElementById("theResponse").innerHTML = req.responseText;
              else
    alert("Problem: " + req.statusText);
              return true;
         }

    Use Notepad. Drag and drop in notepad.
    Aman

  • How iReport can work in Sun Application Server??

    I am success to use the iReport to show out the pdf file in Tomcat which i am using jsp code, but, when I run them in sun application server, it throws out the following exception.
    //=====================
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error compiling report design.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:165)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    net.sf.jasperreports.engine.JRException: Error compiling report design.
         net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:231)
         net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)
         net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)
         net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:86)
         org.apache.jsp.Report_005fJSP.payroll_005frec_005fstaff_jsp._jspService(payroll_005frec_005fstaff_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    //==========================
    Would someone can tell me why??This is urgent for me!!

    Here is the log file information I get from the sun application server, when i run my iReport file.
    //==================
    DetailsTimestamp: 2006-5-28 22:50:02.768
    Log Level: INFO
    Logger: javax.enterprise.system.stream.out
    Name-Value Pairs: _ThreadID=11;
    Record Number: 2808
    Message ID: exception 3
    Complete Message
    java.lang.NullPointerException
    Diagnostic Causes
    Diagnostic Checks
    //==================
    Do you mean this server.log file message? and can you know why problem with me??

Maybe you are looking for