Thread Count increases with OFBiz deployed on JBoss Server
Hi, I have been observing that number of threads continue to keep on increasing when OFBiz is deployed on JBoss. When given a specific load through JMeter, the application crashes after some number of hours. Is this due to the reason that threads go into sleep state as per the code written in GenericXAResources.java file? public void run() { try { timeout = null; if (timeout != null) { // sleep until the transaction times out sleep(timeout.intValue() * 1000); Why is the thread put to sleep in this case? Where as when OFBiz is deployed on tomcat, the thread count does not rise exponentially... Is there any other cause of these? Thanks & Regards, Neha Mehta Innovation Group - L&T Infotech | Mumbai Contact : 02267954324 [cid:image002.jpg@01CAE2DB.78A895F0]<http://www.lntinfotech.com/> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Debugging ofbiz with JBoss in eclipse gyanemede
Hi, I am trying to debug ofbiz with jboss server in eclipse gyanemede. I get an exception trace as follows. I am not able to find out the reason for this. ERROR [[/accounting]] Exception starting filter ContextFilter java.lang.NullPointerException at org.ofbiz.base.util.FileUtil.getFile(FileUtil.java:57) at org.ofbiz.base.util.FileUtil.getFile(FileUtil.java:53) at org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:124) at org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:90) at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:188) at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65) at org.ofbiz.base.container.ContainerLoader.loadContainers(ContainerLoader.java:203) at org.ofbiz.webapp.control.ContextFilter.getContainers(ContextFilter.java:415) at org.ofbiz.webapp.control.ContextFilter.init(ContextFilter.java:100) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) ERROR [StandardContext] Error filterStart 12:20:04,687 ERROR [StandardContext] Context [/accounting] startup failed due to previous errors 12:20:04,718 WARN [ServiceController] Problem starting service jboss.web.deployment:war=accounting.war,id=1025421308 org.jboss.deployment.DeploymentException: URL file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ deployment failed at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379) at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) at org.jboss.web.WebModule.startModule(WebModule.java:83) ERROR [MainDeployer] Could not start deployment: file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ org.jboss.deployment.DeploymentException: URL file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ deployment failed at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379) at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) -- Incompletely deployed packages --- org.jboss.deployment.deploymenti...@3d1eaffc { url=file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Deployment FAILED reason: URL file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ deployment failed state: FAILED watch: file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/WEB-INF/web.xml altDD: null lastDeployed: 1270018195484 lastModified: 1265801791175 mbeans: org.jboss.deployment.deploymenti...@177de7a2 { url=file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/ap.war/ } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Created state: CREATED watch: file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/ap.war/WEB-INF/web.xml altDD: null lastDeployed: 1270018195672 lastModified: 1265801791847 mbeans: org.jboss.deployment.deploymenti...@1ae798e0 { url=file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/ar.war/ } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Created state: CREATED watch: file:/D:/dev/ofbiz_jboss_postgres/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/ar.war/WEB-INF/web.xml altDD: null lastDeployed: 1270018196578 lastModified: 1265801791222 mbeans: Thanks & Regards, Neha Mehta This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Find amount of data synchronized from MCS to POS
Hi, I am trying to synchronize data from MCS(Main central server)to POS (point of sale). I am not able to find out the amount of data getting synchronized from MCS to POS Are there any ways to find out the amount of data synchronized from MCS to POS and vice-versa. Can we use any tools to identify the amount of data synchronized? Thanks & Regards, Neha Mehta Innovation Group - L&T Infotech | Mumbai Contact : 02267954324 [cid:image002.jpg@01CAD029.88DF69E0]<http://www.lntinfotech.com/> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
RE: Profiling using OFBiz
Hi , Thanks a lot for your replies. I have used Your Kit JProfiler for checking memory leaks in the application. I find that Delegator, ModelReader and JobPoller objects hold the maximum place in the memory. But how should I detect memory leak and which OFBiz objects are causing memory leaks?? How should I solve the memory leak probe, if exists??? Kindly help me if there are any documents or steps to perform this. Thanks & Regards, Neha Mehta Innovation Group - L&T Infotech | Mumbai Contact : 02267954324 -Original Message- From: Rodrigo Lima [mailto:acptecnolo...@gmail.com] Sent: Friday, March 12, 2010 8:35 PM To: user@ofbiz.apache.org; Jacques Le Roux Subject: Re: Profiling using OFBiz Hi Neha, Our team had serious problems with memory leaks for 2 main reasons: 1) Lack of knowledge of the correct use of the Entity Manager. 2) In cases of a large number of request. We use the tool kit Your www.yourkit.com/java/profiler/ that helped us Identifying critical points to refactor the source code. 2010/3/12 Jacques Le Roux > Also > http://n4.nabble.com/forum/Search.jtp?local=y&forum=135036&query=profiling > > Jacques > > From: "Jacques Le Roux" > > http://ofbiz.markmail.org/search/profiling > > Jacques > - Original Message - From: Neha Mehta > To: user@ofbiz.apache.org > Sent: Friday, March 12, 2010 2:10 PM > Subject: Profiling using OFBiz > > > > Hi, > > > > I need to check memory leaks, memory profiling and cpu profiling with > OFBiz. > > Can anyone suggest me the best tool for OFBiz profiling. > > > > Can I create core dumps and find cpu usage by OFBiz?? > > > > > > Thanks & Regards, > > Neha Mehta > > > > > > > > > -- > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do not > use or disseminate the information, notify the sender and delete it from > your system. > > __ > > > __ This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Profiling using OFBiz
Hi, I need to check memory leaks, memory profiling and cpu profiling with OFBiz. Can anyone suggest me the best tool for OFBiz profiling... Can I create core dumps and find cpu usage by OFBiz?? Thanks & Regards, Neha Mehta [cid:image002.jpg@01CAC213.80D4D740]<http://www.lntinfotech.com/> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Unable to load balance and replicate session using jboss servers
Hi, I am trying to load balance JBoss servers(jboss 4.2.2) with session replication on windows. I have tried using mod_jk(version 1.2.27) as connector, but unable to connect apache http server(version 2.2.13) to jboss server. I have successfully load balanced jboss servers with mod proxy, but no session replication in this case. Kindly help me to load balance servers using mod_jk as well as replicating session in case of mod proxy. Settings for mod_jk : I have done the following settings in httpd.conf: LoadModule jk_module modules/mod_jk.so Include conf/mod-jk.conf In mod-jk.conf file: JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat –ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /* loadbalancer JkMount status Order deny,allow Deny from all Allow from 127.0.0.1 In workers.properties file: worker.list=loadbalancer,status worker.node1.port=8012 worker.node1.host=172.17.88.53 worker.node1.type=ajp13 worker.node1.lbfactor=1 worker.node1.cachesize=10 worker.node1.redirect=node2 worker.node2.port=8012 worker.node2.host=172.17.88.46 worker.node2.type=ajp13 worker.node2.lbfactor=1 worker.node2.cachesize=10 worker.node2.redirect=node1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2 worker.loadbalancer.sticky_session=1 worker.status.type=status The error that comes in apache server’s log file is : No connection could be made because the target machine actively refused it. - But when I used mod_proxy, I was able to load balance JBoss servers but unable to replicate session. I did the following settings in httpd.conf for load balancing: ProxyRequests On ProxyVia On ProxyPass / balancer://mycluster/ BalancerMember https://172.17.88.46:8444 smax=10 BalancerMember https://172.17.88.53:8444 smax=1 loadfactor=20 -- JBoss settings : In server.xml : In web.xml : added the tag : In jboss-web.xml : added the following cluster configuration : ACCESS SESSION In jboss-service.xml : true I am able to load balance the servers successfully using mod proxy but unable to replicate session. Kindly let me know if I am missing something… -- View this message in context: http://n4.nabble.com/Unable-to-load-balance-and-replicate-session-using-jboss-servers-tp1008578p1008578.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: OFBiz4.0 clustering,session replication, failover and load balancing - Howto
Hi Carsten, Culd you please elaborate upon your statement,"Are you sure you copied over the very same workers.properties (the config for mod_jk) ? " ? I could not understand it well... Here are my configuration files.. workers.properties worker.worker2.port=8006 worker.worker2.host=172.17.88.196 worker.worker2.type=ajp13 worker.worker2.lbfactor=100 worker.worker2.redirect=worker1 worker.worker1.port=8009 worker.worker1.host=172.17.88.52 worker.worker1.type=ajp13 worker.worker1.lbfactor=1 worker.worker1.redirect=worker2 worker.list=worker1, worker2, loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=worker1, worker2 httpd.conf : LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " httpd-vhosts.conf --- i have used virtual hosting for switching of application between secured and non-secured ports. ServerName 172.17.88.52:80 JkMount /* loadbalancer JkMount /*/control/* loadbalancer On windows, everything is working great along with session replication. If i have OFBiz code base on linux servers and APache Http Server on windows, even then all works fine But if i have APache http server on linux, it does not connect to OFBiz server. I am not able to find the problem . Please help me out, i am stuck up here... Thanks & Regards, Neha Mehta __
Re: OFBiz4.0 clustering,session replication, failover and load balancing - Howto
Hi, I have successfully load balanced OFBiz on Windows XP, but i am facing problem, when Apache http Server is on Linux machine. I feel there is problem with mod_jk.so connectivity. Could you please let me know, is mod_jk.so platform dependent?? Will the same mod.jk.so that i used for Windows work on Linux too?? Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Jacques Le Roux 11/12/2009 04:05 AM Please respond to ; Please respond to Jacques Le Roux To cc Subject Re: OFBiz4.0 clustering,session replication, failover and load balancing - Howto Hi Carsten, Keep up the good work , I have added a link from the FAQ (Production section) Thanks Jacques From: "Carsten Schinzer" I've added Vignesh's short guide here: http://docs.ofbiz.org/display/OFBIZ/Physical+Architecture+patterns+for+OFBiz Since that's the place I think it may belong. Alternatively (especially if people think this should be a separate HOWTO guide), we could add this as a separate document and add a reference to it on the abovementioned doc. let me know Regards Carsten 2009/11/11 > Chris, > > I haven't tried load balancing with external Tomcat server but I think > same will be work with trunk also. > > > On Wed, Nov 11, 2009 at 2:04 PM, Christopher Snow < > sno...@snowconsulting.co.uk> wrote: > > > Hi Anil, > > > > Do Vignesh's instructions also work for trunk? If not, is there any > > documentation on how to do this in trunk? > > > > Many thanks, > > > > Chris > > > > > > > > Anil Soni wrote: > > > >> Vignesh, same thing can also be done on embedded Tomcat also, we've > >> successfully implemented this on trunk. > >> > >> > >> Thanks & Regards, > >> Anil Soni > >> anil.s...@lntinfotech.com > >> Tel : 91-22-6795 4324 > >> Mobile : 9930302283 > >> > >> __ > >> > >> > > > > > > > -- > Anil Soni > +91-9930302283cell > -- Best Carsten Schinzer Waisenhausstr. 53a 80637 München Germany __ __
Load Balacing two OFBiz servers using Apache Http server
Hi, When i shut down first server and browser session is continued by the second server, an exception comes on the second server which is as below : 2009-10-29 12:06:49,971 (pool-2-thread-6) [ DeltaManager.java:1329:ERROR] Manager [/ordermgr]: Unable to receive message through TCP channel java.io.InvalidClassException: org.ofbiz.order.shoppingcart.ShoppingCart; local class incompatible: stream classdesc serialVersionUID = 326289553356146708, local class serialVersionUID = -202274068516513625 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at javolution.util.FastMap.readObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:361) at org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:255) at org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:619) at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363) at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320) at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083) at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880) at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241) at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I am not able to get the reason for the exception. Kindly help me to get the solution. Thanks & Regards, Neha Mehta __
Re: Unable to start Lambda Probe
Hi, I am feeling guilty of this... Actually this was intended for someone else, and sent to the community by mistake... Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Divesh Dutta 10/29/2009 02:39 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Unable to start Lambda Probe Wah Laddooo... Fokut ke laddo mil rahe ho to jarur khana chahenge OFBiz community ke log. Pehli bar koi OFBiz users ko ladooo offer kar raha hai. ;-) Nice to see Hindi in OFBiz user mailing list. Thanks -- Divesh Dutta Team Lead Enterprise Software Development ApacheCon US 2009 Gold Sponsor http://us.apachecon.com/c/acus2009/sponsors/sponsors neha.me...@lntinfotech.com wrote: > to hum kya karen.. laddooo baaten ?? > > Thanks & Regards, > Neha Mehta > Software Engineer (A-1-1) > Larsen & Toubro Infotech Ltd. > Cell: +91 97694 72267 > Email-id: neha.me...@lntinfotech.com > EL-200, TTC Electronic Zone, > Shil Mahape Road, > Navi Mumbai, 400710 > T: +91 022 67954324 > India +0530 UTC/GMT > > ** > The most beautiful thing is to see a person smiling… > And even more beautiful is knowing that you are the reason behind it!!! > Be a reason for others to smile > HAVE A NICE DAY AHEAD.. > ** > > > > > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > > > richa.mit...@lntinfotech.com > 10/29/2009 02:14 PM > Please respond to > user@ofbiz.apache.org > > > To > user@ofbiz.apache.org > cc > > Subject > Unable to start Lambda Probe > > > > > > > I deployed Lambda probe as a component in ofbiz application. > I used this link: http://bizlift.com/ofbiz/lambda_probe_for_ofbiz.html > When I start the ofbiz application following exception comes: > Cannot find class [org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean] for > bean with name 'userDetailsService' defined in ServletContext resource > [/WEB-INF/spring-root-acegi.xml]; > java.lang.ClassNotFoundException: > org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean > > > > Thanks > Richa Mittal > > > __ > > __ > > > __ > __ __
Re: Unable to start Lambda Probe
Hi, I am really really sorry for the mail... This was done by mistake.. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. richa.mit...@lntinfotech.com 10/29/2009 02:14 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Unable to start Lambda Probe I deployed Lambda probe as a component in ofbiz application. I used this link: http://bizlift.com/ofbiz/lambda_probe_for_ofbiz.html When I start the ofbiz application following exception comes: Cannot find class [org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/spring-root-acegi.xml]; java.lang.ClassNotFoundException: org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean Thanks Richa Mittal __ __ __
Re: Unable to start Lambda Probe
to hum kya karen.. laddooo baaten ?? Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. richa.mit...@lntinfotech.com 10/29/2009 02:14 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Unable to start Lambda Probe I deployed Lambda probe as a component in ofbiz application. I used this link: http://bizlift.com/ofbiz/lambda_probe_for_ofbiz.html When I start the ofbiz application following exception comes: Cannot find class [org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/spring-root-acegi.xml]; java.lang.ClassNotFoundException: org.jstripe.tomcat.probe.beans.TomcatUsersDaoBean Thanks Richa Mittal __ __ __
Load Balacing two OFBiz servers using Apache Http server
Hi, I am doing load balancing using two OFBiz servers in session replication mode with Apache HTTP Server. I have also incorporated the node fail over risk i.e. when one node fails, load gets transferred to the second node. The servers run properly in load balanced mode, If i shut down one server in the middle of browser session, the other OFBiz server continues the browser session without any problem. User Login also persistes in the session, so the second server does not ask for login again. But when I go for placing the order, and close the server in middle of the check out process, rest all the details persist but cart comes out to be empty , and if there is some promotional item present in the cart, that promotional item persists inside the cart when second server continues browser session but all the other items get removed. I am not able to understand the problem. The second server maintains the same browser session as was with the first server, it persists the user login details but cart details are not found with the second server. Thanks & Regards, Neha Mehta Software Engineer __
Re: OFBiz clustering-session replication
Hi, I have successfully performed load balancing in OFBiz using Apache Http server.I have two OFBiz servers, server1 and server2 running on two different machines in load balancing mode with session replication. My ofbiz-containers.xml looks like: %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" .*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt; My workers.properties is: worker.list=server1, server2, loadbalancer worker.server1.port=8009 worker.server1.host=172.17.88.46 worker.server1.type=ajp13 worker.server1.lbfactor=100 worker.server1.redirect=server2 worker.server2.port=8010 worker.server2.host=172.17.88.52 worker.server2.type=ajp13 worker.server2.lbfactor=100 worker.server2.redirect=server1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=server1, server2 I have added settings to cover node fail over i.e. if server1 fails, server2 will continue the client's session, without asking client to relogin into the application. Everything works fine but when I add items into the cart using ordermgr -> order entry or ecommerce application , and shut down server1 , the server2 continues the client's session(session is shared with server2 using cookies), but the cart retains only the promotional items, and if there is no promotional item, cart comes out to be empty. Could you please tell me, how the cart is stored inside the application? Is it inside the user's session or in request attribute? Is there any other reason for the same...? Kindly help me out. Thanks & Regards, Neha Mehta __
OFBiz clustering-session replication
Hi, I am clustering OFBiz using Apache Http Server.I have load balanced two nodes currently.Everything is working fine for sticky session state of tomcat. My requirement is to cluster OFBiz using session replication. For this i have uncommented the following code in ofbiz-containers.xml .*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt; In mcast-bind-addr i have given the IP address of OFBiz host machine. Also in But i am not able to get session replication running on my load balanced cluster. I also get the following message in OFBiz logs: This operation will timeout if no session state has been received within 60 sec. I am not able to understand what is missing in my settings.Kindly help me out. Thanks & Regards, Neha Mehta __
Re: Load Balancing in OFbiz
Hi, Thanx a lot for the help.I have been able to load balance multiple OFBiz servers using Apache Httpd Server and mod_jk. But it is working with session stickiness. Can anybody help me in running load balanced servers in session replication mode. Thanks & Regards, Neha Mehta __
Re: Load Balancing in OFbiz
Hi, Thanx for your reply, i used mod_proxy but was completely unable to conenct Apache Server with OFBiz. So i switched to mod_jk to get an experience of load balncing first and then switch to mod_proxy again. Could you please provide me with an appropriate help that could lead me to get OFBiz load balnced using mod_proxy Thanks & Regards, Neha Mehta Shi Jinghai 09/29/2009 02:32 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Load Balancing in OFbiz If your Apache is 2.2.x, you should use mod_proxy rather than mod_jk. 在 2009-09-29二的 14:28 +0530,neha.me...@lntinfotech.com写道: > Hi, > > I need to load balance OFBiz among multiple servers. > For this i have used Apache Http server in front of OFBiz. I have done the > necessary changes in apache http server: > 1. In httpd.conf : > LoadModule jk_module modules/mod_jk.so >JkWorkersFile conf/workers.properties >JkShmFile logs/mod_jk.shm >JkLogFile logs/mod_jk.log >JkLogLevelinfo >JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " >JkMount /* worker1 > 2. In workers.properties : > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=172.17.88.52 > worker.worker1.port=8009 > > The server is listening on port 80. > > On OFBiz side, i have set jvm route in ofbiz-containers.xml : > "org.ofbiz.catalina.container.CatalinaContainer"> > > > > > > > > > > > > > > > OFBiz' embedded tomcat runs ajp on port 8009. > > I am trying to access the OFBiz application using : > http://172.17.88.52/ecommerce/control/main > I am not able to get the required page. > Can you please let me know the step i am missing... > > > > Thanks & Regards, > Neha Mehta > > > > > Brett Palmer > 09/22/2009 03:01 PM > Please respond to > user@ofbiz.apache.org > > > To > user@ofbiz.apache.org > cc > > Subject > Re: Load Balancing in OFbiz > > > > > > > Neha, > > Here is a configuration we use to do load balancing in ofbiz. Others may > do > something else. > > 1. One machine is running an Apache Web server with mod_jk setup to > communicate with different instances of ofbiz. The mod_jk is setup to > load > balance between the different ofbiz instances. Here is a document that > helps you get setup: > > http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html > > > 2. Then we start multiple boxes running ofbiz server - all pointing to the > same database. The servers are setup to communicate using mod_jk's AJP > protocol. You need to set the "jvm-route" in the > framework/base/config/ofbiz-containers.xml file to insure the load > balancer > maintains sessions between requests. Here is a snippet of that > configuration file. > > class="org.ofbiz.catalina.container.CatalinaContainer"> > > > > > > > > > > > > ** > > . > > > 3. One large box is running our database server. > > > We've been please with how well the Apache load balancing module works > with > ofbiz. > > > Brett > > On Tue, Sep 22, 2009 at 2:42 AM, wrote: > > > Hi, > > > > I want to load balance OFBiz requests using multiple servers(server > > cluster). Do i need to use multiple tomcat instances for that?? Is there > > any other efficient way to go for the same.. > > > > I need to set up session replication using embedded tomcat but i am not > > able to get any concrete steps to go ahead. Do i need multiple tomcat > > instances running on different servers respective to same OFBiz code > base > > ?? or different OFBiz deployed on different application servers? > > > > > > Thanks & Regards, > > Neha Mehta > > > > > > __ > > > __ > > > __ __ __
Re: Load Balancing in OFbiz
Hi, I need to load balance OFBiz among multiple servers. For this i have used Apache Http server in front of OFBiz. I have done the necessary changes in apache http server: 1. In httpd.conf : LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkMount /* worker1 2. In workers.properties : worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=172.17.88.52 worker.worker1.port=8009 The server is listening on port 80. On OFBiz side, i have set jvm route in ofbiz-containers.xml : OFBiz' embedded tomcat runs ajp on port 8009. I am trying to access the OFBiz application using : http://172.17.88.52/ecommerce/control/main I am not able to get the required page. Can you please let me know the step i am missing... Thanks & Regards, Neha Mehta Brett Palmer 09/22/2009 03:01 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Load Balancing in OFbiz Neha, Here is a configuration we use to do load balancing in ofbiz. Others may do something else. 1. One machine is running an Apache Web server with mod_jk setup to communicate with different instances of ofbiz. The mod_jk is setup to load balance between the different ofbiz instances. Here is a document that helps you get setup: http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html 2. Then we start multiple boxes running ofbiz server - all pointing to the same database. The servers are setup to communicate using mod_jk's AJP protocol. You need to set the "jvm-route" in the framework/base/config/ofbiz-containers.xml file to insure the load balancer maintains sessions between requests. Here is a snippet of that configuration file. ** . 3. One large box is running our database server. We've been please with how well the Apache load balancing module works with ofbiz. Brett On Tue, Sep 22, 2009 at 2:42 AM, wrote: > Hi, > > I want to load balance OFBiz requests using multiple servers(server > cluster). Do i need to use multiple tomcat instances for that?? Is there > any other efficient way to go for the same.. > > I need to set up session replication using embedded tomcat but i am not > able to get any concrete steps to go ahead. Do i need multiple tomcat > instances running on different servers respective to same OFBiz code base > ?? or different OFBiz deployed on different application servers? > > > Thanks & Regards, > Neha Mehta > > > __ __ __
Re: Load Balancing in OFbiz
Hi Brett, Thanx for your generosity. I have to load balance OFBiz on multiple servers. For this do i need to have replica of my OFBiz code running on multiple servers and run embedded OFBiz tomcat on all these servers??? Or do i need to have multiple tomcat instances on a single server?? ALso please let me know, is it better to use embedded tomcat or external tomcat for load balancing ?? All the forums that i have read talk about running multiple tomcat instances on same server.. I do not understand the reason behind this.. Kindly help me out. Thanks & Regards, Neha Mehta __
Load Balancing in OFbiz
Hi, I want to load balance OFBiz requests using multiple servers(server cluster). Do i need to use multiple tomcat instances for that?? Is there any other efficient way to go for the same.. I need to set up session replication using embedded tomcat but i am not able to get any concrete steps to go ahead. Do i need multiple tomcat instances running on different servers respective to same OFBiz code base ?? or different OFBiz deployed on different application servers? Thanks & Regards, Neha Mehta __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi Raj, I am sorry for bothering you so much ,could you please tell me whether i need to configure OFBiz' internal tomcat for mod_jk? Actually i am very new to OFBiz and am not getting a clear idea of implementing this.. Raj Saini 09/16/2009 03:31 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Hosting OFBiz on a single server with multiple domain names, without cloning components Hi Neha, With the Location, you need to pass the request to the AJP and tomcat default AJP port is 8009. And the URL in your browser should not include port as port 80 is default. Thanks, Raj neha.me...@lntinfotech.com wrote: > Hi, > > Thanx a lot to all for your replies.They helped me a lot. > I have successfully configured Apache Http Server and is able to view > OFbiz directories on the browser, once i put apache's url on browser. > But i am still not able to access ecommerce component. > > > > # General setup for the virtual host. > ServerName 172.17.88.53:80 // This > is my machine's IP address > DocumentRoot "D:\dev\Latest-OFBiz-20aug\" // > i can view this directory list on browser > ServerAdmin neha.me...@lntinfotech.com > ProxyRequests Off > ProxyPreserveHost On > // Is it > the correct way to call OFBiz' components from apache?? >ProxyPass http://localhost:8088/ecommerce > > > > > > Thanks & Regards, > Neha Mehta > > > __ > __ __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi, Thanx a lot to all for your replies.They helped me a lot. I have successfully configured Apache Http Server and is able to view OFbiz directories on the browser, once i put apache's url on browser. But i am still not able to access ecommerce component. # General setup for the virtual host. ServerName 172.17.88.53:80 // This is my machine's IP address DocumentRoot "D:\dev\Latest-OFBiz-20aug\" // i can view this directory list on browser ServerAdmin neha.me...@lntinfotech.com ProxyRequests Off ProxyPreserveHost On // Is it the correct way to call OFBiz' components from apache?? ProxyPass http://localhost:8088/ecommerce Thanks & Regards, Neha Mehta __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi, I have followed http://docs.ofbiz.org/x/YwU document for implementing the same. I am able to do all the APache settings. I am not able to know how to connect the Apache server to OFBiz. I have added the following code but i still dont know which URL should i write in the browser to access OFBiz components. # General setup for the virtual host. ServerName 172.17.88.53:443 ServerAdmin neha.me...@lntinfotech.com ProxyRequests Off ProxyPreserveHost On ProxyPass ajp://localhost:9009/order/ Kindly let me know, whwther i am going in tha right track... Thanx in advance.. Regards, Neha Mehta Raj Saini 09/14/2009 03:08 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Hosting OFBiz on a single server with multiple domain names, without cloning components Hi Neha, I think you are mixing up few things here: 1. You need to create virtual hosts in Apache Web server (httpd) and not in Apache OFBiz. 2. If your Apache Web server is running on Winodw, Apache modules are .dll files. You can download the binary modules. Try searching on net. Though you can compile from source, I don't think it is easier to do unless you have MS build environment setup. Thanks, Raj neha.me...@lntinfotech.com wrote: > Hi, > > I have created a virtual host in Apache OFBiz server and am trying to > connect AJP proxy to OFBiz. I am not able to generate mod_proxy_ajp.so > file. I know Linux command to generate .so file but i have no clue > regarding its generation in windows. > > In Apache's httpd.conf file, i need to load the following components : > > LoadModule proxy_module modules/mod_proxy.so > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > LoadModule ssl_module modules/mod_ssl.so > > I have downloaded mod_jk-1.2.28-src, but not able to generate above .so > files... > > Kindly help me in this regard. > > Thanks & Regards, > Neha Mehta > . > > > > James McGill > 09/11/2009 08:38 PM > Please respond to > user@ofbiz.apache.org > > > To > user@ofbiz.apache.org > cc > > Subject > Re: Hosting OFBiz on a single server with multiple domain names, without > cloning components > > > > > > > On Fri, Sep 11, 2009 at 2:32 AM, Raj Saini wrote: > >> Hi Neha, >> >> One way is to front your OFBiz with Apache Web server. You can create >> virtual host in Apache web server and then user AJP Proxy to connect to >> > the > >> OFBiz. >> > > If it's a single physical server, mod_rewrite + mod_proxy is usually > more efficient than AJP. > > OFBiz does some of its own URL rewriting for SSL and this will > probably be an issue. The approaches I would try, would all start > with turning off SSL in OFBiz and putting an Apache SSL proxy in front > of everything. > > But if the application needs to be aware of what domain it is serving, > I suspect you need multiple instances of it. I wonder how multiple > instances of OFBiz behave when connected to a single database. I > also wonder if it is more efficient to run a single ofbiz.jar with > applications in multiple contexts, or more efficient to run several > ofbiz.jar which means multiple tomcat instances on several ports. (My > suspicion is the second approach would allow more strict isolation but > would be a memory hog.) > > > __ __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi, I have created a virtual host in Apache OFBiz server and am trying to connect AJP proxy to OFBiz. I am not able to generate mod_proxy_ajp.so file. I know Linux command to generate .so file but i have no clue regarding its generation in windows. In Apache's httpd.conf file, i need to load the following components : LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule ssl_module modules/mod_ssl.so I have downloaded mod_jk-1.2.28-src, but not able to generate above .so files... Kindly help me in this regard. Thanks & Regards, Neha Mehta . James McGill 09/11/2009 08:38 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Hosting OFBiz on a single server with multiple domain names, without cloning components On Fri, Sep 11, 2009 at 2:32 AM, Raj Saini wrote: > Hi Neha, > > One way is to front your OFBiz with Apache Web server. You can create > virtual host in Apache web server and then user AJP Proxy to connect to the > OFBiz. If it's a single physical server, mod_rewrite + mod_proxy is usually more efficient than AJP. OFBiz does some of its own URL rewriting for SSL and this will probably be an issue. The approaches I would try, would all start with turning off SSL in OFBiz and putting an Apache SSL proxy in front of everything. But if the application needs to be aware of what domain it is serving, I suspect you need multiple instances of it. I wonder how multiple instances of OFBiz behave when connected to a single database. I also wonder if it is more efficient to run a single ofbiz.jar with applications in multiple contexts, or more efficient to run several ofbiz.jar which means multiple tomcat instances on several ports. (My suspicion is the second approach would allow more strict isolation but would be a memory hog.) -- James McGill Able Engineering __ __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi Chris, Thanx a lot for the help.If i am not bothering you, could you please brief me about this. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. snowc 09/11/2009 11:39 AM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Hosting OFBiz on a single server with multiple domain names, without cloning components A possible way to achieve this would be putting apache http server in front of ofbiz. Apache http can then be configured to forward traffic from multiple domains to the single ofbiz instance. neha mehta wrote: > > Hi, > > I want to deploy single OFBiz application,hosted on a single application > server but with multiple domain names. > I do not want to clone the components to achieve this.Can you help me in > this regard... > > > > > __ > -- View this message in context: http://www.nabble.com/Hosting-OFBiz-on-a-single-server-with-multiple-domain-names%2C-without-cloning-components-tp25395146p25395573.html Sent from the OFBiz - User mailing list archive at Nabble.com. __ __
Re: Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi Raj, I need to deploy complete complete suite of applications through different domains with single OFBiz instance and on same server. Raj Saini 09/11/2009 11:22 AM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Hosting OFBiz on a single server with multiple domain names, without cloning components Hi Neha, Do you want to deploy the store front (e-commerce) you want to deploy on multiple domain? Or you want to access the complete suite of applications through different domains? Thanks, Raj neha.me...@lntinfotech.com wrote: > Hi, > > I want to deploy single OFBiz application,hosted on a single application > server but with multiple domain names. > I do not want to clone the components to achieve this.Can you help me in > this regard... > > > > > __ > __ __
Hosting OFBiz on a single server with multiple domain names, without cloning components
Hi, I want to deploy single OFBiz application,hosted on a single application server but with multiple domain names. I do not want to clone the components to achieve this.Can you help me in this regard... __
Re: Access OFBiz webservice from external java client
Hi Jacques, I have tried the same but could not get expected output... Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. "Jacques Le Roux" 09/09/2009 01:27 PM Please respond to user@ofbiz.apache.org To cc Subject Re: Access OFBiz webservice from external java client For that you will have to follow http://docs.ofbiz.org/x/oR4 Jacques From: > Hi, > > I am trying to access OFBiz webservice from external java client. > I have successfully accessed OFBiz web service with primitive types as > parameters from external client and vice versa but i am stuck up with > accessing a service having Map or List as arguments... > For this; > > I made an OFBiz service and defined it in services.xml : > > location="org.ofbiz.ExtWebServiceClient.ComplexInputService" > invoke="callWebService"> >web service with complex params > /> > > > > > The web service inside OFBiz is : > > public class ComplexInputService { > >public static Map callWebService(DispatchContext ctx, Map context) { >System.out.println("inside call web service."); >Map result = ServiceUtil.returnSuccess(); >List inputList = (List)context.get("inputList"); >result.put("result", inputList); >System.out.println("service finished.."); >return result; >} > } > > > OFBiz framework restricted the wsdl file from being generated, due to the > fact that the input and output parameters for the service are List. I > modified ModelParam.java > (framework/service/src/org/ofbiz/service/ModelParam.java), to support > complx parameters also.. > > public class ModelParam implements Serializable { > . > . > protected String java2wsdlType() throws WSDLException { >// If statements to support primitive types as arguments to web > service >if (ObjectType.instanceOf(java.lang.Character.class, this.type)) { >return "string"; >} else if (ObjectType.instanceOf(java.lang.String.class, this.type > )) { >return "string"; >} > . > . > . // added more if statements to support Map and List >else if (ObjectType.instanceOf(java.util.AbstractMap.class, this. > type)) { >System.out.println("service takes map as input param..."); >return "anyType"; // i am not getting any idea what to return > so that client can read the wsdl properly >} >else if (ObjectType.instanceOf(java.util.AbstractList.class, this. > type)) { >System.out.println("service takes List as input param..." > ); >return "anyType"; >} > >throw new WSDLException(WSDLException.OTHER_ERROR, "Service cannot > be described with WSDL (" + this.name + " / " + this.type + ")") >} > } > > The wsdl hence generated is : > > > http://schemas.xmlsoap.org/wsdl/"; > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://ofbiz.apache.org/service/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > targetNamespace="http://ofbiz.apache.org/service/";> > > > > > > > > > > > > > type="tns:ComplexInputServicePortType"> > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > encodingS
Re: Access OFBiz webservice from external java client
Hi, I have made modifications in ModelParam.java due to tha fact that supports the java to wsdl conversion of only primitive data types and not complex types like Map or List. If i do not make changes into it, wsdl file does not get generated... Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 97694 72267 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Divesh Dutta 09/09/2009 12:10 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: Access OFBiz webservice from external java client Hi Neha, Please see my comments inline: neha.me...@lntinfotech.com wrote: > Hi, > > I am trying to access OFBiz webservice from external java client. > I have successfully accessed OFBiz web service with primitive types as > parameters from external client and vice versa but i am stuck up with > accessing a service having Map or List as arguments... > For this; > > I made an OFBiz service and defined it in services.xml : > > location="org.ofbiz.ExtWebServiceClient.ComplexInputService" > invoke="callWebService"> > web service with complex params > /> > > > Make below given modification in you service definition: web service with complex params > > The web service inside OFBiz is : > > public class ComplexInputService { > > public static Map callWebService(DispatchContext ctx, Map context) { > System.out.println("inside call web service."); > Map result = ServiceUtil.returnSuccess(); > List inputList = (List)context.get("inputList"); > result.put("result", inputList); > System.out.println("service finished.."); > return result; > } > } > > Make below given modification in your service implementation: public class ComplexInputService { public static Map callWebService(DispatchContext ctx, Map context) { System.out.println("inside call web service."); Map result= FastMap.newInstance(); List outputList= FastList.newInstance(); List inputList= UtilGenerics.checkList(context.get("inputList")); result.put("outputList", inputList); result = ServiceUtil.returnSuccess(); System.out.println("service finished.."); return result; } } > OFBiz framework restricted the wsdl file from being generated, due to the > fact that the input and output parameters for the service are List. I > modified ModelParam.java > (framework/service/src/org/ofbiz/service/ModelParam.java), to support > complx parameters also.. > > public class ModelParam implements Serializable { > . > . >protected String java2wsdlType() throws WSDLException { > // If statements to support primitive types as arguments to web > service > if (ObjectType.instanceOf(java.lang.Character.class, this.type)) { > return "string"; > } else if (ObjectType.instanceOf(java.lang.String.class, this.type > )) { > return "string"; > } > . > . > . // added more if statements to support Map and List > else if (ObjectType.instanceOf(java.util.AbstractMap.class, this. > type)) { > System.out.println("service takes map as input param..."); > return "anyType"; // i am not getting any idea what to return > so that client can read the wsdl properly > } > else if (ObjectType.instanceOf(java.util.AbstractList.class, this. > type)) { > System.out.println("service takes List as input param..." > ); >
Access OFBiz webservice from external java client
rg/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file. org.xml.sax.SAXParseException: Premature end of file. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at MyClient.main(MyClient.java:37) On OFbiz server, i get an exception as: Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: org.xml.sax.SAXException cannot be cast to java.lang.String (org.xml.sax.SAXException cannot be cast to java.lang.String). I am not able to understand how to go ahead... I am stuck up completely... Kindly help me out Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Re:Create WSDL for services using non-primitive data types as arguments
Hi Jacques, I am very new to using Web Services.I also saw the document you had posted on mail archives(Exposing OFBiz service using complex parameters via SOAP) but i could not get any idea related to creating OFBiz service with Map or List as input parameters. I would be thankful to you if i can get any help in this regard. "Jacques Le Roux" 08/31/2009 01:47 PM Please respond to user@ofbiz.apache.org To cc Subject Re: Create WSDL for services using non-primitive data types as arguments Did you have a look into SOAP entries in wiki FAQ ? Jacques From: > Hi, > > OFBiz does not create WSDL file for services having complex type input > parameters(non primitive data types: map,list etc). > Can i modify the XSD of OFBiz to support the same.Is there any other way > to solve the proble. > > > > > Thanks & Regards, > Neha Mehta > Software Engineer (A-1-1) > Larsen & Toubro Infotech Ltd. > > > > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > __ > __ __
Create WSDL for services using non-primitive data types as arguments
Hi, OFBiz does not create WSDL file for services having complex type input parameters(non primitive data types: map,list etc). Can i modify the XSD of OFBiz to support the same.Is there any other way to solve the proble. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 98702 01950 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Re: Cannot open in POS mode
Hi, POS component of OFBiz has login security for which the number pad is highlighted. Enter click 1and press enter(u have entered username) and then again press 1 and then enter(you have entered the password). After this you will be able to see the actual POS screen. 1,1 are the usename and password to open POS screen.Similarly you can login using 2,2 as username and password. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 98702 01950 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Trying to access OFBiz web service through an external java client.
Hi, I am trying to access OFBiz web service through an external java client. I have created a service in OFBiz with parameter export="true". I get the wsdl file generated successfully. But when I try to access the service using client, I get the following exception: Aug 17, 2009 12:47:52 PM org.apache.axis.utils.JavaUtils isAttachmentSupported WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: test at org.apache.axis.client.Service.initService(Service.java:250) at org.apache.axis.client.Service.(Service.java:165) at org.apache.axis.client.ServiceFactory.createService( ServiceFactory.java:198) at NewClient.main(NewClient.java:26) My client class code is: public class Client { public static void main(String args[]){ String wsdlURL = "http://localhost:8088/webtools/control/SOAPService/test?wsdl";; String namespace = ""; String serviceName = "test"; QName serviceQN = new QName(namespace, serviceName); ServiceFactory serviceFactory; try { serviceFactory = ServiceFactory.newInstance(); Service service = serviceFactory.createService(new URL(wsdlURL), serviceQN); } catch (MalformedURLException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } } } I have also included the jar files required to run the client as mentioned below: axis.jar jaxrpc.jar commons-logging-1.1.1.jar wsdl4j-1.5.1.jar saaj.jar webserviceutils.jar commonsdiscovery-0.2.jar I tried the same thing using C# client,but got the same problem.I feel that the OFBiz wsdl gets created in such a way that it does not get exposed to external client. Kindly let me know the reason of the exception.Is the way i am following, correct? Also, if there is some other way to do the task. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. __
Re: access OFBiz web service through a C# client
Hi, Thanx a lot for your reply. Mr Freeman, actually the problem is that i am able to get the wsdl file and also able to acces the service of OFBiz through the proxy in my C# client.The thing is that the method, i need to invoke is still hidden to the client although the modifier of the method is public. Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 98702 01950 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. BJ Freeman 06/08/2009 09:50 AM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject Re: access OFBiz web service through a C# client There has been a lot of discusion about is: 1)ofbiz does not have webservices. 2) if you want a complex return you must write a wrapper in ofbiz that maps the ofbiz data to a webservices format. ofbiz only exports a single string, by defualt neha.me...@lntinfotech.com sent the following on 6/7/2009 9:15 PM: > Hi, > > I need to access OFBiz web service through a C# client. > I have added the attribute export="true" to the service definition.I am > also able to access the wsdl file through my C# client, but i am > struggling to invoke the service method through the client.Kindly help me > to get through the situation > > Thanx in advance... > > > > Thanks & Regards, > Neha Mehta > Software Engineer (A-1-1) > Larsen & Toubro Infotech Ltd. > Cell: +91 98702 01950 > Email-id: neha.me...@lntinfotech.com > EL-200, TTC Electronic Zone, > Shil Mahape Road, > Navi Mumbai, 400710 > T: +91 022 67954324 > India +0530 UTC/GMT > > ** > The most beautiful thing is to see a person smiling… > And even more beautiful is knowing that you are the reason behind it!!! > Be a reason for others to smile > HAVE A NICE DAY AHEAD.. > ** > > > > > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > __ -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. __ __
access OFBiz web service through a C# client
Hi, I need to access OFBiz web service through a C# client. I have added the attribute export="true" to the service definition.I am also able to access the wsdl file through my C# client, but i am struggling to invoke the service method through the client.Kindly help me to get through the situation Thanx in advance... Thanks & Regards, Neha Mehta Software Engineer (A-1-1) Larsen & Toubro Infotech Ltd. Cell: +91 98702 01950 Email-id: neha.me...@lntinfotech.com EL-200, TTC Electronic Zone, Shil Mahape Road, Navi Mumbai, 400710 T: +91 022 67954324 India +0530 UTC/GMT ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Debug the OFBiz - POS application in eclipse
Hi, I need to debug the OFBiz - POS application in eclipse. I am not able to start POS - Server in Eclipse, by using java -jar ofbiz.jar -pos Kindly help me how to start pos server in eclipse. Thanx in advance. Thanks & Regards, Neha Mehta Software Engineer L & T Infotech Limited 02267945648 ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __
Debug the OFBiz - POS application in eclipse
Hi, I need to debug the OFBiz - POS application in eclipse. I am not able to start POS - Server in Eclipse, by using java -jar ofbiz.jar -pos Kindly help me how to start pos server in eclipse. Thanx in advance. Thanks & Regards, Neha Mehta Software Engineer L & T Infotech Limited 02267945648 ** The most beautiful thing is to see a person smiling… And even more beautiful is knowing that you are the reason behind it!!! Be a reason for others to smile HAVE A NICE DAY AHEAD.. ** Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. __