Can not deploy OPS to the latest ver of liferay-Jboss bundle

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
I followed the steps here , but could not get it worked. many errors.

Is this working for the latest liferay version?
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Mauno
Fran555, did you use liferay's deploy directory or update managerer within liferay?
Did it fail to deploy or did it fail to start?
What are the first errors?

Fran555 wrote
I followed the steps here , but could not get it worked. many errors.

Is this working for the latest liferay version?
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
Ok, here is what I did:
1) Download the latest ver of LifeRay Bundled with JBoss+Tomcat 4.2 from http://www.liferay.com/web/guest/downloads/portal

2) Download Orbeon Forms 3.6.0 and hot deploy OPS War to the Jboss deploy folder

3) then many error shown as attached
ops_hotdeploy_error.txt
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Mauno
Try using liferay's deploy directory or use liferay's admin gui tools.
Note that liferay's deploy directory != jboss deploy directory. Example: my 4.3.4 liferay deploy is in /home/mauno/liferay/deploy.

Fran555 wrote
Ok, here is what I did:
1) Download the latest ver of LifeRay Bundled with JBoss+Tomcat 4.2 from http://www.liferay.com/web/guest/downloads/portal

2) Download Orbeon Forms 3.6.0 and hot deploy OPS War to the Jboss deploy folder

3) then many error shown as attached
ops_hotdeploy_error.txt
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
When I use liferay's admin gui tools to deploy the orbeon.war file, it's deployed at \liferay-portal-jboss-tomcat-4.2-4.3.5\webapps instead of \liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy without error and shown as successful.

However, I could not find the Orbeon from "Add Content" list, which mean I have no way to add the Orbeon portlet and test.

\liferay-portal-jboss-tomcat-4.2-4.3.5\webapps = liferay's deploy directory ?
\liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy = jboss deploy directory ?


Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Alessandro Vernet
Administrator
Fran555 wrote
When I use liferay's admin gui tools to deploy the orbeon.war file, it's deployed at \liferay-portal-jboss-tomcat-4.2-4.3.5\webapps instead of \liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy without error and shown as successful.

However, I could not find the Orbeon from "Add Content" list, which mean I have no way to add the Orbeon portlet and test.

\liferay-portal-jboss-tomcat-4.2-4.3.5\webapps = liferay's deploy directory ?
\liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy = jboss deploy directory ?
On my machine, I have Liferay installed in ~/liferay-portal-tomcat-5.5-jdk5-4.3.4, and the way I deploy Orbeon Forms is by copying ops.war into ~/liferay/deploy. This is directory that Liferay has created. I can do that as Liferay is running. It will pick up the ops.war in that directory and uncompress it to liferay-portal-tomcat-5.5-jdk5-4.3.4/webapps. I hope this helps,

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
I have deployment path setup correctly, and I can deploy portlet I created. For LifeRay-Jboss Bundle, the lifeRay deployment directory needs to set same as the Jboss deploy directory.

However, while other portlets are working fine, I still could not deploy Orbeon.war to LifeRay JBoss Bundle as error shown below. If possible, would you mind testing Orbeon deployment on LifeRay JBoss Bundle?
 
state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/README.txt
  altDD: null
  lastDeployed: 1199865636986
  lastModified: 1199865636966
  mbeans:

