0 Replies Latest reply on Jun 7, 2004 5:06 AM by momi

    package javax.mail does not exist

    momi Newbie

      I'm am using JBoss 3.2.3 and I am trying get an existing web-application running with the tomcat version of JBoss. I've edited the jboss-service.xml with the following config parameters:

      <attribute name="Java2ClassLoadingCompliance">true</attribute>
      <attribute name="UseJBossWebLoader">false</attribute>
      


      And I added a fixed context to the configuration pointing to the location where all the web-application files are stored.

      Now when I try to call a page which sends a mail I get a compile error mentioning the

      package javax.mail does not exist

      error. However, if I list the class loader resources with the following code:

      java.util.Enumeration resources = application.getClass().getClassLoader().getResources( "" );
      
      while( resources.hasMoreElements() )
       out.println( resources.nextElement() + "<br>" );
      


      I get the following list:

      file:/D:/java/jboss-3.2.3/bin/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/jms/jbossmq-httpil.sar/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/jbossweb-tomcat41.sar/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/jmx-invoker-adaptor-server.sar/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/jmx-console.war/
      file:/D:/java/jboss-3.2.3/server/testapp/conf/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/http-invoker.sar/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/http-invoker.sar/invoker.war/
      file:/D:/java/jboss-3.2.3/server/testapp/deploy/snmp-adaptor.sar/
      file:/D:/java/jboss-3.2.3/server/testapp/tmp/deploy/tmp32607web-console.war/
      


      I've tried all kinds of settings, but I am out of ideas. I hope someone can help me with this one.