Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    weblogic 12 + java7 + gwt 2.5.1

    Hi.
    I have been trying to deploy an application which works well on weblogic 10 + java6 + gwt 2.4.0 on the setup mentioned in the title, without any luck.

    WebLogic Server Version: 12.1.2.0.0
    Smartgwt version: 3.1-p20140602
    SmartClient Version: v8.3p_2014-06-02/PowerEdition Deployment (built 2014-06-02)

    the problem reported by the container is:

    com.oracle.injection.integration.CDIModuleExtension addClassToSet WARNING: Exception attempting to load myapp.client.MyClass : java.lang.NoClassDefFoundError: com/smartgwt/client/widgets/layout/VLayout

    MyClass extends VLayout.
    what I don't understand is why it goes and tries to load a client side class.
    no server side classes import any client side classes or vice-versa. there are shared classes in the shared package which are used by both client and server side classes.

    #2
    It doesn't seem like this could possibly be a problem with our product, but if you post the complete logs leading to that error, we might be able to help anyway.

    Note that we agree with your assessment: the error message strongly suggests that the CDI subsystem in Weblogic is trying to load your GWT application. Possibly they have implemented some kind of auto-discovery mechanism that just tries to load anything found in the server classpath that matches a certain naming pattern; in that case you will need to get your client-side .jars out of the server-side classpath entirely.

    Comment


      #3
      I understand this might not be a problem with smartGWT, in any case I wanted to check if you have had any such experience in the past.

      There were no client side jars in the classpath.

      I was able to bypass the error by manually deleting all classes from the client folder in the WEB-INF folder.
      Unfortunately I now get a different error, but is related to weblogic alone, so I am not able to let you know if the application loads without any problem with this configuration.

      In any case, this thread serves as knowledge base for someone who might want to use this setup and hits the same problems.

      I will keep this thread alive until I resolve all the issues, if you do not mind.

      Comment


        #4
        There were no client side jars in the classpath.
        Well, you said that Weblogic logged this:

        Exception attempting to load myapp.client.MyClass
        So that would seem to imply that client-side jars were in the classpath, at least at some point.

        I will keep this thread alive until I resolve all the issues, if you do not mind.
        Certainly, we appreciate you posting problem details and resolutions here, even if it's not strictly a SmartGWT issue.

        Comment


          #5
          java.lang.NoClassDefFoundError: com/smartgwt/client/widgets/layout/VLayout
          It does try to load my client class, but because it finds it in the WEB-INF folder.
          It fails to load it because there are, in fact, no client jar files in the class path, otherwise I would not see the error above.
          I would probably run into another error later...

          Comment


            #6
            OK - to clarify, when you said "There were no client side jars in the classpath." we assumed this meant that there were no .jars in the classpath that include client-side classes such as your client-side application class (myapp.client.MyClass).

            Possibly you really meant that smartgwt.jar or other client-side library .jars were not present..

            Comment


              #7
              Yes, when the application server scans for CDI beans, you either need no GWT and SmartGWT jars and none of the client code or you need both in your EAR or WAR.

              Comment

              Working...
              X