5 Replies Latest reply on Apr 13, 2007 10:01 AM by theute

    an error about the "theme" when i deploy a portlet into the

    linnpan

      i create a portlet application named MyFirstPortlet ,using the tool 'sun java studio creator2'.
      In this application, i create portlet-instances.xml,myfirstportlet-object.xml,myfirstportlet.java, and modify web.xml,portlet.xml,build.xml.
      Next, I run command 'ant deploy' successfully,and run command 'ant explode' successfully.
      At last, i copy 'myfirstportlet.war' to 'JBOSS_HOME\server\default\deploy'?and start jboss(portal+AS).
      During starting, there is an error about 'theme':

      ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@4a80258 { url=file:/JBOSS_HOME/server/default/deploy/myfirstportlet.war }
      deployer: MBeanProxyExt[jboss.web:service=WebServer]
      status: Deployment FAILED reason: java.lang.ClassNotFoundException: com.sun.rave.web.ui.theme.ThemeServlet
      state: FAILED
      watch: file:/JBOSS_HOME/server/default/deploy/myfirstportlet.war
      altDD: null
      lastDeployed: 1176035169609
      lastModified: 1176035169609
      mbeans:


      please help me solve this error.

        • 1. Re: an error about the
          peterj

          The missing class appears top be part of the Sun portal implementation. It would appears that when you use Sun's Studio Creator2 tool that it builds Sun-portal specific portlets. I am not familiar with that tool so I do not know if there is a way to build standard portlets with it. You could try working your way through the JBoss Portal documentation, it has a pretty good getting started section for building your first portlet. And all it requires is a text editor.

          • 2. Re: an error about the
            linnpan

            the portlet created by creator2,is a standard portlet(JSR168)

            • 3. Re: an error about the
              theute

              PeterJ is right. Sun creator (at least by default) create portlet for Sun Portal.

              So when it deploys, JBoss AS cannot find the class com.sun.rave.web.ui.theme.ThemeServlet
              since it's a Sun class.

              You should remove that dependency.

              • 4. Re: an error about the
                linnpan

                oh, that is to say, i need to create files myself including portal-themes.xml,portal-layouts.xml,portal-renderSet.xml,portal-strategies.xml,etc.

                ?

                thank you

                • 5. Re: an error about the
                  theute

                  if you want to create a theme yes. If you are using the default themes you don't need those