| Author |
Message |
|
|
Hello
I want to create a portlet that has several pages: InsertEmployee.jspx, DisplayEmployees.jspx, Menu.jspx.
After inserting employee succesfully, i am back to Menu and choose DisplayEmployees.jspx
In the DisplayEmployee's backing bean i have a method:
public List<Employee> getAllEmployees() throws SystemException {
int tottal = EmployeeLocalServiceUtil.getEmployeesCount();
return EmployeeLocalServiceUtil.getEmployees(0, tottal);
}
In a session the getAllemployees doesn't work consistently. Sometimes it shows the new record, somtimes it doesn't. I am really confused!
I am using Icefaces 1.8 and Liferay 6
Any help is appreciated.
Thank you.
|
 |
|
|
I followed the trace and looked at com.icesoft.util.ServerUtility.java
The code that causes the error is:
if (_serverInfo.startsWith("jetty")) {
136 _servletContextPath =
137 _path.substring(
138 _path.indexOf("__") + 2,
139 _path.lastIndexOf("__"));
140 }
Can anyone helps me out of this?
|
 |
|
|
Hello,
Iam tring to deploy push server with Liferay 6 bundle with Jetty.
I got the following error:
2010-08-26 04:56:20.934:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2010-08-26 04:56:21.043:INFO::jetty-6.1.24
Aug 26, 2010 4:56:21 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Initializing hot deploy manager 12468716
04:56:22,400 INFO [PushServlet:86]
ICEsoft Technologies, Inc.
ICEfaces Push Server 1.8.2
Build number: 7
Revision: 19321
04:56:22,416 INFO [EnvironmentAdaptingServlet:44] Adapting to Jetty ARP environ
ment
04:56:22,478 ERROR [PushServlet:131] An error occurred while initializing the Pu
sh Server!
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at com.icesoft.util.ServerUtility.getServletContextPath(ServerUtility.ja
va:136)
at com.icesoft.net.messaging.MessageServiceClient.setBaseMessageProperti
es(MessageServiceClient.java:1286)
at com.icesoft.net.messaging.MessageServiceClient.<init>(MessageServiceC
lient.java:112)
at com.icesoft.net.messaging.MessageServiceClient.<init>(MessageServiceC
lient.java:129)
at org.icefaces.push.server.PushServlet.init(PushServlet.java:95)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.jav
a:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:26
3)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHan
dlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
Aug 26, 2010 4:56:22 AM com.sun.faces.config.ConfigureListener contextInitialize
d
Anyone helps me out of this error?
|
 |
|
|
Hello deryk,
I created 2 portlets based on Icefaces push technology. Each portlet is on a different WAR file.
If i deploy only one WAR file. The portlet works well. If i deploy 2 WARs file in Liferay the portlets will not work properly(ajax push not working) althrough i already deployed Push Server Comunity server.
To test my assumtion. I packed 2 portlets in only one WAR file and they work.
My server is Tomcat 6 and already deployed in NIO mode.
It seems that i have to deploy AHS to make 2 WAR files work
Could you tell me where i am wrong here?
Thanks you
|
 |
|
|
Ok. I mad it.
Just a small issue still exsiting:
Sometime the drop target not able to receive the drag's item(not even fire any effect). If i refresh the page, the issue will be washed away.
Anybody knows why?
|
 |
|
|
I am interested in that question.
Any one succeed in doing this?
|
 |
|
|
After adding some jar, the location portlet now works but it doesn't work when i deploy chat portlet.
It seems push server doesn't work althrough i already deployed it.
Any ideas?
|
 |
|
|
|
Yes. Push server only needed when your web server has at least two web applications both use icepush.
|
 |
|
|
Hi guys,
I deployed chat and location portlet examples in liferay 5.2 and they works fine.
Now it is not working properly if i move them to the liferay 6.
The autocomplet function still working but the detail and gmap function don't work.
Anyone encountered this problem? and how to sloved this?
|
 |
|
|
Hi,
I ran the shopping cart on the local computer successfully but there was an issue and i don't know how to fix it:
The highlight effect when the user drag a product from the product list to the shopping cart not working as the demo on the website(the effect only disappear when the user drop the product to the shopping cart)
Any solution to fix it?
|
 |
|
|
Hi,
I ran the shopping cart on the local computer successfully but there was an issue and i don't know how to fix it:
The highlight effect when the user drag a product from the product list to the shopping cart not working as the demo on the website(the effect only disappear when the user drop the product to the shopping cart)
Any solution to fix it?
|
 |
|
|