1 2 Previous Next 22 Replies Latest reply on May 31, 2011 3:54 AM by duanxz Go to original post Branched to a new discussion.
      • 15. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
        duanxz

        Hi Wolfgang,
        firstly,Thanks for your warning will unpacked files to delete. I always remember to remove it, before I start the jboss service.
        secondly,the class "com.aqqfpo.server.config.AqqfpoConfig"  is in "aqqfposerver.jar".
        thirdly,the aqqfposerver.jar contains EJB class and utility class.
        the aqqfposerver.jar detail info as follow:
        jar -tf aqqfposerver.jar
        ....
        ....
        com/aqqfpo/server/command/VerifySQLCommandData.class
        com/aqqfpo/server/config/AbstractServerConfig.class
        com/aqqfpo/server/config/AqqfpoConfig.class
        com/aqqfpo/server/config/ApplicationConfig.class
        com/aqqfpo/server/config/ApplicationsConfig.class
        com/aqqfpo/server/config/ApplicationsConfigFacade.class
        com/aqqfpo/server/config/CleanableItem.class
        com/aqqfpo/server/config/CleanableItems.class
        ....
        ....

        in aqqfposerver.jar/META-INF/MANIFEST.MF:
        Manifest-Version: 1.0
        Class-Path: lib/castor-xml.jar lib/commons-beanutils.jar lib/commons-collections.jar lib/commons-digester.jar lib/commons-fileupload.jar lib/commons-lang.jar lib/commons-logging.jar lib/commons-validator.jar lib/hsqldb.jar lib/struts.jar

        in aqqfposerver.jar/META-INF/ejb-jar.xml:
        <?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>
           <session>
              <ejb-name>TransferFileService</ejb-name>
              <home>ASInterface.EJBTransferFileServiceHome</home>
              <remote>ASInterface.EJBTransferFileService</remote>
              <ejb-class>com.aqqfpo.server.services.transferfile.TransferFileServiceBean</ejb-class>
              <session-type>Stateless</session-type>
              <transaction-type>Container</transaction-type>
            </session>
        .....
        .....

        in aqqfposerver.jar/META-INF/jboss.xml:
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
        <jboss>
           <unauthenticated-principal>nobody</unauthenticated-principal>
           <enterprise-beans>
             <!--
               To add beans that you have deployment descriptor info for, add
               a file to your XDoclet merge directory called jboss-beans.xml that contains
               the <session></session>, <entity></entity> and <message-driven></message-driven>
               markup for those beans.
             -->
            <session>
            <ejb-name>TransferFileService</ejb-name>
            <jndi-name>TransferFileServiceBean</jndi-name>
            </session>
            .....
            .....


        fourthly,in “AEM.war/WEB-INF/” there haven't lib directory,all libraries are under aqqfposerver.ear/lib.

        directory1.png
        E:\localappServer\jboss-6.0.0.Final0526\server\default\deploy\aqqfposerver>jar -tf AEM.war
        META-INF/
        META-INF/MANIFEST.MF
        configAssistant/
        css/
        houseKeeper/
        images/
        js/
        security/
        WEB-INF/
        WEB-INF/classes/
        WEB-INF/classes/org/
        WEB-INF/classes/org/exolab/
        WEB-INF/classes/resources/
        blank.jsp
        configAssistant/activation.jsp
        configAssistant/addApplication.jsp
        configAssistant/addCharsetOfApplication.jsp
        ...
        ...
        WEB-INF/classes/charset.properties
        WEB-INF/classes/org/exolab/securityCfg.class
        WEB-INF/classes/resources/application.properties
        WEB-INF/classes/resources/application_en.properties
        WEB-INF/classes/resources/application_ja.properties
        WEB-INF/classes/resources/application_zh.properties
        WEB-INF/classes/resources/application_zh_TW.properties
        WEB-INF/controls.tld
        WEB-INF/struts-bean.tld
        WEB-INF/struts-config.xml
        WEB-INF/struts-html.tld
        WEB-INF/struts-logic.tld
        WEB-INF/struts-template.tld
        WEB-INF/web.xml
        welcome.jsp
        help/active_sessions.htm
        help/active_transactions.htm
        help/addconcachefull.gif
        help/addconncache.gif
        ....

        fifthly,in AEM.war/META-INF/MANIFEST.MF info:
        Manifest-Version: 1.0
        Class-Path: aqqfposerver.jar

         

         

        Best regards


        duan

        • 16. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
          duanxz

          Hi,jaikiran

          my issue and https://community.jboss.org/message/563416#563416 Same as above. when I changed my package name (com.aqqfpo.server) on it,the jsp file can resolved.
          however,under server package have too many class files,move all the class files under server package is not  convenient. is there any other solutions?
          thanks you for help me find the source of the problem.

           

          Best regards

          duan

          • 17. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
            jaikiran

            duan xz wrote:

             

            Hi,jaikiran

            my issue and https://community.jboss.org/message/563416#563416 Same as above. when I changed my package name (com.aqqfpo.server) on it,the jsp file can resolved.

            It's a known bug then. The fix for that is https://issues.jboss.org/browse/JBVFS-170 which needs to be integrated into AS 6 trunk (so that it becomes available in the latest 6.1.0 snapshots).

            • 18. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
              duanxz

              Hi,jaikiran
              I deployed to jboss-6.1.0-SNAPSHOT version(modified date 2011-04-29), the problem still exists.
              Do I want to use the "-Djboss.vfs.forceCaseSensitive = true"? and how to use it?

              Any help with this will be greatly appreciated.

              Best regards
              duan

              • 19. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
                jaikiran

                duan xz wrote:

                 

                Hi,jaikiran
                I deployed to jboss-6.1.0-SNAPSHOT version(modified date 2011-04-29), the problem still exists.

                Yes, because the fix hasn't yet been integrated in 6.1.0 snapshots. I'll see if there's any plan to release that fix into 6.1.0 in the coming days.

                 

                 

                duan xz wrote:

                 


                Do I want to use the "-Djboss.vfs.forceCaseSensitive = true"? and how to use it?

                That won't work since AS6 uses VFS3 which doesn't use that flag.

                • 20. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
                  duanxz

                  Hi,jaikiran

                  Thank you for your reply so quickly,
                    now i want to solve this problem, then only two options, either wait for the emergence of a new version(jboss6.1.0) or change the name of my package?


                  thanks for your help again.

                  Bestregards
                  duan

                  • 21. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
                    jaikiran

                    duan xz wrote:

                     


                      now i want to solve this problem, then only two options, either wait for the emergence of a new version(jboss6.1.0) or change the name of my package?

                     

                    Yes, that's correct.

                    • 22. Re: EAR deployment in jsp the import Class cannot be resolved when library exists
                      duanxz
                      Thanks  jaikiran.
                      Wish you a happy work!
                      1 2 Previous Next