0 Replies Latest reply on Dec 9, 2002 8:55 PM by Kai

    Help with example chp6ex2(JaasSecurityManager.defaultLogin d

    Kai Newbie

      Hi, I have a freshly built chap6-ex2.jar.
      And I can deploy and run it under a NEWLY installed jboss3.0.0_tomcat 4.0.3
      and jboss3.0.4_tomcat 4.1.12 without any problem.

      However I can't deploy it to my production which is also a jboss3.0.0_tomcat 4.0.3.

      It complain about:
      java.lang.NoClassDefFoundError at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:379)

      What might be wrong.

      I really appreciate your help.



      The complete log shows:
      2002-12-09 20:56:57,015 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: file:/E:/jboss/server/default/tmp/dep
      loy/server/default/deploy/chap6-ex2.jar/131.chap6-ex2.jar, descriptor: META-INF/ejb-jar.xml
      2002-12-09 20:56:57,015 DEBUG [org.jboss.management.j2ee.EJBModule] Create EJB-Module, name: chap6-ex2.jar, application:
      jboss.management.single:J2EEServer=Single,name= , dd: <?xml version="1.0"?>
      <!DOCTYPE ejb-jar
      PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
      "http://java.sun.com/dtd/ejb-jar_2_0.dtd"
      >

      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>TextMDB</ejb-name>
      <ejb-class>org.jboss.chap6.ex2.TextMDB</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      2002-12-09 20:56:57,015 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] getObjectName(), name: jboss.management.sing
      le:J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=chap6-ex2.jar
      2002-12-09 20:56:57,015 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] postRegister(), parent: jboss.management.sin
      gle:J2EEServer=Single,name=
      2002-12-09 20:56:57,015 INFO [org.jboss.ejb.EjbModule] Deploying TextMDB
      2002-12-09 20:56:57,031 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.create: []
      2002-12-09 20:56:57,031 DEBUG [org.jboss.ejb.MessageDrivenContainer] Mapped onMessage 1175993645 to public void org.jbos
      s.chap6.ex2.TextMDB.onMessage(javax.jms.Message)
      2002-12-09 20:56:57,031 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] initializing
      2002-12-09 20:56:57,031 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/E:/jboss/server/def
      ault/deploy/chap6-ex2.jar
      java.lang.NoClassDefFoundError
      at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:379)
      at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:347)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:215)
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:157)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:40)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:575)