Forums de discussion

Liferay and Jetty6

thumbnail
Christine Karman, modifié il y a 14 années.

Liferay and Jetty6

New Member Publications: 15 Date d'inscription: 14/07/09 Publications récentes
I have jetty6.1.19 and I want to install Liferay using jetty. There's a number of things in the installation manual that I don't understand.

First, the manual says:
Edit $JETTY_HOME/extra/etc/start-plus.config.
$(jetty.home)/lib/ext/
$(jetty.home)/lib/ext/*

but I don't have a $JETTY_HOME/extra/etc/start-plus.config file. I have created that file but somehow I doubt that that will work.

The manual refers to $(jetty.home)/ext/ at some point, I assume that should be $(jetty.home)/lib/ext/

Then, I need to replace commons-logging.jar but my default installation of jetty doesn't seem to have that file. I just put commons-logging.jar in the directory that is specified.

In jetty.xml I have added the lines as specified in the manual, replacing mysql by postgresql. I have downloaded the psql driver jar.

Third, when I use the start.sh file that I created, I get
java.lang.NullPointerException
at java.io.File.<init>(File.java:239)
at org.mortbay.start.Main.init(Main.java:465)
at org.mortbay.start.Main.start(Main.java:439)
at org.mortbay.start.Main.main(Main.java:119)

How do I install Liferay in Jetty6?
thumbnail
Christine Karman, modifié il y a 14 années.

RE: Liferay and Jetty6

New Member Publications: 15 Date d'inscription: 14/07/09 Publications récentes
I have made some progress. I have downloaded all JOTM jar files and put them in lib/ext. However, I get this error when I start Jetty, and Jetty doesn't start:

2009-07-16 12:42:17.858::WARN: EXCEPTION
java.lang.ClassNotFoundException: org.mortbay.jetty.plus.JotmService
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:224)
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:572)
at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:523)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
G V G, modifié il y a 14 années.

RE: Liferay and Jetty6

New Member Publications: 13 Date d'inscription: 22/10/09 Publications récentes
Did you manage to install it on Jetty cause I'm facing somehow the same problem!

Thanks
thumbnail
Jonas Yuan, modifié il y a 14 années.

RE: Liferay and Jetty6

Liferay Master Publications: 993 Date d'inscription: 27/04/07 Publications récentes
Does the default bundle (Jetty 6.1.14) work well?

http://sourceforge.net/projects/lportal/files/Liferay%20Portal/liferay-portal-jetty-5.2.3.zip

Thanks

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
G V G, modifié il y a 14 années.

RE: Liferay and Jetty6

New Member Publications: 13 Date d'inscription: 22/10/09 Publications récentes
the jetty bundle works fine but doesn't contain a connection to a postgresql server in order to find out the exact settings! JOTM becomes an issue when I follow the Installation manual procedure to establish a postgresql connection.

Thanks
G V G, modifié il y a 14 années.

RE: Liferay and Jetty6

New Member Publications: 13 Date d'inscription: 22/10/09 Publications récentes
when I enter the following settings as described in the documentation in the jetty.xml file:

-------------
<Call name="addService">
<Arg>
<New class="org.mortbay.jetty.plus.JotmService">
<Set name="Name">TransactionMgr</Set>
<Call name="addDataSource">
<Arg>jdbc/LiferayPool</Arg>
<Arg>
<New class="org.enhydra.jdbc.standard.StandardXAData-Source">
<Set name="DriverName">org.postgresql.Driver</Set>
<Set name="Url">jdbc:postgresql://localhost:5432/lportal</Set>
<Set name="liferay"></Set>
<Set name="liferay"></Set>
</New>
</Arg>
<Arg>
<New class="org.enhydra.jdbc.pool.StandardXAPoolData-Source">
<Arg type="Integer">4</Arg>
<Set name="MinSize">4</Set>
<Set name="MaxSize">15</Set>
</New>
</Arg>
</Call>
</New>
</Arg>
</Call>

<Call name="addService">
<Arg>
<New class="org.mortbay.jetty.plus.MailService">
<Set name="Name">MailService</Set>
<Set name="JNDI">mail/MailSession</Set>
<Put name="mail.smtp.host">localhost</Put>
</New>
</Arg>
</Call>
----------------------------------------

and try to start jetty, I get the following error:

2009-10-23 19:51:42.107::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2009-10-23 19:51:42.934::WARN: Config error at <Call name="addService"><Arg>
<New class="org.mortbay.jetty.plus.JotmService"><Set name="Name">TransactionMgr</Set><Call name="addDataSource"><Arg>jdbc/LiferayPool</Arg><Arg>
<New class="org.enhydra.jdbc.standard.StandardXAData-Source"><Set name="DriverName">org.postgresql.Driver</Set><Set name="Url">jdbc:postgresql://localhost:5432/lportal</Set><Set name="liferay"/><Set name="liferay"/></New>
</Arg><Arg>
<New class="org.enhydra.jdbc.pool.StandardXAPoolData-Source"><Arg type="Integer">4</Arg><Set name="MinSize">4</Set><Set name="MaxSize">15</Set></New>
</Arg></Call></New>
</Arg></Call>
2009-10-23 19:51:42.934::WARN: EXCEPTION
java.lang.ClassNotFoundException: org.mortbay.jetty.plus.JotmService
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:224)
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:572)
at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:523)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252)
at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:523)
at org.mortbay.start.Main.main(Main.java:119)
2009-10-23 19:51:42.945::INFO: Shutdown hook executing
2009-10-23 19:51:42.945::INFO: Shutdown hook complete
thumbnail
Lisa Simpson, modifié il y a 14 années.

RE: Liferay and Jetty6

Liferay Legend Publications: 2034 Date d'inscription: 05/03/09 Publications récentes
None of the bundles have a particular database set other than the default text-thingy (Hypersonic) that Liferay uses by default.

This page might help you out

I found this on google when I search for "jetty postgresql jdbc"


<Call name="addConnectionPoolDataSource">
<Arg>jdbc/mydatabase</Arg>
<Arg>
<New class="org.postgresql.jdbc3.Jdbc3ConnectionPool">
<Set name="DataSourceName">Database on localhost</Set>
<Set name="ServerName">localhost</Set>
<Set name="DatabaseName">database</Set>
<Set name="PortNumber">5432</Set>
<Set name="User">postgres</Set>
<Set name="Password">password</Set>
</New>
</Arg>
<!-- configure the pool: -->
<Set name="user">postgress</Set>
<Set name="password">password</Set>
<Set name="minSize">1</Set>
<Set name="maxSize">5</Set>
</Call>