cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco 1.1.2 on jboss-4.0.3SP1

akashs
Champ in-the-making
Champ in-the-making
I am trying to deploy alfresco-war-1.1.2 (not from alfresco-jboss bundle) on jboss-4.0.3SP1 & jboss-4.0.2. I tried the following steps:

1) downloaded the jboss jboss-4.0.3SP1 & alfresco-war-1.1.2.
2) pasted the alfresco-war-1.1.2 in jboss-4.0.3SP1\server\default\deploy
    folder.
3) ran the jboss server & got the deployment fail error.

Then I tried following two things:

i) copied  (from alfresco-jboss bundle v1.1.2)
   <alfresco>/jboss/server/default/conf/alfresco/*.*  into
   <jboss>/server/default/conf/alfresco

   Ran the server & no luck

ii) In addition to above I did the following things as suggested in
    http://alfresco.org/forums/viewtopic.php?t=582&sid=95f7aa1704654a02c961963231d2df0d

    1. Downloaded the nightly build alfresco-src-06012006.zip.

    2. Changed the default target to "build-jboss" in the build.xml file in the 
        folder \alfresco-src-06012006\common\ and executed the ant build.

    3. Copied the resultant alfresco.war from \projects\web-client\build\dist
        to the jboss server folder \jboss-4.0.3SP1\server\default\deploy.

    4. To the folder \jboss-4.0.3SP1\server\default\conf\alfresco, copied
        the contents of the following:
            - \alfresco-src-06012006\projects\repository\config\alfresco
            - \alfresco-src-06012006\projects\web-client\config\alfresco

    5. Copied from \alfresco-src-06012006\projects\3rd-party\lib to folder
       \jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs
       the following jars:
           - myfaces-api.jar
           - myfaces-impl.jar

     Again no luck Smiley Sad

Regards
Akash
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
The steps you used from the other forum topic you mention should work ok. Can you post the errors you are getting from the server log so we can take a closer look?

Thanks,

Kevin

akashs
Champ in-the-making
Champ in-the-making
As we need project for use in jboss(4.0.3SP1) not jboss-portal I ran

>ant incremental-jboss instead of "build-jboss" target.

Then followed the step 3 to 5 & ran jboss.
Opened http://localhost:8080/alfresco & got the login page.
Used admin/admin as login/passwd that resulted in following error page:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax/portlet/RenderResponse
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

root cause

java.lang.NoClassDefFoundError: javax/portlet/RenderResponse




Following is the result from server log:

2006-01-12 13:15:51,710 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 33 in the jsp file: /jsp/browse/browse.jsp
Generated servlet error:
The type javax.portlet.PortletSession cannot be resolved. It is indirectly referenced from required .class files


   at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
   at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
   at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
   at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
   at org.alfresco.web.app.servlet.AlfrescoFacesServlet.service(AlfrescoFacesServlet.java:49)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:70)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)
2006-01-12 13:15:51,725 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'configService'
2006-01-12 13:15:51,725 DEBUG [org.alfresco.web.app.servlet.AlfrescoFacesServlet] An error has occurred, redirecting to error page: /jsp/error.jsp
2006-01-12 13:15:51,913 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/alfresco].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: javax/portlet/RenderResponse
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
   at java.lang.Class.getDeclaredMethods(Class.java:1763)
   at java.beans.Introspector$1.run(Introspector.java:1265)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
   at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
   at java.beans.Introspector.getBeanInfo(Introspector.java:387)
   at java.beans.Introspector.getBeanInfo(Introspector.java:159)
   at org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:3678)
   at org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2100)
   at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1579)
   at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
   at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
   at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
   at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1685)
   at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
   at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
   at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
   at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
   at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
   at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
   at org.apache.jasper.compiler.Generator.generate(Generator.java:3270)
   at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
   at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)


regards
Akash

kevinr
Star Contributor
Star Contributor
Hello,

This is because by default for the Jboss build target we remove the "portlet-api-lib.jar" from the resulting WAR file as it is already including inside the jbossPortal deployment. To fix the error, edit the file:
  projects\web-client\project.properties
you'll see the line:
webinf.lib.delete.jboss=log4j-1.2.8.jar,portlet-api-lib.jar,myfaces-api.jar,myfaces-impl.jar
change it to:
webinf.lib.delete.jboss=log4j-1.2.8.jar,myfaces-api.jar,myfaces-impl.jar

And rebuild as you did before. This should add back in the portal JAR file which is needed to compile some of the JSP files (even if they do not access the portal there is some code in the JSPs which must be there for both)

Thanks,

Kevin