JAAS + Sun Application Server 9 + Enterprise app Web Module

Hi!
I've got a little problem with JAAS in enterprise application (with web module): i've configured SAS 9.0 with my custom security realm. I've 2 classes - one extends AppservPasswordLoginModule and the other one extends AppservRealm. In app-server-domain-dir/config/login.conf i've configured my login module. In SAS -> configuration -> Security -> Realm i've added new entry for my realm (and provide it with my realm class name).
In configuration of my enterprise application (sun-application.xml) i've a security realm and roles configured.
Now: everything works fine, if the authentication to my application is done by a jsp file with:
<form action="j_security_check">
<input type="text" name="j_username">
<input type="password" name="j_password">
</form>
But i need to implement authentication in a servlet, so i've done this (in servlet):
LoginContext lc = new LoginContext( NAME, new WebCallbackHandler(username, password);
lc.login();
Problem is: if i specify NAME as a name form domain-dir/config/login.config it throws an exception: LoginException: No credentials.
If i specify NAME as a name from SAS configuration -> security -> realm name, it throws an exception: LoginException: No LoginModules
Now i'm really confused... anyone has an idea?
Thanks!

Hi!
I've got a little problem with JAAS in enterprise application (with web module): i've configured SAS 9.0 with my custom security realm. I've 2 classes - one extends AppservPasswordLoginModule and the other one extends AppservRealm. In app-server-domain-dir/config/login.conf i've configured my login module. In SAS -> configuration -> Security -> Realm i've added new entry for my realm (and provide it with my realm class name).
In configuration of my enterprise application (sun-application.xml) i've a security realm and roles configured.
Now: everything works fine, if the authentication to my application is done by a jsp file with:
<form action="j_security_check">
<input type="text" name="j_username">
<input type="password" name="j_password">
</form>
But i need to implement authentication in a servlet, so i've done this (in servlet):
LoginContext lc = new LoginContext( NAME, new WebCallbackHandler(username, password);
lc.login();
Problem is: if i specify NAME as a name form domain-dir/config/login.config it throws an exception: LoginException: No credentials.
If i specify NAME as a name from SAS configuration -> security -> realm name, it throws an exception: LoginException: No LoginModules
Now i'm really confused... anyone has an idea?
Thanks!

Similar Messages

  • Deployment Error as Enterprise application in Sun Application server 7

    Hi folks,
    I am tring to deploy some jdbc application in Sun Application server 7
    While deployment of jdbc-simple.ear as Enterprise application, I get following error.
    ==============================================================
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Compilation failed: com.iplanet.ias.ejb.codegen.ProcessExecutorException: Abnormal process termination -- process returned: 11 Attempted command: $HOME/appserver7/studio4/bin/fastjavac/fastjavac.sun -jdk $HOME/appserver7/jdk -g -d $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple -classpath $HOME/appserver7/lib/appserv-rt.jar:$HOME/appserver7/jdk/lib/tools.jar:$HOME/appserver7/lib/appserv-ext.jar:$HOME/appserver7/lib/appserv-cmp.jar:$HOME/appserver7/imq/lib/imq.jar:$HOME/appserver7/imq/lib/imqadmin.jar:$HOME/appserver7/imq/lib/imqutil.jar:$HOME/appserver7/lib/appserv-admin.jar:$HOME/appserver7/lib/appserv-ideplugin.jar::.:$HOME/lib/common/servlet.jar:/usr/java/lib/tools.jar:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple:$HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple/samples/jdbc/simple/ejb/GreeterDBBean_RemoteHomeImpl.java $HOME/appserver7/domains/domain1/server1/generated/ejb/j2ee-apps/jdbc-simple/samples/jdbc/simple/ejb/GreeterDBBean_EJBObjectImpl.java Output from command:
    ==============================================================
    Any help would be appreciated.

    Hi Vchavan,
    can you see the that actual compilation problem in server.log?
    Thanks,
    -- markus.

  • Web hosting service for Sun Application Server

    Can anyone tell me if there is any webhostingf service that uses Sun Applications Server...pls pls pls....

    Yeah, I can understand the pain. I don't know about anybody else, but I'd like to work with you 1 on 1 via email to help ease the tomcat deployment issues, if that's something you'd like to give another shot at?
    Please drop me a line at, if interested:
    raveqa-testapps AT SUN DOT COM
    I found the thread below to be of help in most tomcat deployment issues, but let's see what we can do to get you up and running with the absolute minimal effort needed in configuration.
    http://forum.java.sun.com/thread.jspa?threadID=5101183
    /sqad

  • 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

  • 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.

  • 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.

  • Application Server 8.2 + Axis Web Service Client +Win Server 2003 Issue

    Hi everyone,
    I'm facing a weird problem the last couples of days and I'm getting bored of banging my head against the logs/screen, so please if you could help I'd really appreciate it.
    I'm working on a Sun Application Server 8.2 project that includes an axis web service client. I am using Netbeans 5 to do the writing plus I am on a Win XP platform.
    The developers of the web service I intend to absorb were kind enough to package the client into a jar so all I have to do is to import the client and the axis related jar files (axis, axis-ant etc.) in my project and my classpath.
    Everything is working perfect on my pc but when I deploy the project on my actual server the web service client is running forever, leaving my end users with a blank browser window that is also loading forever.
    The server OS is Win Server 2003 and is directly connected to a gateway - no proxies. Also my development pc and my server are running the same jre and have the exact server police settings; but Sun's Application Server is running on port 8080 on my pc whereas on my server it's running on port 80.
    Here's my server's log:
    [#|2008-04-14T21:50:01.795+0300|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=14;|StandardWrapperValve[obos]: Servlet.service() for servlet obos threw exception
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (0)null
    faultActor:
    faultNode:
    faultDetail:
         {}:return code: 0
         {http://xml.apache.org/axis/}HttpErrorCode:0
    (0)null
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at uk.ac.ebi.ook.web.services.OntologyQuerySoapBindingStub.getOntologyNames(OntologyQuerySoapBindingStub.java:509)
         at org.dude.ols.client.obos.processRequest(obos.java:30)
         at org.dude.ols.client.obos.doGet(obos.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    Any ideas?

    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 :)

  • Https hangs in Sun Application Server 9.0

    Hi All,
    We have recently moved our web application from Sun Application server 8.0 to Sun Application server 9.0. We have noticed that sometimes our web application hangs when switching from http to https connection. After doing netstat on the server found that lots of sockets are waiting in the CLOSE_WAIT status instead of the, I guess, the TIME_WAIT status.
    Can anyone tell me the possible reasons for this and the solution to this problem.
    As per some forums have also upgraded the jdk to 1.5.12 but to no avail. And there was no problem whatsoever when the application was deployed in SJAS 8.0
    Thanks,
    HKD

    Try adding the following JVM option in domain.xml file.
    <jvm-options>-Dcom.sun.enterprise.web.connector.useCoyoteConnector=true</jvm-options>

  • Sun application server problem

    HI all
    when i run any web service program the server couldnot be started and could not deploy my program.....
    the error appeared is :
    "server start up time out exceeded 120 seconds could not deploy ur project:
    Message was edited by:
    mahmoud_ahmed

    how can i use the tomcat server in NB IDEYou can use either the bundled tomcat server or the bundled Sun Java System Application server for a given application. (In fact, you can also register any other 'supported server' with the ide and work with that server. Go to the 'Runtime' tab in the explorer window. Right-click an add-server menuitem; you will be taken to a dialog box where you will be presented with a list of supported servers; if you have any of those installed on your machine, you can register them with the ide).
    To run a project on tomcat, open the project properties window (from the right-click menu of the project in the project window) , select 'Run' category and select the required server from the 'Server' dropdown list.
    will it also crash?If the problem is with the application, then it is very likely that it will crash on tomcat too. On the other hand, if the problem is with the server settings, then it is possible that the app may run in one server but not on another...
    if used another program as JBUILDER will it needs also the SJSYes; you will need a webserver or an application server to deploy your web applications. NetBeans IDE provides a robust environment that helps develop and debug web apps but the apps themselves are deployed on an appserver.
    what do u mean by the server stack traceOn the runtime tab, right-click on SJSA and select 'view server log' to view the server log. (For a running tomcat, you can right-click and select 'view server output'...)
    i am using SJS 8.2 on NB IDE 4.1You may want to use later versions of NB (5.0 or 5.5 beta2; http://www.netbeans.org/downloads/index.html).
    Have u tried the samples and tutorials at:
    http://www.netbeans.org/kb/50/quickstart-webservice.html
    http://www.netbeans.org/kb/articles/tutorial-webservice-consume-part1.html
    http://www.netbeans.org/kb/articles/tutorial-webservice-consume-part2.html

  • No response from Sun Application Server PE 8.2

    Hi all,
    I am using Sun Application Server PE 8.2 on windows XP service pack 2 professional edition, and jdk 1.4.1_01.
    The problem I am facing is that the server is not responding, even though it is listening at the respective ports(4848 for admin, 8080 for http..etc) as I can see 'netstat' command.
    I have checked the server logs and it shows the following output :-
    [#|2006-08-23T13:38:13.890+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    [#|2006-08-23T13:38:13.890+0530|INFO|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|
    C:/j2sdk1.4.1_01\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:/j2sdk1.4.1_01/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/derby/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.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.SAXParserFactoryImpl
    -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.DocumentBuilderFactoryImpl
    -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.TransformerFactoryImpl
    -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:\j2sdk1.4.1_01\jre\bin\client;C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\j2sdk1.4.1_01\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\oracle\ora92\bin;C:\Program Files\ActiveState Perl Dev Kit 6.0 Deployment\bin\;C:\j2sdk1.4.1_01\bin;C:\j2sdk1.4.1_01\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Rational1\common;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Sun\AppServer\bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    C:/Sun/AppServer/lib/appserv-rt.jar;C:/j2sdk1.4.1_01/lib/tools.jar;C:/Sun/AppServer/lib\activation.jar;C:/Sun/AppServer/lib\admin-cli.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Sun/AppServer/lib\appserv-cmp.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\appserv-jstl.jar;C:/Sun/AppServer/lib\appserv-upgrade.jar;C:/Sun/AppServer/lib\commons-launcher.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/AppServer/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.jar;C:/Sun/AppServer/lib\mail.jar;C:/Sun/AppServer/lib\relaxngDatatype.jar;C:/Sun/AppServer/lib\rmissl.jar;C:/Sun/AppServer/lib\saaj-api.jar;C:/Sun/AppServer/lib\saaj-impl.jar;C:/Sun/AppServer/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
    com.sun.enterprise.server.PEMain
    start
    display
    native|#]
    [#|2006-08-23T13:38:20.484+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [C:\Sun\AppServer\imq\bin].|#]
    [#|2006-08-23T13:38:20.484+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5098: AS Socket Service Initialization has been completed.|#]
    [#|2006-08-23T13:38:21.046+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0047:The Platform MBeanServer is not available. Platform MBeans will not be available for browsing while using standard JMX Console.|#]
    [#|2006-08-23T13:38:21.187+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
    [#|2006-08-23T13:38:21.359+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
    [#|2006-08-23T13:38:22.000+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server server|#]
    [#|2006-08-23T13:38:22.000+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server __asadmin|#]
    [#|2006-08-23T13:38:22.750+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3700"|#]
    [#|2006-08-23T13:38:22.750+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3820"|#]
    [#|2006-08-23T13:38:22.937+0530|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3920"|#]
    [#|2006-08-23T13:38:23.859+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
    [#|2006-08-23T13:38:26.484+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1080: Initialization of AMX MBeans failed. Detailed message:
    java.lang.IncompatibleClassChangeError
         at com.sun.appserv.management.util.jmx.JMXUtil.listenToMBeanServerDelegate(JMXUtil.java:103)
         at com.sun.enterprise.management.support.Loader.preRegister(Loader.java:477)
         at com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2264)
         at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:866)
         at com.sun.enterprise.admin.server.core.AdminService.initializeAMXMBeans(AdminService.java:868)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:277)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    --------------- nested within: ------------------
    javax.management.RuntimeErrorException: Error thrown in preRegister method
         at com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2270)
         at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:866)
         at com.sun.enterprise.admin.server.core.AdminService.initializeAMXMBeans(AdminService.java:868)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:277)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-08-23T13:38:26.531+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=10;|java.lang.IncompatibleClassChangeError
         at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
         at $Proxy1.getstate(Unknown Source)
         at com.sun.enterprise.admin.mbeans.DomainStatusHelper.getstate(DomainStatusHelper.java:63)
         at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerDasJ2EEServer(J2EEManagementObjectManager.java:1689)
         at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerDasJ2EEServers(J2EEManagementObjectManager.java:1645)
         at com.sun.enterprise.admin.server.core.AdminService.start(AdminService.java:287)
         at com.sun.enterprise.admin.server.core.AdminServiceLifeCycle.onStartup(AdminServiceLifeCycle.java:99)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    Please someone show the way of solving this, as it is driving me nuts..!!!
    Kind Regards,
    Rudy

    "Spaces in your PATH have been detected"
    There are spaces in the the library.path - C:\Program Files
    Wrap the entier path with double quotes "C:\Program Files"

  • 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.

  • Ping Failed - Sun Application Server 8

    My Sun Application server can not start - It has started O.K. for a couple months. I seem to have a domain.xml issue. The log shows this error:
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    recursive call into SystemOutandErrhandler
    java.lang.RuntimeException: recursivecall
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:189)
         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.util.logging.ErrorManager.error(ErrorManager.java:76)
         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: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.util.logging.ErrorManager.error(ErrorManager.java:76)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
         at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:468)
         at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:119)
         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 java.util.logging.ErrorManager: 0: Error In getLogService
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    java.util.logging.ErrorManager: 0: Error In getLogService java.util.logging.ErrorManager: 0: Error In getLogService
    com.sun.enterprise.config.ConfigException: Error refreshing ConfigContext:C:\Sun\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.util.logging.ErrorManager.error(ErrorManager.java:76)
         at com.sun.enterprise.server.logging.ServerLogManager.getLogService(ServerLogManager.java:284)
         at com.sun.enterprise.server.logging.ServerLogManager.reInitializeServerLoggers(ServerLogManager.java:468)
         at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:119)
         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)
         ... 32 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)
         ... 34 more

    Hi,
    It looks like context-root is missing in domain.xml
    please check ..\Sun\Creator\SunAppServer8\domains\creator\config\domain.xml
    and add the context -root
    like below
    <web-module context-root="/your application" enabled="true" location="<userdir>/MyDocuments/Creator/Projects/WebApplication32/build" name="_webapplication32" object-type="user"/>
    regards
    CreatorTeam

  • 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

  • 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.

  • 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

Maybe you are looking for