[OFBiz] Users - combine apache and ofbiz problem
Ray
ray.barlow at makeyour-point.com
Tue Apr 5 08:59:39 EDT 2005
It would suggest to me that apache is just serving up the page and
mod_jk is not getting involved for some reason.
Nothing obvious looks out of place in the settings so I'd suggest you
start digging through some log files. Make a request to
http://ip/ecommerce and examine the output from ofbiz, using default log
settings you should get something like 20 new lines of entries as the
request is received and processed. If nothing is showing in ofbiz then
start looking in the mod_jk log files for some clues and if no entries
in there then it's up to the last level Apache.
I point the document root at the ecommerce/webapp folder.
Ray
neo anderson wrote:
>hi thanks,
>after following the guide at
>http://ofbizwiki.go-integral.com/Wiki.jsp?page=SSSMultiInstances.
>now the problem seems to be that the request to the
>url like /ecommerce/* would be treated as static page.
>for instance, the request to the http://ip/ecommerce (
>the jsp page would become downloadable, not translated
>to desired html page) would show the list of the the
>folder resided in the ofbiz/components/, for i set the
>DocumentRoot to /path/to/ofbiz/components (looks like
>this setting is wrong). how to adjust it?
>i apprecaite it, sincerely.
>and the
>env ofbiz 3.0; j2sdk1.4.2_08; centos 4.0
>========== worker.proerties=======beg
>...
>...
>#
>workers.ofbiz_home=/path/to/ofbiz
>
>#
># workers.java_home should point to your Java
>installation. Normally
># you should have a bin and lib directories beneath
>it.
>#
>workers.java_home=/path/to/j2sdk1.4.2_08
>
>...
>#
>ps=/
>
>#
>#------ ADVANCED MODE
>------------------------------------------------
>#---------------------------------------------------------------------
>#
>
>#
>#------ DEFAULT worket list
>------------------------------------------
>#---------------------------------------------------------------------
>#
>#
># The workers that your plugins should create and
>#work with
>#
># Add 'inprocess' if you want JNI connector
>worker.list=ajp12, ajp13
># , inprocess
>
>...
>...
>...
>#
># Defining a worker named ajp12 and of type ajp12
># Note that the name and the type do not have to
>match.
>#
>worker.ajp12.port=8007
>worker.ajp12.host=localhost
>worker.ajp12.type=ajp12
>#
># Specifies the load balance factor when used with
># a load balancing worker.
># Note:
># ----> lbfactor must be > 0
># ----> Low lbfactor means less work done by the
>worker.
>worker.ajp12.lbfactor=1
>
>#
>#------ DEFAULT ajp13 WORKER DEFINITION
>------------------------------
>#----------------------
>...
>...
>...
># Note that the name and the type do not have to
>match.
>#
>worker.ajp13.port=8009
>worker.ajp13.host=localhost
>worker.ajp13.type=ajp13
>#
># Specifies the load balance factor when used with
># a load balancing worker.
># Note:
># ----> lbfactor must be > 0
># ----> Low lbfactor means less work done by the
>worker.
>worker.ajp13.lbfactor=1
>#
>
>...
>...
>worker.loadbalancer.type=lb
>worker.loadbalancer.balanced_workers=ajp12, ajp13
>
>
>#
>#------ DEFAULT JNI WORKER
>DEFINITION---------------------------------
>#---------------------------------------------------------------------
>#
>
>#
># Defining a worker named inprocess and of type jni
># Note that the name and the type do not have to
>match.
>#
>worker.inprocess.type=jni
>...
>...
>#
># Additional class path components.
>#
>worker.inprocess.class_path=$(workers.ofbiz_home)$(ps)ofbiz.jar
>
>#
># Setting the command line for tomcat.
># Note: The cmd_line string may not contain spaces.
>#
>worker.inprocess.cmd_line=start
>...
>...
>worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so
>...
>...
>#
># Setting the place for the stdout and stderr of
>tomcat
>#
>worker.inprocess.stdout=$(workers.ofbiz_home)$(ps)logs$(ps)inprocess.stdout
>worker.inprocess.stderr=$(workers.ofbiz_home)$(ps)logs$(ps)inprocess.stderr
>...
>...
>...
>
>
>
>========== worker.proerties=======end
>===========httpd.conf=========beg
><VirtualHost "localhost:80">
> ServerName localhost
> DocumentRoot /path/to/ofbiz/components
> ErrorLog /path/to/apache/logs/error.log
> DirectoryIndex index.html index.jsp
><Directory /path/to/ofbiz/compnents>
> Order Allow,Deny
> Allow From all
></Directory>
>Alias /localhost/ /path/to/ofbiz/compnents
>JkMount /ecommerce ajp13
>JkMount /ecommerce/* ajp13
></VirtualHost>
>
>...
>...
>DocumentRoot "/path/to/ofbiz/components"
>...
>...
><Directory "/path/to/ofbiz/components">
>
>
>
>===========httpd.conf=========end
>
>--- Ray <ray.barlow at makeyour-point.com> wrote:
>
>
>>Ideally you should use the latest version from SVN,
>>lots of changes
>>since 3.0 and the latest SVN is approaching another
>>release shortly.
>>
>>OFBiz does not officially support jdk 1.5, so you
>>would be best advised
>>to work with 1.4.x, other than that I've had mod_jk
>>working with both
>>Tomcat and Jetty in the past, there not being a lot
>>of difference
>>between them in set up terms.
>>
>>If I remember rightly there was also talk on the
>>mailing lists
>>previously about issues with mod_jk2 and that it's
>>development has
>>basically stopped so you might be better advised to
>>follow these directions:
>>
>>
>>
>>
>http://ofbizwiki.go-integral.com/Wiki.jsp?page=SSSMultiInstances
>
>
>>Obvisouly an area that needs some attention on the
>>documentation side....
>>
>>Ray
>>
>>
>>
>>neo anderson wrote:
>>
>>
>>
>>>what version of ofbiz should i use? for i only see
>>>
>>>
>>the
>>
>>
>>>latest released version of ofbiz 3.0 (2004-03-12
>>>16:00) hosted on the sourceforge.net. other
>>>
>>>
>>version
>>
>>
>>>is older than that.
>>>or should i download from cvs??
>>>i appreciate your help sincerely.
>>>jason
>>>
>>>--- bjfree at free-man.net wrote:
>>>
>>>
>>>
>>>
>>>>not sure what version your are using, but jetty
>>>>
>>>>
>>stop
>>
>>
>>>>being the default a
>>>>while ago. Currently ofbiz runs tomcat. jetty has
>>>>
>>>>
>>to
>>
>>
>>>>be configured.
>>>>
>>>>-----Original Message-----
>>>>From: neo anderson [mailto:freeonfair at yahoo.co.uk]
>>>>Sent: Tuesday, April 05, 2005 6:10 AM
>>>>To: users at lists.ofbiz.org
>>>>Subject: [OFBiz] Users - combine apache and ofbiz
>>>>problem
>>>>
>>>>
>>>>hi,
>>>>would anyone please to tell me how to configure in
>>>>order to combine apache with ofbiz (jetty)? lately
>>>>
>>>>
>>i
>>
>>
>>>>encounter a problem when setting up ofbiz to
>>>>interact
>>>>with apache, followed via the introduction at
>>>>
>>>>
>>>>
>>>>
>>>>
>>http://ofbizwiki.go-integral.com/Wiki.jsp?page=Mod_jk2_config.
>>
>>
>>>
>>>
>>>>yet i failed to succesed to forward servlet
>>>>
>>>>
>>request
>>
>>
>>>>to
>>>>jetty (where ofbiz resides on).
>>>>i configure workers.properties and url.properties
>>>>but i only can see the index.html page of apache.
>>>>
>>>>
>>if
>>
>>
>>>>i
>>>>stop the iptables, then i can see
>>>>http://ip:8080/eocmmerce/, which i originally want
>>>>to
>>>>have access to.
>>>>therefore, i suppose the problem might come from
>>>>
>>>>
>>the
>>
>>
>>>>ajp worker not setting up correctly. but i don't
>>>>know
>>>>how.
>>>>hope someone could do me a favor or simply to tell
>>>>me
>>>>where there's a detail steps more than the urk
>>>>porinted.
>>>>i appreciate it, sincerely.
>>>>jason
>>>>
>>>>Send instant messages to your online friends
>>>>http://uk.messenger.yahoo.com
>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>Users at lists.ofbiz.org
>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>Users at lists.ofbiz.org
>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>>
>>>>
>>>Send instant messages to your online friends
>>>
>>>
>>http://uk.messenger.yahoo.com
>>
>>
>>>_______________________________________________
>>>Users mailing list
>>>Users at lists.ofbiz.org
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>>
>>
>>_______________________________________________
>>Users mailing list
>>Users at lists.ofbiz.org
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>
>Send instant messages to your online friends http://uk.messenger.yahoo.com
>
>_______________________________________________
>Users mailing list
>Users at lists.ofbiz.org
>http://lists.ofbiz.org/mailman/listinfo/users
>
>
>
More information about the Users
mailing list