1 Reply Latest reply on Jul 13, 2004 2:33 AM by Murthy Perla

    Error While deplouing startup class to my application.

    Murthy Perla Newbie

      Hi, I deployed a startup class. It is not displaying the Message given to attribute under user-service.xml file. Along with these i deployed service-ejb's also. When i started jboss Server i am getting javax.naming.NameNotFoundException: ConnectionFactory not bound error. Could any one please help me to resolve these errors.

      User-service.xml
      
      <classpath codebase="." archives="MyJbossStart.jar"/>
       <mbean code="com.openpages.aurora.service.common.JBossStartup"
       name="user:service=JbossService">
       <attribute name="ServiceStartup">Jboss Statrup Struggling</attribute>
       <depends>jboss.j2ee:service=EjbModule,module=service-ejbs.jar</depends>
       </mbean>
      


      Code for startup class:
      
      package com.openpages.aurora.service.common;
      
      //import org.jboss.system.ServiceMBean;
      import org.jboss.system.ServiceMBeanSupport;
      
      public class JBossStartup extends ServiceMBeanSupport implements JBossStartupMBean {
      
       public String serviceStartup = "";
      
       public void startService() {
      
       try {
       System.out.println("JBossStartup::startService()");
       System.out.println("Name=|" + getName()+"|");
       System.out.println("ServiceName=|" + getServiceName()+"|");
       System.out.println("Server=|" + getServer()+"|");
       System.out.println("State=|" + getState()+"|");
       System.out.println("SateString=|" + getStateString()+"|");
      
       boolean isStarted = true;
       if ( serviceStartup!= null ) {
       isStarted = new Boolean(serviceStartup).booleanValue();
       System.out.println("Boolean object creation failed");
       }
       System.out.println("Before OpenpagesStartup::startup()");
       OpenpagesStartup.startup(isStarted);
       System.out.println("The Aurora environment was initialized successfully");
       } catch(Exception e) {
       System.out.println(e);
       }
       }
      
       public String getServiceStartup() {
       return serviceStartup;
       }
      
       public void setServiceStartup(String serviceStartup) {
       this.serviceStartup = serviceStartup;
       }
      
       public void stopService() {
       System.out.println("JBossStartup::stopService()");
       }
      }
      
      



      Error1:
      10:47:31,777 WARN [ServiceController] Problem creating service jboss.system:type=Log4jService,service=Logging
      java.lang.NoClassDefFoundError:
      javax/xml/parsers/FactoryConfigurationError
      at org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:624)


      Error2:
      0:47:49,746 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=TransformationService,service=EJB
      0:47:49,762 ERROR [JMSContainerInvoker] Starting failed
      avax.naming.NameNotFoundException: DefaultJMSProvider not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      at org.jnp.interfaces.NamingContext.lookup



      Error3:
      10:47:52,855 ERROR [SecurityInterceptor] Authentication exception, principal=null
      10:47:52,855 ERROR [LogInterceptor] EJBException, causedBy:
      java.lang.SecurityException: Authentication exception, principal=null
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation
      (
      SecurityInterceptor.java:164)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:81)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
      )

      Error4:
      10:47:53,762 ERROR [CacheSynchronizer] The following exception occurred:
      javax.naming.NameNotFoundException: ConnectionFactory not bound
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)


        • 1. Re: Error While deploying startup class to my application.
          Murthy Perla Newbie

           

          "naveen26731" wrote:
          Hi, I deployed a startup class. It is not displaying the Message given to attribute under user-service.xml file. Along with these i deployed service-ejb's also. When i started jboss Server i am getting javax.naming.NameNotFoundException: ConnectionFactory not bound error. Could any one please help me to resolve these errors.
          User-service.xml
          
          <classpath codebase="." archives="MyJbossStart.jar"/>
           <mbean code="com.openpages.aurora.service.common.JBossStartup"
           name="user:service=JbossService">
           <attribute name="ServiceStartup">Jboss Statrup Struggling</attribute>
           <depends>jboss.j2ee:service=EjbModule,module=service-ejbs.jar</depends>
           </mbean>
          


          Code for startup class:
          
          package com.openpages.aurora.service.common;
          
          //import org.jboss.system.ServiceMBean;
          import org.jboss.system.ServiceMBeanSupport;
          
          public class JBossStartup extends ServiceMBeanSupport implements JBossStartupMBean {
          
           public String serviceStartup = "";
          
           public void startService() {
          
           try {
           System.out.println("JBossStartup::startService()");
           System.out.println("Name=|" + getName()+"|");
           System.out.println("ServiceName=|" + getServiceName()+"|");
           System.out.println("Server=|" + getServer()+"|");
           System.out.println("State=|" + getState()+"|");
           System.out.println("SateString=|" + getStateString()+"|");
          
           boolean isStarted = true;
           if ( serviceStartup!= null ) {
           isStarted = new Boolean(serviceStartup).booleanValue();
           System.out.println("Boolean object creation failed");
           }
           System.out.println("Before OpenpagesStartup::startup()");
           OpenpagesStartup.startup(isStarted);
           System.out.println("The Aurora environment was initialized successfully");
           } catch(Exception e) {
           System.out.println(e);
           }
           }
          
           public String getServiceStartup() {
           return serviceStartup;
           }
          
           public void setServiceStartup(String serviceStartup) {
           this.serviceStartup = serviceStartup;
           }
          
           public void stopService() {
           System.out.println("JBossStartup::stopService()");
           }
          }
          
          



          Error1:
          10:47:31,777 WARN [ServiceController] Problem creating service jboss.system:type=Log4jService,service=Logging
          java.lang.NoClassDefFoundError:
          javax/xml/parsers/FactoryConfigurationError
          at org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:624)


          Error2:
          0:47:49,746 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=TransformationService,service=EJB
          0:47:49,762 ERROR [JMSContainerInvoker] Starting failed
          avax.naming.NameNotFoundException: DefaultJMSProvider not bound

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
          at org.jnp.interfaces.NamingContext.lookup



          Error3:
          10:47:52,855 ERROR [SecurityInterceptor] Authentication exception, principal=null
          10:47:52,855 ERROR [LogInterceptor] EJBException, causedBy:
          java.lang.SecurityException: Authentication exception, principal=null
          at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation
          (
          SecurityInterceptor.java:164)
          at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:81)
          at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
          )

          Error4:
          10:47:53,762 ERROR [CacheSynchronizer] The following exception occurred:
          javax.naming.NameNotFoundException: ConnectionFactory not bound
          at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)