Programmatically access DMQ in Sun AppServer

Hi,
I'm trying to write an automatic recovery tool to recover messages from the DMQ in Sun AppServer (mq.sys.dmq).
I was able to connect to the queue and browse (QueueBrowser) the messages present. I even can reuse the messages to re-post them to the correct queue, but I can't find a way to remove messages from the queue. I want to remove them programmatically, if possible one by one.
Adding a QueueReceiver seemed to work, but it would not receive any of the message already present on the DMQ.
Can anyone help me out with this issue?
Regards,
Bart

I know this is an old post, but this could help :
There is no problem to receive messages already in the DMQ.
Just don't forget to do a jmsConnection.start(); before to dmqConsumer.receive(...);

Similar Messages

  • Error 500 when trying to access Admingui in Sun Application Server 8.2

    Hello there
    I�m evaluating Sun Communication Suite 5, and one of the components installaed is the Sun JAS 8.2. When i try to access the admin console on the port 4849, it shows me the login page, and when i insert the username and pass the server answers me with this "beautiful" error page:
    [#|2008-06-28T09:46:48.629+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=30;|StandardWrapperValve[AdminGUIServlet]: Asignar excepci��n para el servlet AdminGUIServlet
    javax.servlet.ServletException: Error al asignar una instancia de servlet
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:760)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
    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.ContainerBase.invoke(ContainerBase.java:933)
    at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:235)
    at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    ----- Root Cause -----
    java.lang.NoClassDefFoundError: com/iplanet/jato/ApplicationServletBase
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1807)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:914)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1379)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1807)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:914)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1379)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1807)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:914)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1379)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1033)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:756)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
    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.ContainerBase.invoke(ContainerBase.java:933)
    at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:235)
    at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    I have revised the java path, the jato.jar existence in the WEB-INF/lib and i�m out of ideas. Any clue?. Other applications like the Access Manager works seamlessly.
    Best Regards.

    I have observed the same error (java.lang.NoClassDefFoundError: com/iplanet/jato/ApplicationServletBase)
    during the Java Enterprise System installation on Fedora 9 and resolved it.
    when you install an Appliation Server as part of JavaES,
    it looks for some resources (jato.jar,cc.jar,dtd,gif...)
    to the path configured by webconsole. for example it is
    looking for jato.jar to /opt/sun/share/lib/jato
    [root@localhost sun]# find | grep jato.jar
    ./identity/lib/identity/console-war/WEB-INF/lib/jato.jar
    ./identity/web-src/services/WEB-INF/lib/jato.jar
    ./identity/web-src/password/WEB-INF/lib/jato.jar
    ./webserver7/lib/webapps/admingui/WEB-INF/lib/jato.jar
    ./share/lib/jato.jar
    ./webconsole/private/templates/sjsas/jato_jar.reg
    ./webconsole/private/templates/tomcat/jato_jar.reg
    ./private/share/lib/jato.jar
    ./appserver/lib/install/applications/ee/admingui/adminGUI_war/WEB-INF/lib/jato.jar (this is a link)
    ./appserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jato.jar
    cd /opt/sun/appserver/lib/install/applications/ee/admingui/adminGUI_war/WEB-INF/lib/;ls -l
    cc_de.jar -> /usr/share/webconsole/lib/cc_de.jar
    cc_es.jar -> /usr/share/webconsole/lib/cc_es.jar
    cc_fr.jar -> /usr/share/webconsole/lib/cc_fr.jar
    cc_ja.jar -> /usr/share/webconsole/lib/cc_ja.jar
    cc.jar -> /usr/share/webconsole/lib/cc.jar
    cc_ko.jar -> /usr/share/webconsole/lib/cc_ko.jar
    cc_zh_CN.jar -> /usr/share/webconsole/lib/cc_zh_CN.jar
    cc_zh_TW.jar -> /usr/share/webconsole/lib/cc_zh_TW.jar
    jato.jar -> /usr/share/lib/jato/jato.jar
    My Steps to fail:
    for uninstall purpose I had made
    rpm -qa | grep sun (but not for SUN)
    and removed the searched RPMs.
    I had not made search for "rpm -qa | grep SUN" that take a look to RPMs related with webconsole.
    Later I removed /opt/sun/, /var/opt/sun, /etc/opt/sun directories.
    At the next JavaES installation the webconsole has not been installed
    as there were a conflicts with the already installed RPMs and I have
    missed this point. So the needed /opt/sun/webconsole path is absent now.
    Despite of the mentioned above I have manually corrected the link
    to the corrupted paths and copied the needed jars from other products
    ("identity management") which comes with JavaES, and was able to login to
    https:localhost:4849 with admin admiadmin successfully
    At the end of all
    I have made a search for rpm -qa|grep sun and rpm -qa|grep SUN
    and removed the related RPMs and the mentioned above folders
    and reinstall a fresh JavaES. It works fine now.
    Regards,
    Telman

  • Deploying to Sun AppServer PE 8.1 (build b41-fcs) with an Oracle database

    Hello,
    I'm trying to deploy an application to Sun AppServer PE 8.1(an external server, not the embedded one).
    I already know that the direct deployment preview feature doesn't work with 8.1:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50572
    So I tried the export war method, and correctly configured the resource ref with the deployment tool. The deployment itself worked fine, but I can't access the database.
    The oracle drivers, from their web site don't work, I get the following exception:
    [#|2005-01-25T20:33:48.642+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=19;|WebModule[/smwebinterface]userView Initialization Failure
    javax.faces.FacesException: java.sql.SQLException: JDBC driver does not support PreparedStatement.getMetaData()
    (...)I also tried to use the JSC bundled drivers as explained in
    http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/appserver7.html
    and I got the following exception:
    [#|2005-01-25T19:44:56.236+0000|WARNING|sun-appserver-pe8.1|javax.enterprise.system.stream.err|_ThreadID=15;|JdbcRowSetXImpl (prepare): [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.|#]
    [#|2005-01-25T19:44:56.252+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/smwebinterface]userView Initialization Failure
    javax.faces.FacesException: java.sql.SQLException: [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.
         at com.sun.jsfcl.data.RowSetDataModel.synchronize(RowSetDataModel.java:1197)
         at com.sun.jsfcl.data.RowSetDataModel.connect(RowSetDataModel.java:962)
         at
    Caused by: java.sql.SQLException: [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.
         at com.sun.sql.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
         at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:407)
         at com.sun.sql.rowset.JdbcRowSetXImpl.prepare(JdbcRowSetXImpl.java:560)
         at com.sun.sql.rowset.JdbcRowSetXImpl.getMetaData(JdbcRowSetXImpl.java:1005)
         at com.sun.jsfcl.data.RowSetDataModel.synchronize(RowSetDataModel.java:1172)
         ... 92 more
    |#]It appears that these drivers are somehow locked to JSC and cannot be used in production servers, despite what the tutorial says ....
    Has anybody dealt with this issue before? Can someone help me with this?
    Thanx,
    Pedro Pires

    Oracle drivers have that limitation - that's one reason why we ship with our own drivers for accessing oracle.
    For trying to use the JSC bundled drivers in 8.1 - there's license restrictions (read $$$) involved with using JSC bundled drivers and "other" app servers. It this case, 8.1 PE (emphasis on the PE) is classified as an "other".
    Buying 8.1 (i.e., non PE), or waiting for JSC to bundle 8.1, seem to be your options if 8.1 is required.

  • How to setup ORB in sun appserver 8?

    Dear All,
    I would like to try to use a deployed EJB from a remote server, but do not know how to do.
    Suppose there are 2 machines, that are PC A and PC B. I would like the EJB to be deployed on the sub appserver 8 on the PC A, and the bean to be able to be accessed by a client on PC B.
    Does anyone know any tutorial on doing this?
    I know that there is some settings about ORB in sun appserver 8, but do not have any idea on how to set it.
    Henry Cheung

    Have you looked at the Developer's Guide? Specifically, the section on developing clients.
    http://docs.sun.com/source/819-0079/dgacc.html

  • How  I can to do get a data sources on sun appserver 8  like this?

    jsc GUI develop jsf pages ,I want to get a data sources by Context lookup jndi have binding data sources.
    I know weblogic to get this.
    such as :
    Context ctx = null;
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    p.put( Context.PROVIDER_URL, "t3://localhost:7001" );
    p.put("java.naming.security.principal", user);
    p.put("java.naming.security.credentials", pwd);
    ctx = new InitialContext(p);
    ds = (DataSource)ctx.lookup( "myds" );
    do you tell me sun appserver 8 how to implements this?thx.

    HI
    I am not clear what you are looking for but let me try to give you something. Yes it is possible to get DataSources on apserver 8 by registering JDBC Connection Pool and JDBC DataSource in the admin gui. You can use the regisred datasource in your code like this
    InitialContext ctx = new InitialContext();
    dataSource ds = (DataSource)ctx.lookup( "jdbc/myds" );
    OR
    if you are looking for the Creator do all these, here is the way.
    Create a datasource in the server navigator to point to any of your database. Drag and drop a table to any of your pages in the application (This is not neccessary if any of your application pages have a rowset/datatable already).
    Deploy the application then the datasource will be registered into application server 8. You can use the same code now to access the datasource
    InitialContext ctx = new InitialContext();
    dataSource ds = (DataSource)ctx.lookup( "jdbc/myds" );
    Please let me know if you are not looking for above .
    Thanks
    Srinivas

  • Security excepiton in Sun Appserver 8.2

    Hi,
    I have deployed my application in Sun Appserver 8.2. Deployment is sucessfull. On Application startup I am getting the following exception:
    [#|2007-10-17T16:48:52.510+0530|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
    java.lang.ClassCastException
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
         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 com.documentum.web.servlet.ResponseHeaderControlFilter.doFilter(ResponseHeaderControlFilter.java:105)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
         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 com.documentum.web.servlet.CompressionFilter.doFilter(CompressionFilter.java:113)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
         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)I tried to modify server.policy file but still I am getting the same exception.Please help me to identify the problem.

    You can try to remove '-Djava.security.policy=...' from your JVM options and see if that would work. If that works modifying server.policy should work for you. You can also leave '-Djava.security.policy=...' out altogether if you only run trusted applications on your appserver.
    If removing '-Djava.security.policy=...' doesn't work you will have to dive into com.documentum.web.servlet.ResponseHeaderControlFilter.doFilter source to find out what could trigger a java.lang.ClassCastException.

  • Configuring CDSSO on Sun appserver 7 (update 8)

    Guys,
    I have the following senario
    Sun Appserver 7_08
    Policy Agent 2.1.1
    Windows XP Profesional.
    Tried an application and the policy in a single domain scenario. The so called filter mode was configured 'ALL'. I this scenario, the SJS Acess Manager and Poicy Agent where working fine.
    Agent log
    [Sunday, January 15, 2006 5:48:36 PM GMT+01:00] [AQIC5wM2LY4SfcyVFwe/R26ZBXn84qASkWoeXrU87VOC1SI=@AAJTSQACMDE=#]
    Access to http://frege.afrikaring.net:80/test/everyone/ allowed for user uid=wdoorn,ou=People,o=demo,dc=afrikaring,dc=net
    After that I changed the domain of the appserver machine. Change the AMAgent.proverties as well to create a cross domain situation. I created new policies in the SJS Access Manager (new resource with hostname). This resulted in the fact that the authentication was failing. The agent log tells us the following.
    Access to http://java.domain3.nl:80/test/everyone/ denied for user UNKNOWN [Sunday, January 15, 2006 9:55:54 PM GMT+01:00] [null]
    Even if the user is logged in to SJS access Manager first.
    My questions is whether CDSSO is working in combination with appserver 7 (update 8) and Policy Agent 2.1.1 on Windows XP Professional OS.
    Thanks in advance for any help,
    Elger

    Have you already set the debug and had a look into the agent�s debug log.
    Have you put the "cdssoredirecturi" into the notenforced-list?

  • Deploy war file to Sun Appserver 8.2

    Hi,
    I am trying to deploy my application to a Sun Appserver 8.2 (appl. uses mysql) , when I use remote deployment from the IDE the application runs fine on this server however when I export it as a WAR file I get the error message stated below. I am using exactly the same datasources as when I use remote deployment and I am using the sun-web.xml and web.xml descriptor files from the remote deployment. Anybody got an idea what is wrong?
    [#|2006-06-07T02:52:29.237+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=31;|StandardWrappe
    rValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.sql.SQLException
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:225)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
    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: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 com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    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)
    Caused by: javax.faces.FacesException: org.apache.jasper.JasperException: java.sql.SQLException
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:331)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
    ... 41 more
    Caused by: org.apache.jasper.JasperException: java.sql.SQLException
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor456.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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
    ... 43 more

    Hi!
    First of all, you don't need to change something in web.xml. This file is exported into WAR file by Creator 2 IDE. So, don't replace web.xml after exporting of WAR.
    Also you can try to change version of DTD in sun-web.xml to one older (to sun-web-app_2_3-0.dtd, for example).
    Or could you post your sun-web.xml?
    Thanks,
    Roman.

  • Trying to create a JMS Client in LifeCycle Module. Sun Appserver 8

    I have created a Lifecycle module which initializes a set of JMX Beans. One of them is a JMX Client.
    I have created a JMS Queue Connection factory according to the guidelines and associated a JNDI name jms/TrQueueConnectionFactory.
    I have created a destination of type Queue with JNDI name jms/catalogQueue.
    When the code is trying to make get the reference to the queue connection factory, I encounter the following exception
    NamingException
    javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.resource.PoolingException]
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:328)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.i2.catalog.services.request.BRR.startJmsConnection(BRR.java:662)
         at com.i2.catalog.services.request.BRR.startService(BRR.java:514)
         at com.i2.catalog.base.ServiceMBeanSupport.start(ServiceMBeanSupport.java:387)
         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 com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at com.i2.catalog.base.ServiceManager.start(ServiceManager.java:347)
         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 com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at com.i2.catalog.boot.CatalogController.start(CatalogController.java:401)
         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 com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at com.i2.catalog.boot.Bootstrap.start(Bootstrap.java:188)
         at com.transora.im.startup.SunAppServerStartup.initialize(SunAppServerStartup.java:164)
         at com.transora.im.startup.SunAppServerStartup.handleEvent(SunAppServerStartup.java:98)
         at com.sun.appserv.server.ServerLifecycleModule.postEvent(ServerLifecycleModule.java:192)
         at com.sun.appserv.server.ServerLifecycleModule.onStartup(ServerLifecycleModule.java:234)
         at com.sun.appserv.server.LifecycleModuleService.onStartup(LifecycleModuleService.java:194)
         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)
    Caused by: com.sun.enterprise.resource.PoolingException
         at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:143)
         at com.sun.enterprise.naming.factory.AdministeredObjectFactory.getObjectInstance(AdministeredObjectFactory.java:67)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
         at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:304)
         ... 39 more
    Caused by: java.security.PrivilegedActionException: com.sun.enterprise.connectors.ConnectorRuntimeException
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:139)
         ... 42 more
    Caused by: com.sun.enterprise.connectors.ConnectorRuntimeException
         at com.sun.enterprise.connectors.util.SetMethodAction.handleException(SetMethodAction.java:110)
         at com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:96)
         ... 44 more
    Caused by: java.lang.reflect.InvocationTargetException
         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 com.sun.enterprise.connectors.util.SetMethodAction.run(SetMethodAction.java:69)
         ... 44 more
    Caused by: java.lang.IllegalArgumentException: MQ:Queue:Invalid Queue Name -
         at com.sun.messaging.Queue.setName(Queue.java:64)
         ... 49 more
    It seems that there is a security issue. Is there any entry I need to have in the sever.policy to make it happen.
    Note: I have defined jdbc datasource for oracle and the jmx services are able to access the datasource via JNDI lookup
    Your help and direction is deeply appreciated.
    Thanks in advance,
    Chiths

    As I know, the lifecycle module is just an external RMI client that has your lifecycle controled by container.
    Please, correct me if I am wrong, but there is no way to access JMS or Datasource via external RMI clients.

  • JMX and sun appserver

    I have an application running in JBoss using the JMX framework for services that are a part of the system. Is there anyway to deploy jmx MBeans in sun appserver 8.0. If not what alternative technology I can use with sun appserver to run these services if i decided to migrate to it?

    Hi
    Thanks for the info have you a code example of how this might be done in the Sun Java Application Server.
    This is my mbean do I need to add some code to the start and stop methods? How do I access the mbean server is it just
    MBeanServer server = MBeanServerFactory.findMBeanServer(? what is this in Sun Java Application Server)
    cheers
    Neil
    package com.sportex.betex.scheduling;
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import com.sportex.betex.broker.client.facades.content.IContentFacade;
    import com.sportex.betex.broker.client.locators.FacadeFactory;
    import com.sportex.betex.commons.logging.Logger;
    * FastLinksRefreshTask.
    * @author David Jeffery
    * @author Klaus Thorup
    public class FastLinksRefreshTask
    implements FastLinksRefreshTaskMBean, javax.management.MBeanRegistration {
         /** System logger. */
         private static Logger systemLogger =
              Logger.getLogger(
                   LoggingConstants.SYSTEM_CATEGORY
                   + "."
                   + FastLinksRefreshTask.class.getName());
         private boolean disabled = false;
          * Handle to the mbean server
         private MBeanServer mbeanServer;
         /* (non-Javadoc)
          * @see javax.management.MBeanRegistration#postDeregister()
         public void postDeregister() {
         /* (non-Javadoc)
          * @see javax.management.MBeanRegistration#postRegister(java.lang.Boolean)
         public void postRegister(Boolean arg0) {
         /* (non-Javadoc)
          * @see javax.management.MBeanRegistration#preDeregister()
         public void preDeregister() throws Exception {
         /* (non-Javadoc)
          * @see javax.management.MBeanRegistration#preRegister(javax.management.MBeanServer, javax.management.ObjectName)
         public ObjectName preRegister(MBeanServer arg0, ObjectName arg1) throws Exception {
              mbeanServer = arg0;
              return arg1;
         /* (non-Javadoc)
          * @see com.sportex.betex.scheduling.FastLinksRefreshTaskMBean#start()
         public void start() throws Exception {
              if (systemLogger.isDebugEnabled()) {
                   systemLogger.debug("entry: start.");
              disabled = ConfigEntryLocator.getBoolean( ConfigEntryEnum.FASTLINKS_REFRESH_TASK_DISABLED );
              if (systemLogger.isInfoEnabled()) {
                   systemLogger.info(" *** "+this.getClass().getName()+" Disabled="+disabled+" *** ");
              if (systemLogger.isDebugEnabled()) {
                   systemLogger.debug("exit: start.");
         /* (non-Javadoc)
          * @see com.sportex.betex.scheduling.FastLinksRefreshTaskMBean#stop()
         public void stop() throws Exception {
              if (systemLogger.isDebugEnabled()) {
                   systemLogger.debug("entry: stop.");
              if (systemLogger.isDebugEnabled()) {
                   systemLogger.debug("exit: stop.");
         /* (non-Javadoc)
          * @see com.sportex.betex.scheduling.FastLinksRefreshTaskMBean#run()
         public void run() {
              if (systemLogger.isInfoEnabled()) {
                   systemLogger.info("'Fast Links' scheduled task running.");
              if (!disabled) {          
                   IContentFacade contentFacade = null;
                   try {
                        contentFacade = FacadeFactory.getContentFacade();
                        contentFacade.forceFastLinksRefresh();
                   catch (Exception e) {
                        systemLogger.warn("Could not refresh the fastlinks.", e);
                   finally {
                        // Clean up
                        try {
                             if (contentFacade != null) {
                                  FacadeFactory.remove(contentFacade);
                        catch (Exception e) {
                             systemLogger.warn("Could not remove content facade.", e);          
              if (systemLogger.isInfoEnabled()) {
                   systemLogger.info("'Fast Links' scheduled task finished.");
    }

  • Sun AppServer 9.0 Update 1 on Solaris not supporting form-based auth

    Ok, I installed Appserver 9 on a Solaris box and then started up the default domain1. When I point the browser to http://localhost:4848 I am not pointed to the login page for the admingui, it just bypasses the authentication and I am allowed to perform all admin actions without logging in. I then deployed a custom web application that uses form-based authentication that works correctly on Sun Appserver 8.1. However it behaves the same way as the admingui application (I am not presented with a login page). After setting some of the log levels to FINEST and looking at the logs it appears that when these requests are coming in they are not matching any constraint (but the constraints are defined in the web.xml). Installing Appserver 9 on a win2k box does not have this issue. Has anyone else seen this problem? Is there some security setting that is not turned on by default from the solaris install????

    Ok if anyone is interested I was able to fix my problem. It looks like the issue is the version of java used with Appserver 9 on Solaris. The latest version of java i have on the machine is Java 1.5.0_06, but everytime I try to install the Appserver with this version it hangs at 39% into the installation. The next latest version of Java i have on the machine is 1.5.0_02, so that is the version I was using to install and the install works perfectly. However, after the install the form-based authentication does not work with this version of Java on Solaris.
    They way I fixed this was to modify the asenv.conf file in the Appserver_Install dirrectory to point to the Java 1.5.0_06 installation and started the domain, now the form-based authentication is working as expected.
    I guess my question now is does anyone know why I can't install the server with Java 1.5.0_06? But it looks like I need that version to actually run things correctly.

  • The sun-appserv-admin task doesn't support

    Help! - this is driving me nuts! I am trying to build the bookstore example and get this error on asant steps that involve the admin-command-common target (such as "asant deploy-war").
    I am running Studio Creator with SunAppServer8 under it. The command looks right. If I remove the passwordfile line from the admin-command-common target, I get the same error on another attribute in the command.
    The password file exists where it should and contains valid information, including the correct password.
    I have run this same bookstore example build on another workstation and it worked, but on that box, there was an instance of SunAppserver 7 (not under Studio Creator). That build was successful so I assume this is a configuration issue, but I don't know what it is. I am attaching the error and the listprops. If anyone knows what is wrong I sure would appreciate your help
    Thanks!
    Robert Hill
    C:\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war
    BUILD FAILED
    file:C:/j2eetutorial14/examples/common/targets.xml:36: The <sun-appserv-admin> t
    ask doesn't support the "passwordfile" attribute.
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore1>
    C:\j2eetutorial14\examples\web\bookstore>asant listprops
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] j2ee.tutorial.home = C:/j2eetutorial14
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] env.Path = .;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    ;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Fil
    es\Adaptec Shared\System;c:\Program Files\Microsoft SQL Server\90\Tools\Binn\;c:
    \j2sdk1.4.2_06\bin;C:\Sun\Creator\SunAppServer8\bin;C:\j2sdk1.4.2_06
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = C:\j2sdk1.4.2_06
    [echo] Admin information
    [echo] admin.password =
    [echo] admin.password.file = C:/j2eetutorial14/examples/common/admin-passwo
    rd.txt
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 14848
    [echo] https.port = 18181
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 18080
    [echo] Database information
    [echo] db.root = C:/Sun/Creator/SunAppServer8/pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 19092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:19092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    [echo] url.prop = DatabaseName
    [echo] ds.class = com.pointbase.jdbc.jdbcDataSource
    [echo] db.jvmargs = -ms16m -mx32m
    BUILD SUCCESSFUL
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore>
    clipped from targets.xml
    <target name="admin_command_common">
    <echo message="Doing admin task ${admin.command}"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    passwordfile="${admin.password.file}"
    host="${admin.host}"
    port="${admin.port}"
    asinstalldir="${j2ee.home}" />
    </target>

    Dude!
    Try this.
    change that target I was talkin about to
    <target name="admin_command_common">
         <property file="${j2ee.home}/j2eetutorial14/examples/common/admin-password.txt"/>
    <echo message="Doing admin task ${admin.command} with password"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    password="${AS_ADMIN_PASSWORD}"
    host="${admin.host}"
    port="${admin.port}"
    />
    </target>
    Reason?
    well, the blinkin 'asinstalldir' attrib is ... optional!
    The build succeeds and deploys the war.
    C:\java\Sun\Appserver\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war with password
    [sun-appserv-admin] Executing: deploy port 4848 host localhost --password ad
    min123 --user admin bookstore1.war
    [sun-appserv-admin] Command deploy executed successfully.
    BUILD SUCCESSFUL
    Total time: 7 seconds

  • Sun AppServer can't start

    Hi everybody.
    I hope this is the right forum to post this question. If not, I'm sorry. My problem is: I've just downloaded and installed J2EE SDK and when I try to run Sun AppServer, I get this error message from Java Virtual Machine Launcher saying "Can not find the main class".
    Has anybody encountered this kind of problem? I would be greatfull for any hint, since this is very frustrating.
    TIA
    P.S. I'm running windowsXP, if that might be relevant.

    I seem to have exactly the same problem. Also running XP professional.
    Just downloaded and installed J2EE 1.4
    < j2eesdk-1_4-dr-windows-eval.exe >
    and when I try to start < Start Default Domain > I get the message "Could not find the main class. Program will exit" from the Java Virtual Machine Launcher.
    The command prompt window shows the following text
    Starting Domain domain1, please wait.
    Log redirected to C:\Sun\AppServer\domains\domain1\logs\server.log.
    Timeout waiting for domain domain1 to go to starting state.
    CLI156 Could not start the domain domain1.
    Press any key to continue . . .
    and the log files shows a zero length, and appears blank/empty when you examin it.
    Any comments welcome, thanks Joe Cullity

  • Can't PING a Datasource from  Sun AppServer 1.4

    posted February 25, 2004 06:49 PM
    Hi all!
    I am trying to create a datasoure in Sun AppServer 1.4 Developer Release. To connect to MySQL
    After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool with the following settings:
    Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    Additional Properties
    serverName: 127.0.0.1
    databaseName:test
    port:3306
    user:Admin
    password:admin
    I added the mysql-connector jar file path to the app server> JVM Settings> Classpath sufix.
    The problem is that if I try to PING the connection I get the following error:
    quote:
    An error has occurred.
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Error getting connection from the EIS
    What am I doing wrong? Am I missing something?
    Please if any of you can help me I will appreciate!!!!!!
    Thanks in advance,
    JOSEL

    Hi aagore:
    First thank you for replying. Here you have a snippet you domain.xml:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="mySQLconPool" pool-resize-quantity="2" steady-pool-size="8">
    <property name="url" value="jdbc:mysql://127.0.0.1:3306/sss"/>
    <property name="user" value="Admin"/>
    <property name="port" value="3306"/>
    <property name="databaseName" value="sss"/>
    <property name="password" value="admin"/>
    <property name="serverName" value="127.0.0.1"/>
    </jdbc-connection-pool>
    </resources>
    JOSEL

  • Sun Appserver V9.0 Facing following error while starting server

    C:/Sun/AppServer/jdk\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
    -Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
    -Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/javadb/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.DocumentBuilderFactory=com.sun.org.apache.xerces. \internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
    -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
    -Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.configName=server-config
    -Ddomain.name=domain1
    -Djmx.invoke.getters=true
    -Dcom.sun.aas.promptForIdentity=true
    -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
    -Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
    -Dcom.sun.aas.domainName=domain1
    -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/AppServer/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/imq/lib/imqxm.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
    -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
    -Dcom.sun.aas.classloader.serverClassPath=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/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
    -Dcom.sun.aas.classloader.appserverChainJars.ee=
    -Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
    -Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\jdk\bin;.;C:\SYSROOT\system32;C:\SYSROOT;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\SYSROOT\system32;C:\SYSROOT;C:\SYSROOT\System32\Wbem;C:\PROGRA~1\CA\ETRUST~1;D:\j2sdk1.4.2_05\bin;D:\Program Files\python;C:\PROGRA~1\ABSOLU~1;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Sun142\AppServer\bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -Dcom.sun.aas.installRoot=C:/Sun/AppServer
    -Dcom.sun.aas.ClassPathPrefix=
    -Dcom.sun.aas.ClassPathSuffix=;C:\Sun\AppServer\addons\amserver\amclientsdk.jar;C:\Sun\AppServer\addons\amserver\amwebServiceProvider.jar;C:\Sun\AppServer\addons\amserver
    -Dcom.sun.aas.ServerClassPath=
    -cp
    ;C:/Sun/AppServer/lib/appserv-launch.jar
    com.sun.enterprise.server.PELaunch
    start|#]
    [#|2006-09-15T11:02:35.125+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server Platform Edition 9.0 (build b48) ...|#]
    [#|2006-09-15T11:02:35.390+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;|java.lang.reflect.InvocationTargetException
         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:585)
         at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
    Caused by: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces. \internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
         at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
         at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:404)
         at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2172)
         at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:363)
         at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:468)
         at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:259)
         at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:85)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:104)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:115)
         at com.sun.enterprise.server.logging.ModuleToLoggerNameMapper.getMatchedModuleLoggerName(ModuleToLoggerNameMapper.java:191)
         at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:156)
         at java.util.logging.Logger.getLogger(Logger.java:232)
         at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:154)
         at sun.rmi.runtime.Log.getLog(Log.java:121)
         at sun.rmi.server.Util.<clinit>(Util.java:51)
         at sun.rmi.server.UnicastRef.<clinit>(UnicastRef.java:33)
         at java.rmi.server.RemoteServer.<clinit>(RemoteServer.java:97)
         at com.sun.enterprise.admin.server.core.channel.AdminChannel.createServerObject(AdminChannel.java:234)
         at com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:92)
         at com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onInitialization(AdminChannelLifecycle.java:61)
         at com.sun.enterprise.server.ss.ASLazyKernel.initializeAdminService(ASLazyKernel.java:181)
         at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:80)
         at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:84)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:316)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
         ... 5 more
    |#]
    recursive call into SystemOutandErrhandler
    java.lang.RuntimeException: recursivecall
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:346)
         at java.io.PrintStream.write(PrintStream.java:414)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.write(SystemOutandErrHandler.java:280)
         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:459)
         at java.io.PrintStream.print(PrintStream.java:602)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.print(SystemOutandErrHandler.java:192)
         at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:985)
         at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:978)
         at java.lang.Thread.dispatchUncaughtException(Thread.java:1778)

    By Sun Appserver v9.0, you mean GlassFish. I did not have any problem is deploying Creator 2U1 project to Glass Fish. See my blog on this
    http://blogs.sun.com/winston/entry/deploying_to_glassfish
    - Winston

Maybe you are looking for

  • Printing blank report, not always

    Post Author: Simthembile CA Forum: Crystal Reports Good Day The Version of crpe32.dll on remote users machine is 8.0.0.371,Product version is 8.0.1.0, the crystal reports deployed are version 8.5.Any known issues that might arise because of this. We

  • 2006-01-10 Updater Extreme Fix....Worked For Me....

    I too am one of the poor shlobs that downloaded the latest and greatest ipod updater 2006-01-10 from everybodys favorite company..apple. I downloaded the 2006-01-10 updater on my wifes computer profile and her 3rd gen ipod stopped working with itunes

  • Need help in tax query!

    Hi All, Greetings!! we have a discoverer query which calculates the withholding tax details. the query used to run fine in 11i before. Now client in on R12. Query has input parameter as TAX_CODE_ID.... But now as the architechtural change... TAX_CODE

  • Facetime with 3 mifi in uk

    My iphone 4 facetime works a treat with home wifi and does not always work with my mifi. i often get a black screen after connection. but occasionally works. I rang three and they don't have a clues. At genius bar don't have a clue. any idea?

  • Sorting problems in Grid View

    Hi, I'm having a bit of a sorting problem when it comes to an artist with name variations. The example I'm going to use is DJ Tiesto. There are album I have where he is credited as DJ Tiesto, and others where he is simply Tiesto. In the end, I'd like