cancel
Showing results for 
Search instead for 
Did you mean: 

custom jsp and deploymet

haydee
Champ in-the-making
Champ in-the-making
HI, who I can add a custom jsp and deploymet it (specially) ??
I'm using "jboss-portal-2.4.0-BETA1-src", and only I can accede to "alfresco.war" !!!!!

Thanks.
12 REPLIES 12

gavinc
Champ in-the-making
Champ in-the-making

haydee
Champ in-the-making
Champ in-the-making
Hello, I have tried to do the example but the problem is that I only have the file to alfresco.war, so I can't see the code to make the changes.  There is some way to do it from this file?

Thanks

gavinc
Champ in-the-making
Champ in-the-making
You can do a manual deployment in JBoss, this way the files will always be extracted, thus you can add custom JSPs and they won't be wiped out when you re-start the server (like they do normally with JBoss).

In the deploy directory create a folder called "alfresco.war". Extract the contents of alfresco.war (the file) into alfresco.war (the folder) and start JBoss.

As always custom configuration files can go into <JBoss>/server/default/conf/alfresco/extension

Hope that helps.

haydee
Champ in-the-making
Champ in-the-making
Hello gavinic, I'm proving the CustomLogin example but it not work. It shows the following error when I login:

javax.portlet.PortletException: Error calling action method of component with id browse:login

caused by:
javax.faces.FacesException: Error calling action method of component with id browse:login

caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.logout}

caused by:
javax.faces.FacesException: java.lang.ClassNotFoundException: No ClassLoaders found for: org.alfresco.sample.CustomLoginBean

caused by:
java.lang.ClassNotFoundException: No ClassLoaders found for: org.alfresco.sample.CustomLoginBean



Where I place the CustomLoginBean class ???

Thanks

gavinc
Champ in-the-making
Champ in-the-making
In that case you will need to put it within WEB-INF. You can either place the class file directly in WEB-INF/classes or you can package the class in a JAR file and place it in WEB-INF/lib.

vpoorboy
Champ in-the-making
Champ in-the-making
Hi, I've modified some code in CustomLoginBean.java, then move to "sdk/samples/CustomLogin", perform ant building, but the result zip & jar files do not contain: CustomLoginBean.class, faces-config-custom.xml, …
I must create some more folder there ?

gavinc
Champ in-the-making
Champ in-the-making
No, the Ant script should create all the folders it needs.

Maybe you could post the output from the Ant script so i can see if there's anything obviously wrong.

You could also try running ant with the "-verbose" option.

haydee
Champ in-the-making
Champ in-the-making
Hi Gavin thanks for your help. A last question?  I want to manipulate the code of jboss portal (into alfresco-community-jboss-1.3.0RC2) to be able to obtain user of jboss and to use it for login by defect in Alfresco, could I do this?????.

Thanks again.

vpoorboy
Champ in-the-making
Champ in-the-making
Hi Gavinc, here is the Ant output
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.5 in: /home/user/jdk1.5.0_06/jre
Detected OS: Linux
parsing buildfile /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build.xml with URI = file:///home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build.xml
Project base dir set to: /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin
Build sequence for target(s) `package-extension' is [package-jar, package-extension]
Complete build sequence is [package-jar, package-extension, integrate-extension, ]

package-jar:
   [delete] Deleting: /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build/custom-login.jar
      [jar] Building MANIFEST-only jar: /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build/custom-login.jar
      [jar] adding directory META-INF/
      [jar] adding entry META-INF/MANIFEST.MF

package-extension:
   [delete] Deleting: /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build/custom-login.zip
      [zip] Building zip: /home/user/alfresco/svn/HEAD/root/projects/sdk/samples/CustomLogin/build/custom-login.zip
      [zip] adding directory WEB-INF/
      [zip] adding directory WEB-INF/lib/
      [zip] adding entry WEB-INF/lib/custom-login.jar
      [zip] adding directory jsp/
      [zip] adding directory jsp/extension/
      [zip] adding entry WEB-INF/faces-config-custom.xml

BUILD SUCCESSFUL
Total time: 1 second