org.jboss.deployment.DeploymentInfo@dafbedfe { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/epilogue-portlet.xpl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/epilogue-portlet.xpl
  altDD: null
  lastDeployed: 1199865637046
  lastModified: 1199865637026
  mbeans:

org.jboss.deployment.DeploymentInfo@de8df4c9 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/epilogue-servlet.xpl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/epilogue-servlet.xpl
  altDD: null
  lastDeployed: 1199865637096
  lastModified: 1199865637086
  mbeans:

org.jboss.deployment.DeploymentInfo@c6360b51 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/epilogue.xpl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/epilogue.xpl
  altDD: null
  lastDeployed: 1199865637126
  lastModified: 1199865637116
  mbeans:

org.jboss.deployment.DeploymentInfo@f3882c04 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/log4j.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/log4j.xml
  altDD: null
  lastDeployed: 1199865637216
  lastModified: 1199865637186
  mbeans:

org.jboss.deployment.DeploymentInfo@97fff11e { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/not-found.xhtml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/not-found.xhtml
  altDD: null
  lastDeployed: 1199865637236
  lastModified: 1199865637236
  mbeans:

org.jboss.deployment.DeploymentInfo@5b0344f { url=file:/D:/liferay-portal/server
/default/deploy/orbeon/WEB-INF/resources/config/prologue-portlet.xpl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/prologue-portlet.xpl
  altDD: null
  lastDeployed: 1199865637286
  lastModified: 1199865637276
  mbeans:

org.jboss.deployment.DeploymentInfo@d92b8b1 { url=file:/D:/liferay-portal/server
/default/deploy/orbeon/WEB-INF/resources/config/properties.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/properties.xml
  altDD: null
  lastDeployed: 1199865637336
  lastModified: 1199865637306
  mbeans:

org.jboss.deployment.DeploymentInfo@4bd42e05 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/theme-examples.xsl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/theme-examples.xsl
  altDD: null
  lastDeployed: 1199865637386
  lastModified: 1199865637366
  mbeans:

org.jboss.deployment.DeploymentInfo@f937820a { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/theme-plain.xsl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/theme-plain.xsl
  altDD: null
  lastDeployed: 1199865637436
  lastModified: 1199865637416
  mbeans:

org.jboss.deployment.DeploymentInfo@bd0b0dd1 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/config/xforms-widgets.xsl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
config/xforms-widgets.xsl
  altDD: null
  lastDeployed: 1199865637567
  lastModified: 1199865637516
  mbeans:

org.jboss.deployment.DeploymentInfo@e22a4e68 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/forms/government/DMV-14/resources_en.x
ml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
forms/government/DMV-14/resources_en.xml
  altDD: null
  lastDeployed: 1199865637637
  lastModified: 1199865637617
  mbeans:

org.jboss.deployment.DeploymentInfo@e417850b { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/forms/government/DMV-14/resources_fr.x
ml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
forms/government/DMV-14/resources_fr.xml
  altDD: null
  lastDeployed: 1199865637667
  lastModified: 1199865637657
  mbeans:

org.jboss.deployment.DeploymentInfo@e1e98dc8 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/forms/government/DMV-14/search-query.x
ml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
forms/government/DMV-14/search-query.xml
  altDD: null
  lastDeployed: 1199865637697
  lastModified: 1199865637687
  mbeans:

org.jboss.deployment.DeploymentInfo@4a8c6c6e { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/forms/government/service/search.xpl }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
forms/government/service/search.xpl
  altDD: null
  lastDeployed: 1199865637707
  lastModified: 1199865637697
  mbeans:

org.jboss.deployment.DeploymentInfo@1098f855 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/page-flow-portlet-edit.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
page-flow-portlet-edit.xml
  altDD: null
  lastDeployed: 1199865637717
  lastModified: 1199865637717
  mbeans:

org.jboss.deployment.DeploymentInfo@36ad3cea { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/page-flow-portlet.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
page-flow-portlet.xml
  altDD: null
  lastDeployed: 1199865637737
  lastModified: 1199865637737
  mbeans:

org.jboss.deployment.DeploymentInfo@168bb33d { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/resources/page-flow.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/resources/
page-flow.xml
  altDD: null
  lastDeployed: 1199865637807
  lastModified: 1199865637787
  mbeans:

org.jboss.deployment.DeploymentInfo@2106b4e { url=file:/D:/liferay-portal/server
/default/deploy/orbeon/WEB-INF/sun-web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/sun-web.xm
l
  altDD: null
  lastDeployed: 1199865637827
  lastModified: 1199865637827
  mbeans:

org.jboss.deployment.DeploymentInfo@9679594f { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1199865637877
  lastModified: 1199865637837
  mbeans:

org.jboss.deployment.DeploymentInfo@4dbe0737 { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/WEB-INF/weblogic.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/WEB-INF/weblogic.x
ml
  altDD: null
  lastDeployed: 1199865637897
  lastModified: 1199865637887
  mbeans:

org.jboss.deployment.DeploymentInfo@ab3f2e9 { url=file:/D:/liferay-portal/server
/default/deploy/orbeon/xforms-jsp/flickr-search/index.jsp }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/xforms-jsp/flickr-
search/index.jsp
  altDD: null
  lastDeployed: 1199865637917
  lastModified: 1199865637907
  mbeans:

org.jboss.deployment.DeploymentInfo@84231b1 { url=file:/D:/liferay-portal/server
/default/deploy/orbeon/xforms-jsp/flickr-search/service-search.jsp }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/xforms-jsp/flickr-
search/service-search.jsp
  altDD: null
  lastDeployed: 1199865637927
  lastModified: 1199865637917
  mbeans:

org.jboss.deployment.DeploymentInfo@a148644e { url=file:/D:/liferay-portal/serve
r/default/deploy/orbeon/xforms-jsp/guess-the-number/index.jsp }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/liferay-portal/server/default/deploy/orbeon/xforms-jsp/guess-t
he-number/index.jsp
  altDD: null
  lastDeployed: 1199865637937
  lastModified: 1199865637937
  mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:service=EJB3,module=CalculatorWSApplication.jar
  State: FAILED
  Reason: java.lang.NoClassDefFoundError: org/hibernate/SessionFactory

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:service=EJB3,module=CalculatorWSApplication.jar
  State: FAILED
  Reason: java.lang.NoClassDefFoundError: org/hibernate/SessionFactory


08:01:12,727 INFO  [JARDeployer] Loading native library: D:\liferay-portal\serve
r\default\tmp\native\ops\opensign\plugins\MicrosoftCryptoApi_0_3.dll
path.jpg
orbeon_exception.JPG
orbeon_exception_2.JPG
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Alessandro Vernet
Administrator
Fran555 wrote
I have deployment path setup correctly, and I can deploy portlet I created. For LifeRay-Jboss Bundle, the lifeRay deployment directory needs to set same as the Jboss deploy directory.

However, while other portlets are working fine, I still could not deploy Orbeon.war to LifeRay JBoss Bundle as error shown below. If possible, would you mind testing Orbeon deployment on LifeRay JBoss Bundle?
1. What bundle have you been using exactly?
2. Can you confirm that you are not having this issue when using the "Tomcat 5.5 for JDK 5.0" bundle?

For reference, bundles available for download are listed on:
http://www.liferay.com/web/guest/downloads/portal

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Bryan Cheung
In reply to this post by Alessandro Vernet
Hi Fran,

I'm glad you're interested in using Liferay for your portal / portlet container.

A few things I hope I can clear up.


Fran555 wrote
\liferay-portal-jboss-tomcat-4.2-4.3.5\webapps = liferay's deploy directory ?
\liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy = jboss deploy directory ?

Fran, I can see why this was confusing, but the above is not correct. You should be using \server\default\deploy. But let me explain from the beginning.


First, there are two directories involved in hot deployment:

1. Source directory. This is the directory the app server or servlet container will monitor for new portlets to deploy. You should copy the .war you are deploying to this directory for auto hot-deploy. Alternatively you can use the GUI to deploy the .war, but I believe this effectively copies what you upload to the source directory.

I believe the default source directory for all Liferay instances is /home/liferay/deploy. Depending on your OS, this might be ~/liferay/deploy or C:\home\liferay\deploy, etc.


2. Destination directory. This is the directory the app server or servlet container will deploy to.  This is different for every app server / Tomcat:

1. Alex is using Tomcat, which should be putting deployed portlets in {tomcat-home}/webapps
2. Fran, you are using JBoss, which by default should be putting deployed portlets in /server/default/deploy.


Fran555 wrote
When I use liferay's admin gui tools to deploy the orbeon.war file, it's deployed at \liferay-portal-jboss-tomcat-4.2-4.3.5\webapps instead of \liferay-portal-jboss-tomcat-4.2-4.3.5\server\default\deploy without error and shown as successful.

However, I could not find the Orbeon from "Add Content" list, which mean I have no way to add the Orbeon portlet and test.
Fran, this happened because the GUI has the destination directory set to ../webapps by default. if you use the GUI, be sure to configure your destination directory to be
{your JBoss home dir}\server\default\deploy

There should be an option for changing the desination directory in the interface.


Relative Paths Errors

Now, another caveat about the relative path.
If the destination directory is configured as ../webapps (in Tomcat) or ../server/default/deploy (in JBoss), this is making the assumption that you started up your server from within the {app server home}/bin directory. Hence, the ".." (to get you out of /bin) and then the destination directory.

Now if you are using a script, or if you did something like ./bin/startup.sh from the app server home directory, this is not going to work correctly. So the solution is either to run the app server (or Tomcat) from the bin directory, or to set an absolute path for the destination directory.


Liferay Documentation

For more information, please see:
http://wiki.liferay.com/index.php/Hot_Deploy_Troubleshooting


Now Fran, if you get the portlet to deploy to /server/default/deploy and you are still getting errors, then this is some other issue, which will require further troubleshooting -- and it seems this may be what you were getting in the first place before exploring the possibility of an incorrect hot deployment.
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Alessandro Vernet
Administrator
Bryan,

Bryan Cheung wrote
I'm glad you're interested in using Liferay for your portal / portlet container.

A few things I hope I can clear up.
[...]
Thank you for the clarifications. I am sure that others here (including those who will find your message searching through the archive) will also find this helpful.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
In reply to this post by Alessandro Vernet
Thanks very much for both Bryan and Alex. I have fixed the deployment issues by using the new Liferay-Jboss bundle liferay-portal-jboss-tomcat-4.2-4.3.6 release, which by default define the deployment path correctly for Jboss.

Now, I can easily depoy new portlets without problems. However, Orbeon portlet is still not working.

Here are whta I did for the Orbeon portlet issues:

1) Using liferay-portal-tomcat-5.5-jdk5-4.3.6, I can successfully deploy orbeon.war to liferay. I can also find the orbeon portlet from the add content menu. However, when portlet is added, it did not work and throws error below:

An unexpected system error occurred.

Invocation of method 'processColumn' in class com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor threw exception org.apache.jasper.JasperException @ com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil[5,36]

2) then I try on liferay-portal-jboss-tomcat-4.2-4.3.6, and it's worse. Orbeon.war can not be deployed successfuly to liferay, and throwing a lot of errors as shown in previous post.


Pls test it yourself if possible as I have done everything I could. :(


Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Alessandro Vernet
Administrator
Fran555 wrote
Thanks very much for both Bryan and Alex. I have fixed the deployment issues by using the new Liferay-Jboss bundle liferay-portal-jboss-tomcat-4.2-4.3.6 release, which by default define the deployment path correctly for Jboss.

Now, I can easily depoy new portlets without problems. However, Orbeon portlet is still not working.
[...]
Pls test it yourself if possible as I have done everything I could. :(
I tested this and did indeed hit a problem. After deploying Orbeon Forms, I am getting an NPE when accessing Liferay. I don't see any error during the deployment, and the NPE does not involve any Orbeon code, so I am not sure how to take it from here. I have posted a message on the Liferay forum and will see what feedback I get there.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Alessandro Vernet
Administrator
On Jan 14, 2008 5:49 PM, Alessandro Vernet <[hidden email]> wrote:
> I tested this and did indeed hit a problem. After deploying Orbeon Forms, I
> am getting an NPE when accessing Liferay. I don't see any error during the
> deployment, and the NPE does not involve any Orbeon code, so I am not sure
> how to take it from here. I have posted a message on the Liferay forum and
> will see what feedback I get there.

I have also created this bug to track this issue:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=308261&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Can not deploy OPS to the latest ver of liferay-Jboss bundle

Fran555
Thanks so much, Alex. Wait for your update.