Glassfish cluster

Hello
First of all, I'm not quite sure if this is the right place to put this question, but here it goes:
I'm using Glassfish 3.1.1
I have a cluster with 2 nodes, in 2 different machines, which are accessible by ping. Each node has 2 instances.
Making get-health of cluster
I get that all 4 instances are started.
asadmin> get-health sificluster
sificap01 started since Tue Nov 25 17:47:17 WET 2014
sificap02 started since Wed Nov 05 22:43:39 WET 2014
sificap03 started since Wed Nov 05 22:32:41 WET 2014
sificap04 started since Wed Nov 05 22:32:41 WET 2014
Command get-health executed successfully.
But the cluster is not running.
asadmin> list-clusters
sificluster not running
asadmin> start-cluster --verbose sificluster
start-instance sificap03
start-instance sificap02
start-instance sificap04
start-instance sificap01
The command start-instance executed successfully for: sificap03 sificap02 sificap04 sificap01
Command start-cluster executed successfully.
asadmin> list-clusters
sificluster not running
Command list-clusters executed successfully.
asadmin> list-instances
sificap02   not running [pending config changes are: disable SiFiCAP-ear; undepl                     oy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/appli                     cations/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; ]                    
sificap03   not running [pending config changes are: disable SiFiCAP-ear; undepl                     oy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/appli                     cations/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; ]                    
sificap01   not running [pending config changes are: rotate-log; ]                                                                                                                                                                                                                                            
sificap04   not running [pending config changes are: disable SiFiCAP-ear; undepl                     oy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/appli                     cations/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; ]                    
Command list-instances executed successfully.
asadmin> rotate-log --target sificluster
remote failure: An error occurred during replication
Failure: Command rotate-log failed on server instance sificap02: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Failure: Command rotate-log failed on server instance sificap03: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Failure: Command rotate-log failed on server instance sificap01: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Failure: Command rotate-log failed on server instance sificap04: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Command rotate-log failed.
I tried to manually start one of the instances (in the local node)
asadmin> restart-instance sificap02
The instance was not running.  A normal start was successful.
Message from start-instance: Instance sificap02 is already running.
Command restart-instance executed successfully.
asadmin> list-instances
sificap02   not running [pending config changes are: disable SiFiCAP-ear; undeploy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/applications/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; rotate-log; disable SiFiCAP-ear; ]
sificap03   not running [pending config changes are: disable SiFiCAP-ear; undeploy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/applications/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; rotate-log; disable SiFiCAP-ear; ]
sificap01   not running [pending config changes are: rotate-log; rotate-log; disable SiFiCAP-ear; ]                                                                                                      
sificap04   not running [pending config changes are: disable SiFiCAP-ear; undeploy SiFiCAP-ear; _deploy /home/sificap/glassfish3/glassfish/domains/sificap/applications/__internal/SiFiCAP-ear/SiFiCAP-ear5608852831385433175.ear; rotate-log; rotate-log; disable SiFiCAP-ear; disable SiFiCAP-ear; ]
Command list-instances executed successfully.
asadmin> start-instance --sync normal sificap02
Instance sificap02 is already running.
Command start-instance executed successfully.
asadmin> stop-instance sificap02
remote failure: Error trying to stop the instance named sificap02 : javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Command stop-instance failed.
ance executed successfully.
I realized that, in a lot of commands I get the "javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake"
Now, some weeks ago, it was applied another certificate (the previous one expired). Is it necessary to reconfigure something in the glassfish server, disable security and enable it again?...
I'm a bit lost, I must confess, and even this post is not very clear...

You just need to apply the same tuning to both of your GF instances and if you share the same DS instance, you might want to increase the connections it can receive to cater for 2 GF instances rather than the original one. Also, you might want to tune the JMS settings, in particular the IMQ timeouts if you are doing session failover and you might want to adjust the http(s) listener queue size and timeouts to cater for probes from your load balancer depending on how agressively it is checking. Most importantly, you should ensure that you have applied the recommended OS networking related tuning settings as they become much more important in such an environment.

Similar Messages

  • Using UMS on a Glassfish cluster - how to support session replication ?

    Hello,
    I have deployed the imqums.war in a Glassfish cluster but can not use the session replication.
    The UMS uses sid as client session identifier. If the client session is is created on node 1, when the call hits the node 2 it gets:
    com.sun.messaging.ums.service.UMSServiceException: javax.jms.JMSException: sid is not authenticated. Use login to get a new sid, expired/invalid sid=4-LTE2NTA5ODMzMTU=
    at com.sun.messaging.ums.service.ClientPool.getClient(ClientPool.java:157)
    at com.sun.messaging.ums.service.SendServiceImpl.commit(SendServiceImpl.java:244)
    at com.sun.messaging.ums.service.UMSServiceImpl.commit(UMSServiceImpl.java:234)
    at com.sun.messaging.ums.core.UMSServlet.doSimpleMessaging(UMSServlet.java:786)
    at com.sun.messaging.ums.core.UMSServlet.doPost(UMSServlet.java:633)
    Can you provide advise how to obtain session replication for UMS calls ?
    Thank you,
    Cristina

    There is an example here,
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/CacheCoordination
    It was run on WebLogic but should be runnable on Glassfish without too much effort. (if you port it, please submit your changes to the wiki or bugzilla).

  • JMS stand-alone client consuming a queue in GlassFish cluster

    I want to connect to a JMS queue running in clustered glassfish enterprise 2.1 and consume a message. I have a simple client app. that works with my one-machine cluster (pointing it either to first or second node, ports 3330 or 3331), but doesn't work with a company cluster (two machines, two nodes).
            Hashtable properties = new Hashtable();
            properties.put(Context.PROVIDER_URL, "iiop://" + hostname + ":" + port);
            properties.put("org.omg.CORBA.ORBInitialHost", hostname);
            properties.put("org.omg.CORBA.ORBInitialPort", "" + port);
            properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.appserv.naming.S1ASCtxFactory");
            try {
                ctx = new InitialContext(properties);
            } catch (NamingException ex) {
                ex.printStackTrace();
            }The program fails on line ctx = new InitialContext(properties);
    The strange thing is, whatever I use as hostname or port, it always ends like this:
    27.5.2009 18:03:17 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
    WARNING: NAM1005 : No Endpoints selected. Please specify using system property com.sun.appserv.iiop.endpoints.
    27.5.2009 18:03:17 com.sun.appserv.naming.RoundRobinPolicy getEndpointForProviderURL
    WARNING: NAM1001: No Endpoints selected in com.sun.appserv.iiop.endpoints property. Using JNDI Provider URL iiop://10.0.0.30:33700 instead
    27.5.2009 18:03:18 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
    INFO: endpoint.weight after checking isWeight = 10
    27.5.2009 18:03:18 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
    INFO: sumOfAllWeights = 10
    27.5.2009 18:03:19 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
            at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
            at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
            at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
            at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
            at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
            at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
            at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
            at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
            at com.sun.corba.ee.impl.folb.ClientGroupManager.getInitialClusterInstanceInfo(ClientGroupManager.java:596)
            at com.sun.corba.ee.impl.folb.ClientGroupManager$GIS.getClusterInstanceInfo(ClientGroupManager.java:620)
            at com.sun.corba.ee.impl.folb.ClientGroupManager.getClusterInstanceInfo(ClientGroupManager.java:666)
            at com.sun.appserv.naming.GroupInfoServiceObserverImpl.membershipChange(GroupInfoServiceObserverImpl.java:73)
            at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:290)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:197)
            at client.JmsQueueConsumer.<init>(JmsQueueConsumer.java:41)
            at client.JmsQueueConsumer.main(JmsQueueConsumer.java:57)
    Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
            at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
            ... 18 more
    Caused by: java.net.ConnectException: Connection refused: connect
            at sun.nio.ch.Net.connect(Native Method)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
            at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
            ... 19 moreI've tried to turn off all firewalls between me and the cluster but it still doesn't work. ANy ideas what can be wrong? I guess clusters are always different...
    (I will try to do more investigation, especially packet capturing, later)

    Double check the ORB configuration in the servers...
    +"The default naming service port in the app server is 3700. If the naming service is running on a different port, you'll need to set it via the -Dorg.omg.CORBA.ORBInitialPort property when starting the client JVM. You can double-check the actual naming service port for a given server instance by looking in the server instace's domain.xml for "orb-listener-1". Alternatively, check the Applications..Configuration..ORB..IIOP Listeners section of the admin GUI for orb-listener-1."+
    [https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB|https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB] (step-5)
    Edited by: Conchas on Aug 3, 2009 12:12 PM

  • EJB - Load Balancing in GlassFish cluster

    Hi,
    I have been using GlassFish v2 for a year now developing EAR applications very happily. Now, I am starting to think of clustering due to the large amount of webpages of our new website (approx 600.000).
    I have been reading blogs, documents, and watching a really cool YouToube video on how to set up a glass fish cluster in less than ten minutes but Not once i have seen that EJB load does also get balanced.
    My question is, once the cluster is up and running. Does the EJB load also get distributed amongst each glassfish instance?
    Pablo.

    Hi,
    I have been using GlassFish v2 for a year now developing EAR applications very happily. Now, I am starting to think of clustering due to the large amount of webpages of our new website (approx 600.000).
    I have been reading blogs, documents, and watching a really cool YouToube video on how to set up a glass fish cluster in less than ten minutes but Not once i have seen that EJB load does also get balanced.
    My question is, once the cluster is up and running. Does the EJB load also get distributed amongst each glassfish instance?
    Pablo.

  • Installing JMS broker for OpenMQ 4.3 without cluster

    Hi
    I am using glassfish 2 with OpenMQ 4.3. Currently, I am creating a glassfish cluster to deploy application. It also seems to create a cluster for JMS broker. How can I continue to create the glassfish-cluster but keep the JMS broker as independent instances ?
    Thanks
    Vineet

    Nigel,
    Thanks for the response.
    I was also seeing behavior where broker would not return messages to the consumer. There was an issue again MQ 4.3 (bug 6961586) for this problem. I am seeing a little twist to that problem.
    I had around 100,000 messages in the queue, but the consumer would return with 0 messages. But if I send new messages, those new messages are returned to the consumer, and once the queue length reaches 100.000 again, consumer again starts returning 0 messages.
    The new messages coming at a slower rate. So, I wonder if the slow drain rate I am seeing is it draining just the new messages and not the old ones..
    just a thought
    Vineet

  • "Cannot perform operation, connection is closed" with Open MQ 4.4

    I am using Sun MQ 4.4 with Glassfish 2.1.1 on Red Hat 5.7.
    I am able to install glassfish cluster and all the instances are running fine. But, when I try to send a message to a topic, I get following exception
    javax.jms.IllegalStateException: [C4062]: Cannot perform operation, connection is closed.
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.checkConnectionState(ConnectionImpl.java:2468)
    at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.createSession(XAConnectionImpl.java:105)
    at com.sun.messaging.jms.ra.ConnectionAdapter.createSession(ConnectionAdapter.java:383)
    Following is part of the stateless EJB where I am creating the session.
    @PostConstruct()
    private void init() {
    if (connectionFactory == null) {
    if (log.isTraceEnabled()) log.trace("Connection factory not set. Retrieving from server context.");
    InitialContext ic = new InitialContext();
    connectionFactory = (ConnectionFactory) ic.lookup("jms/testConnectionFactory");
    if (log.isTraceEnabled()) log.trace("Creating JMS connection.");
    connection = connectionFactory.createConnection();
    @WebMethod()
    public void send(){
    Session session = null;
    session = connection.createSession(true, Session.SESSION_TRANSACTED);
    I am trying to install these on a couple of new machines. Same application works on other machines so I am guessing this is a configuartion issue somewhere on these servers.
    My question is what would be a good way to find the cause of this failure.
    I have turned on log level to finest for ejb-container, jms, RA through glassfish Admin console, but no useful information.
    Also, I don't have the name of the servers in DNS yet. I am using IP address for specifying instances.
    Any suggestions ?
    Thanks
    Vineet

    Hi Tom,
    I used the demo/helloworld/helloworldmessage.java sample.
    By the way, I should add that the broker log contains lines like:
    [B1066] Closing [email protected]:2461 because "[B0061]: Client exited without closing connections"
    Is this what one would expect for a connection.close() ?
    It almost seems that this is happening only when the connection is nulled explicitly or the connection object is destroyed.
    One last thing:
    I was led down the garden path. The reason for the server being thread starved was that there were indeed connections not being closed/nulled.
    Thanks in advance,
    Patrice
    Edited by: paubry04 on Sep 13, 2007 8:21 AM

  • Glassfish 2.1 Admin Console Javascript Error when selecting cluster targets

    I recently updated to Firefox 4 and when using the GlassFish 2.1 Admin Console and you have to manage the cluster targets for specific resources there is a javascript error which prevents you from selecting target cluster options. Basically you select what you want, but then it removes it immediately after.
    Using FireBug I can see the error below:
    uncaught exception: [Exception... "Could not convert JavaScript argument - 0 was passed, expected object. Did you mean null? arg 1 [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570035 (NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL)" location: "JS frame :: http://localhost:4848/theme/META-INF/dojo/dojo.js :: <TOP_LEVEL> :: line 645" data: no]
    Line 0
    This functionality works fine in other browsers.
    Thanks.

    Hi there,
    Can you check the JDK version and see the compatible with your weblogic installation ?
    You can refer the certification matrix from Oracle to check the compatible version of JDK. Here you go - Oracle Fusion Middleware 12c (12.1.3.0.0) Certification Matrix.
    Most probably, this issue will occur when JDK is not compatible with weblogic installation..
    Lakshman

  • "Singleton" EJB Timer in GlassFish 2.1 cluster?

    Hi,
    suppose on a GlassFish 2.1 cluster (two instances on one machine) you deploy an ejb app which contains an ejb timer. The ejb timer executes every 60 seconds.
    Following questions come to my mind:
    1. After deployment do you have (the same) ejb timer on each instance (both using the same connection pool) ?
    2. If so, how it is guaranteed that every 60 seconds only one timer is executed?
    3. Is it possible to have a "singleton" timer for all instances in a cluster?
    Thx for your help.

    EJB 3.0 only supports programmatic timer creation. The app can contain an enterprise bean component that supports timer callbacks (a "timed object" in spec parlance) , but the actual timers can only be created by calling TimerService.createTimer(). Given that :
    1. There is no automatic timer creation as a result of deployment. Some developers approximate automatic timer creation
    by calling a stateless session bean method from a web application initialization callback, but from the ejb container's perspective
    that's just a normal run-time timer creation. In all cases you'll have as many timers as the number of times TimerService.createTimer() was called.
    2. In a cluster, for each unique timer, each timer timeout callback will happen in only one server instance in the cluster. We do that
    by using the underlying timer database and an ownership semantic that assigns each timer to a particular server instance. During
    failover, ownership of timers owned by the failed server instance is reassigned to a healthy server instance. Note that this only applies
    to timeout callbacks. All timers created by a bean are always visible to any instances of that bean in any server instance in the cluster.
    In other words, getTimers() always returns the total number of timers associated with the bean component, even if the callbacks
    happen in a different server instance in the cluster.
    3. Each call to TimerService.createTimer() is unique across the cluster. However, the burden of ensuring that createTimer() is only
    called once is on the application. EJB 3.1 will address this problem by adding "automatic timers". These are timers that are
    specified via metadata (annotation or ejb-jar.xml) and are created automatically as a result of deployment.

  • Cluster 4.0 and Glassfish MQ

    Sadly I read the release notes, esp the:
    The following HA data services are not initially available with the 4.0 release but might become available at a later time:
    •     Oracle GlassFish Message Queue
    After I read "Oracle Solaris Cluster Data Service for Oracle GlassFish Server Message Queue Guide" at http://docs.oracle.com/cd/E23623_01/html/E26827/. yeah bad form on my behalf.
    anyway, any ideas on this will be available sometime in the future?
    TIA,
    n

    Steve,
    I am using JSF2.0 and getting javax.el.ExpressionFactory NoClassDefFound issues.
    OEPE Helios
    Weblogic 10.3.3
    I have an EAR containing one WAR.
    WEB-INF/lib
    el-api-2.2jar
    el-imp-2.2.jar
    jsf-api.jar (2.1.1)
    jsf.impl.jar (2.1.1)
    jstl.jar (1.1.0-D13)
    web.xml has
         <context-param>
              <param-name>com.sun.faces.expressionFactory</param-name>
              <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
         </context-param>
    EAR has
    weblogic-application.xml with
    <wls:prefer-application-packages>
    <wls:package-name>org.eclipse.persistence.*</wls:package-name>
    <wls:package-name>javax.faces.*</wls:package-name>
    <wls:package-name>com.sun.faces.*</wls:package-name>
         <wls:package-name>com.sun.el.*</wls:package-name>
         <wls:package-name>javax.el.*</wls:package-name>
    </wls:prefer-application-packages>
    I see by your post that JSF2.0 support can be solved by either deploying a shared-library or using the weblogic.Deployer utility. Unfortunately, we don't have access to change the Weblogic instance in any way. I was hoping that using the prefer-application-packages would be sufficient to use alternative classes to Weblogic's but I have not been able to get it to work for the javax.el classes. I have tried not including javax.el and the app deploys but then accessing a page produces a javax.el.ELResolver no method found for invoke. Invoke being a newer method defined in el-api-2.2.jar. If I was able to convince them to add some shared libs, what are all the jars that would be required to make this work?
    Any suggestions would be greatly appreciated.
    Thanks
    John

  • How to lookup the remote interface in JNDI of the cluster (glassfish)

    I have write a simple sessionbean:
    package authority;
    import javax.ejb.Stateless;
    * Session Bean implementation class LoginSessionBean
    @Stateless
    public class LoginSessionBean implements LoginSessionBeanRemote, LoginSessionBeanLocal {
         * Default constructor.
        public LoginSessionBean() {
            // TODO Auto-generated constructor stub
        @Override
        public boolean login(String name, String password)
            boolean result = false;
            System.out.println("User: " + name + " is login with password: " + password);
            return result;
        @Override
        public LoginSessionBeanRemote create()
            // TODO Auto-generated method stub
            return this;
    }And I write a simple client to test it.
    package test;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import authority.LoginSessionBean;
    import authority.LoginSessionBeanRemote;
    public class SessionBeanTestClient
        public static void main(String[] args)
            try
                InitialContext context = new InitialContext();
                Object obj = context.lookup(LoginSessionBean.class.getName());
                LoginSessionBeanRemote loginService = (LoginSessionBeanRemote)PortableRemoteObject.narrow(obj, LoginSessionBeanRemote.class);
                loginService.login("Jason", "password");
            catch (NamingException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
    }And it is OK, but after I deploy the sessionbean into a cluster with two instances on local host, it can not find the remote interface:
    javax.naming.NameNotFoundException: authority.LoginSessionBean not found
         at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)Is it different for cluster (for IIOP port?), I want to test the HA solution, how could I start it?

    Please look at http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html. There is a How-To on local interface.
    thanks
    Debu

  • Glassfish Sun Cluster domain instance unable to start

    Hi guys' plz assist.
    I am trying to bring up all the node agent on the cluster but i 1st need to start the production_domain using this command:./asadmin start-domain prod_domain but it fails to start. I am running a JES Portal and currently is offline. pls help.
    Thanks.
    Twala.
    [#|2009-10-27T06:42:37.491+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER:   vmcid: SUN  minor code: 202  completed: No;_RequestID=cc16b98c-b7e6-421d-8e79-f46e0b8368ce;|CORE5081: Exception while creating ORB: [java.lang.RuntimeException: org.omg.CORBA.OBJ_ADAPTER:   vmcid: SUN  minor code: 202  completed: No]|#]
    [#|2009-10-27T06:42:37.492+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;java.lang.RuntimeException: Unable to create ORB;_RequestID=cc16b98c-b7e6-421d-8e79-f46e0b8368ce;|CORE5082: Exception running j2ee services: [java.lang.RuntimeException: Unable to create ORB]|#]
    [#|2009-10-27T06:42:37.496+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=cc16b98c-b7e6-421d-8e79-f46e0b8368ce;|com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
    com.sun.enterprise.server.ondemand.ServiceGroupException: com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:198)
         at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
         at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
         at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
         at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64)
         at com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154)
         at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
         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:415)
    Caused by: com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:160)
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143)
         at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
         ... 13 more
    Caused by: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:501)
         at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156)
         ... 17 more
    Caused by: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:452)
         ... 18 more
    |#]
    [#|2009-10-27T06:42:37.500+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=cc16b98c-b7e6-421d-8e79-f46e0b8368ce;|CORE5071: An error occured during initialization
    java.lang.RuntimeException: com.sun.enterprise.server.ondemand.ServiceGroupException: com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:88)
         at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
         at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64)
         at com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154)
         at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
         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:415)
    Caused by: com.sun.enterprise.server.ondemand.ServiceGroupException: com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:198)
         at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
         at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
         ... 11 more
    Caused by: com.sun.enterprise.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:160)
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143)
         at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
         ... 13 more
    Caused by: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:501)
         at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156)
         ... 17 more
    Caused by: java.lang.RuntimeException: Unable to create ORB
         at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:452)
         ... 18 more
    |#]
    [#|2009-10-27T06:42:37.504+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=cc16b98c-b7e6-421d-8e79-f46e0b8368ce;|Server Startup failed. Exiting...|#]

    only the following process gets started when start-msg
    mailsrv 1643 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/enpd
    mailsrv 1643 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/enpd
    mailsrv 1649 1 0 11:43:34 ? 0:01 /opt/SUNWmsgsr/lib/tcp_smtp_server
    mailsrv 1650 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/tcp_smtp_server
    mailsrv 1644 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/imsched
    root 1642 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/watcher INADDR_ANY 49994 /opt/SUNWmsgsr/config/job_controlle
    mailsrv 28934 1 0 11:26:53 ? 0:05 /opt/SUNWmsgsr/lib/tcp_smtp_server
    mailsrv 1646 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/dispatcher
    mailsrv 1652 1 0 11:43:34 ? 0:00 /opt/SUNWmsgsr/lib/job_controller
    When we start stored daemon separately it gets started...
    # /opt/SUNWmsgsr/sbin/start-msg stored
    Connecting to watcher ...
    Starting store server .... 2308
    checking store server status ... ready
    imap, pop , http services are disabled...

  • Stomp bridge not working in GlassFish V3

    Hello,
    this is a test report for the OpenMQ Stomp Bridge on Windows Vista:
    * downloaded http://download.java.net/glassfish/v3/release/glassfish-v3-windows.exe
    * installed at C:\glassfishv3-test2
    * started GlassFish using startserv.bat
    * deployed imqums.war
    * verified imqums operation using example ping url (http://localhost:8080/imqums/simple?service=ping&user=admin&password=admin)
    * modified imqbroker config.properties: added
    imq.bridge.admin.user=admin
    imq.bridge.admin.password=admin
    imq.bridge.activelist=stomp
    imq.bridge.enabled=true
    * restarted the broker (stopserv.bat / startserv.bat)
    * the imqums ping command now does not get a response
    * the broker can not be shut down using stopserv.bat
    * Stomp port 7672 is open, telnet connects and accept input, but Stomp client applications can not connect (the CONNECT frame can be sent but the server does not respond)
    Here is the message broker log file:
    Open Message Queue 4.4
    Sun Microsystems, Inc.
    Version: 4.4 Update 1 (Build 7-b)
    Compile: Wed Nov 18 23:21:05 PST 2009
    Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved. Use is
    subject to license terms.
    ================================================================================
    Java Runtime: 1.6.0_07 Sun Microsystems Inc. C:\Program Files\Java\jdk1.6.0_07\jre
    [14/Dez/2009:20:16:02 CET] IMQ_HOME=C:\glassfishv3-test2\mq
    [14/Dez/2009:20:16:02 CET] IMQ_VARHOME=C:\glassfishv3-test2\glassfish\domains\domain1\imq
    [14/Dez/2009:20:16:02 CET] Windows Vista 6.0 x86 mj-PC (2 cpu) mj
    [14/Dez/2009:20:16:02 CET] Java Heap Size: max=506816k, current=105356k
    [14/Dez/2009:20:16:02 CET] Arguments: -port 7676 -name imqbroker -nobind -imqhome C:\glassfishv3-test2\mq -varhome C:\glassfishv3-test2\glassfish\domains\domain1\imq -libhome C:\glassfishv3-test2\mq\lib -useRmiRegistry -rmiRegistryPort 8686 -save -silent
    [14/Dez/2009:20:16:02 CET] Embedded Broker
    [14/Dez/2009:20:16:02 CET] [B1060]: Loading persistent data...
    [14/Dez/2009:20:16:02 CET] Using built-in file-based persistent store: C:\glassfishv3-test2\glassfish\domains\domain1\imq\instances\imqbroker\
    [14/Dez/2009:20:16:02 CET] [B1318]: Initialize bridge service manager
    [14/Dez/2009:20:16:02 CET] BridgeManager: Loading bridge stomp
    [14/Dez/2009:20:16:02 CET] BridgeManager: Loaded bridge stomp
    [14/Dez/2009:20:16:02 CET] [B1041]: Cluster initialization successful.
    [14/Dez/2009:20:16:02 CET] [B1004]: Starting the cluster_discovery service using tcp [ 0, 100 ] with min threads 1 and max threads of 1
    [14/Dez/2009:20:16:02 CET] [B1136]: Processing stored transactions
    [14/Dez/2009:20:16:02 CET] [B1284]: 0 cluster transactions remain in PREPARED state, 0 in COMMITTED state waiting for remote broker completion
    [14/Dez/2009:20:16:02 CET] Of 0 remote transactions, 0 in PREPARED state, 0 in COMMITTED state
    [14/Dez/2009:20:16:02 CET] [B1013]: Auto Creation of Queues is enabled
    [14/Dez/2009:20:16:02 CET] [B1159]: Destination PING_1_1260818007981 [Queue] has been destroyed
    [14/Dez/2009:20:16:02 CET] [B1151]: Loading destination PING_1_1260818007981 [Queue] with 0 messages
    [14/Dez/2009:20:16:02 CET] [B1152]: Loading of destination PING_1_1260818007981 [Queue] complete
    [14/Dez/2009:20:16:02 CET] imq.persist.file.minimizeWrites=false
    [14/Dez/2009:20:16:02 CET] [B1151]: Loading destination mq.sys.dmq [Queue] with 0 messages
    [14/Dez/2009:20:16:02 CET] [B1152]: Loading of destination mq.sys.dmq [Queue] complete
    [14/Dez/2009:20:16:02 CET] [B1239]: Using platform MBean server
    [14/Dez/2009:20:16:02 CET] JESMF classes not present - JESMF support will not be enabled.
    [14/Dez/2009:20:16:02 CET] JMX Connector Server jmxrmi started successfully with url service:jmx:rmi://mj-PC/jndi/rmi://mj-PC:8686/mj-PC/7676/jmxrmi
    [14/Dez/2009:20:16:02 CET] [B1004]: Starting the admin service using tcp(host = *, port=0, mode=dedicated) with min threads 4 and max threads of 10
    [14/Dez/2009:20:16:02 CET] [B1227]: Using file user repository for admin service connection authentication
    [14/Dez/2009:20:16:02 CET] [B1004]: Starting the jms service using tcp(host = *, port=0, mode=dedicated) with min threads 10 and max threads of 1000
    [14/Dez/2009:20:16:02 CET] [B1227]: Using file user repository for jms service connection authentication
    [14/Dez/2009:20:16:02 CET] [B1004]: Starting the mqdirect2 service using in-process connections with min threads 0 and max threads of 0
    [14/Dez/2009:20:16:02 CET] [B1227]: Using file user repository for mqdirect2 service connection authentication
    [14/Dez/2009:20:16:02 CET] [B1004]: Starting the jmsdirect service using with min threads 0 and max threads of 0
    [14/Dez/2009:20:16:02 CET] [B1227]: Using file user repository for jmsdirect service connection authentication
    [14/Dez/2009:20:16:03 CET] [B1004]: Starting the cluster service using tcp [ 0.0.0.0/0.0.0.0:50761 ] with min threads 1 and max threads of 1
    [14/Dez/2009:20:16:03 CET] [B1228]: Cluster ping interval is 60 seconds
    [14/Dez/2009:20:16:03 CET] [B1039]: Broker "imqbroker@mj-PC:7676" ready.
    [14/Dez/2009:20:16:03 CET] [B1319]: Start bridge service manager
    [14/Dez/2009:20:16:03 CET] BridgeManager: Starting bridge stomp
    [14/Dez/2009:20:16:03 CET] BridgeManager: Starting bridge stomp with properties
         imq.bridge.stomp.class=com.sun.messaging.bridge.service.stomp.StompBridge
         imq.bridge.stomp.type=stomp
         imq.bridge.stomp.varhome=C:\glassfishv3-test2\glassfish\domains\domain1\imq\instances\imqbroker\bridges\stomp
         imq.bridge.stomp.libhome=C:\glassfishv3-test2\mq\lib
         BRIDGE_PROP_PREFIX=imq.bridge.stomp
    [14/Dez/2009:20:16:03 CET] BridgeManager: Started bridge stomp
    One thing I noticed is that the imqbridgemger.jar is not in C:\glassfishv3-test2\glassfish\lib\install\applications\jmsra - is it necessary to be present here?
    I will check Windows XP and add the results here later.
    Kind regards,
    Michael Justin
    Edited by: mjustin_de on Dec 14, 2009 11:38 AM
    * Stomp port 7672 is open, telnet connects and accept input, but Stomp client applications can not connect
    Edited by: mjustin_de on Dec 14, 2009 2:23 PM
    Tested on XP SP with same result. If I remove Stomp support, imqums ping works again

    We've logged this as Glassfish issue 11321.
    The bug is related to the way in which Glassfish starts the broker lazily when you first try to connect to it.
    There is a workaround, which involves changing the lazy-init attribute of the jms-service element in domain.xml to false:
          <jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
            <jms-host host="localhost" name="default_JMS_host" lazy-init="false" />
          </jms-service>This disables the mechanism which starts the embedded broker automatically when a client first tries to connect. Instead, the broker will be started when Glassfish tries to lookup a JMS resource. The simplest way to achieve this is to call "asadmin jms-ping" .
    Nigel

  • Cache.cluster.multicast.ip and Installing Oracle Identity Analytics

    After following the configuration steps outlined below, and deploying the war to Glassfish, I get an error starting RBACX that I think must be related to the cache.cluster.multicast.ip property settings below (error log follows the configuration step outlined next):
    7.Make the following changes if there are multiple instances of Oracle Identity Analytics, standalone or clustered, on the same subnet.
    a.Navigate to rbacx_staging/WEB-INF directory.
    b.In a text editor, open application-context.xml, find bean id commManager, and examine the constructor-arg value.
    c.Set the constructor-arg value with a unique instance name, e.g. value="SRM-Instance-1".
    d.In a text editor, open search-context.xml, find bean id searchConfiguration, and examine the constructor-arg value.
    •The deployment is a standalone, constructor-arg defaults to a value of 0, which is specified as value="0".
    e.Navigate to rbacx_staging/WEB-INF/classes directory and do the following:
    i.In a text editor, open oscache.properties (located in the rbacx_staging/WEB-INF/classes directory), and find the cache.cluster.multicast.ip property.
    ii.Uncomment cache.cluster.multicast.ip by removing the # at the start of the line. Each Oracle Identity Analytics instance requires a unique cache.cluster.multicast.ip value.
    rbacx.log
    10:28:41,357 INFO [Config] OSCache: Getting properties from URL file:/C:/Program%20Files/glassfish-v2.1/domains/domain1/applications/j2ee-modules/rbacx/WEB-INF/classes/oscache.properties for the default configuration
    10:28:41,359 INFO [Config] OSCache: Properties read {cache.cluster.multicast.ip=231.12.21.135, cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener,com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl}
    10:28:41,360 INFO [GeneralCacheAdministrator] Constructed GeneralCacheAdministrator()
    10:28:41,360 INFO [GeneralCacheAdministrator] Creating new cache
    10:28:41,377 INFO [AbstractBroadcastingListener] AbstractBroadcastingListener registered
    10:28:41,379 INFO [JavaGroupsBroadcastingListener] Starting a new JavaGroups broadcasting listener with properties=UDP(mcast_addr=231.12.21.135;mcast_port=45566;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=2000;num_initial_members=3):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):UNICAST(timeout=300,600,1200,2400):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=8096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)
    10:28:41,654 WARN [Configurator] NAKACK property max_xmit_size was deprecated and is ignored
    10:28:41,674 WARN [Configurator] FRAG property down_thread was deprecated and is ignored
    10:28:41,674 WARN [Configurator] FRAG property up_thread was deprecated and is ignored
    10:28:41,688 WARN [Configurator] GMS property join_retry_timeout was deprecated and is ignored
    10:28:41,715 WARN [UDP] receive buffer of socket java.net.DatagramSocket@3734fc1a was set to 64KB, but the OS only allocated 64KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
    10:28:41,715 WARN [UDP] receive buffer of socket java.net.MulticastSocket@77932b46 was set to 80KB, but the OS only allocated 80KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
    10:28:41,723 WARN [UDP] failed to join /224.0.75.75:7500 on net5: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
    10:28:41,723 WARN [UDP] failed to join /224.0.75.75:7500 on eth4: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
    10:28:41,724 WARN [UDP] failed to join /224.0.75.75:7500 on net9: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
    10:28:41,724 WARN [UDP] failed to join /224.0.75.75:7500 on net10: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
    10:28:41,724 WARN [UDP] failed to join /224.0.75.75:7500 on net11: java.net.SocketException: Unrecognized Windows Sockets error: 0: no Inet4Address associated with interface
    10:28:43,768 INFO [JavaGroupsBroadcastingListener] JavaGroups clustering support started successfully
    10:29:14,732 INFO [ContextLifecycleListener] Sun Role Manager (build: 5.0.2.20100125_69_7083) Started
    10:29:14,953 WARN [SearchIndexStartupRunner] Indexes are not consistent.
    10:29:14,953 WARN [SearchIndexStartupRunner] We will rebuild indexes now.
    10:29:19,694 ERROR [ContextLoader] Context initialization failed
    org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/vaau/rbacx/dao/ibatis/maps/BaseAttributeWrapper.xml.
    --- The error occurred while applying a parameter map.
    --- Check the BaseAttributeWrapper.findAttributeValuesMaxIdWithNullHash-InlineParameterMap.
    --- Check the statement (query failed).
    --- Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "HASH_VALUE": invalid identifier
         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:220)
         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
         at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:212)
         at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:271)
         at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:265)
         at com.vaau.rbacx.dao.ibatis.SqlMapBaseAttributeWrapperDao.findAttributeValuesMaxIdWithNullHash(SqlMapBaseAttributeWrapperDao.java:280)
         at com.vaau.rbacx.core.metadata.manager.MetadataManagerImpl.findAttributeValuesMaxIdWithNullHash(MetadataManagerImpl.java:115)
         at com.vaau.rbacx.system.bootstrap.AttributeValueHashCheckStarupRunner.runStartupItems(AttributeValueHashCheckStarupRunner.java:36)
         at com.vaau.rbacx.system.web.bootstrap.SrmContextLoaderListener.onApplicationEvent(SrmContextLoaderListener.java:61)
         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
         at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4632)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:5312)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
         at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
         at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
         at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/vaau/rbacx/dao/ibatis/maps/BaseAttributeWrapper.xml.
    --- The error occurred while applying a parameter map.
    --- Check the BaseAttributeWrapper.findAttributeValuesMaxIdWithNullHash-InlineParameterMap.
    --- Check the statement (query failed).
    --- Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "HASH_VALUE": invalid identifier
         at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201)
         at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120)
         at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518)
         at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493)
         at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
         at org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient(SqlMapClientTemplate.java:273)
         at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209)
         ... 27 more
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "HASH_VALUE": invalid identifier
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:989)
         at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185)
         at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)
         at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)
         ... 33 more
    Any thoughts/suggestions appreciated.
    Gary Sharpe
    UC Davis

    Did you import all the relevant sql scripts for your database? You have to import all the migrate/upgrade scripts as well. Once you have imported all the required sql scripts, it will start properly. You can ignore the cluster warnings.

  • Is it possible bypass basic file authentication in glassfish using default

    I have a glassfish application with basic authentication enabled and a single user setup in the file security realm wth a single group named 'internal'.
    My web.xml is setup with an auth-constraint limited to 'internal' role, my glassfish-web.xml maps the group 'internal' to the role 'internal'
    I have one cluster with an app ('api') running that is already accessed internally without the need for authentication.
    I am trying to set up a standalone instance with a seperate config (publicapi) that runs the same app but can only access functionality of the publicapi rather than the api
    My approach has been to add basic authentication to api with a default principal (internal) in its config. The principal is mapped to a user (internal) in the file security realm that has a single group in its list of 'internal'. My understanding was this would be able to bypass the basic authentication when using this config but it has not.
    This is my config within the api project: glassfish-web.xml
    <glassfish-web-app error-url="">
    <class-loader delegate="true"/>
    <jsp-config>
    <property name="keepgenerated" value="true">
    <description>Keep a copy of the generated servlet class' java code.</description>
    </property>
    </jsp-config>
    <security-role-mapping>
    <role-name>internal</role-name>
    <group-name>internal</group-name>
    <principal-name>internal</principal-name>
    </security-role-mapping>
    </glassfish-web-app>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <security-constraint>
    <display-name>Limit non-internal principals</display-name>
    <web-resource-collection>
    <web-resource-name>Secure Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>internal</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Secure Area</realm-name>
    </login-config>
    <security-role>
    <description>Only accssible to internal roles</description>
    <role-name>internal</role-name>
    </security-role>
    </web-app>
    and sun-web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app error-url="">
    <security-role-mapping>
    <role-name>internal</role-name>
    <group-name>internal</group-name>
    <principal-name>internal</principal-name>
    </security-role-mapping>
    </sun-web-app>
    So is my understanding of being able to bypass the basic authentication using glssfish default principal flawed? Do default principals match to a user / group list that is added in the Glassfish control panel and therefore assocated with the same roles / groups? Any other info on how to correctly map the default principal to a security group and bypass authentication would be very useful. Thank you

    Haii
    your jsps or struts will not do that kind of client side jobs..u write a java script and do that.......
    regards
    Shanu

  • Howto config msg policies for dead message queue (dmq) outside Glassfish?

    The one thing I really love about OpenMQ is that I can have a centralized message store with a cluster of JMS nodes interacting with it.
    I'm now at a contract gig which is pretty much a Tomcat/Spring only shop. I've setup OpenMQ 4.3 w/ MySQL message store and am using Bitronix Transaction Manager (BTM) to pool my XA connections and manage the transactions that are instrumented via AspectJ from the Spring configuration.
    I have two issues really ...
    1) The Spring DefaultMessageListenerContainer does not seem to think it needs to pull messages off the queue unless there is more than one message in the queue. It behaves as if it needs to be primed with messages. I would blame it on DefaultMessageListenerContainer if not for the fact that when I do the same thing with ActiveMQ it works fine.
    2) ActiveMQ has this cool [RedeliveryPolicy object|http://activemq.apache.org/redelivery-policy.html] that you can associate with the connection factory. The com.sun.messaging.XAQueueConnectionFactory has no such settings. What limited amount of similar setting exist in OpenMQ seem to be associated with the ActivationSpec which seems to be more related to resource adapters as run from within an app server like Glassfish. My guess that it is outside the realm of configuration for OpenMQ is based on the fact that the default for endpointExceptionRedeliveryAttempts is 6 and when I enable transactions for my queue the messages will thrash indefinitely when they start hitting exceptions.
    So, how do I configure a message delivery policy for OpenMQ outside of Glassfish? Or is the notion of a dead message queue (dmq) completely useless for OpenMQ without Glassfish?
    Thanks,
    Steve Maring

    OpenMQ does not have such a feature. The only thing you can do is to disable or enable DMQ delivery per destination. There is no way of configuring the number of redeliveries before message gets moved to DMQ.
    Tom

Maybe you are looking for

  • Fast way to delete all voice memos?

    My wife has a ton of Voice Memos.  When you sync photos, the photos are imported into iTunes, then deleted from iPhone.  When you sync Voice Memos, it brings in all the Voice Memos into iTunes on MacBook, but also leaves them on iPhone.  So now she h

  • Encoding problem in Flex - HTTPService

    Problem with swedish character å, ä och ö in a simple form mail with flex, php and mySQL. Have tried to change this in flex - mySimpleFormMail.mxml: <?xml version="1.0" encoding="utf-8"?> to <?xml version="1.0" encoding="Latin1"?> and to <?xml versio

  • Logical error at the end of the script

    hi, I have a proecdure and the compiler gives 9 error but when i execute the procedure then it gives ORA-00933: SQL command not properly ended ORA-06512: at "GEOCODING.POINT", line 139 ORA-06512: at line 1 sqlSt :='Select /*+ ORDERED INDEX (asset_act

  • Satellite A210-12U - DVD RW Drive will recognise DVDs but not CDs

    I've got a 4yr-old Toshiba Satellite laptop (Model: A210-12U) which I recently restored using the recovery CD - it's running Vista SP2. Please bear with me as this may be a long-ish story, but it helps to explain my problem. Around a year ago, a viru

  • How is the difference between CRS-MSC-B and CRS-MSC-40G-B

    How is the difference between  CSC-MSC-B and CSC-MSC-40G-B and it can be used interchangeably or not ? thanks for your kindness