hi Arun,
 I downloaded JBoss 4.2.2GA,I followed your steps as you mailed. I started
JBoss Server also,But I do not no how to open Ofbiz link. Which Port number
i have type in address bar in browser. JBoss server running in 8080 port,
your mentioned in 12th 8443. which port i have to specific in address bar in
browser.

in run.bat i copied as u given 11th

set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:\JBoss-Ofbiz\ofbiz


is this correct way to specific ofbiz home location.

i am waiting your reply,thanks in advance...





On Wed, Sep 30, 2009 at 6:07 PM, Gnanashankar Shanmugam <
[email protected]> wrote:

> thanks lot arun..i will try in JBoss4.2.2GA..thanks your help..
>
>
> On Wed, Sep 30, 2009 at 5:55 PM, Arun Mehta <[email protected]>wrote:
>
>>
>> Hi,
>>  I have integrated ofbiz in JBOSS 4.2.2 and steps that I have mentioned
>> are
>> for JBOSS 4.2.2. It may be possible that in JBOSS 5.1.0 , the
>> configuration
>> settings are different.
>>
>>
>> Arun Mehta wrote:
>> >
>> > Hi,
>> > You can write the below line,
>> > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME
>> >
>> > after this,
>> > rem With Sun JVMs reduce the RMI GCs to once per hour
>> > rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000
>> > -Dsun.rmi.dgc.server.gcInterval=3600000
>> >
>> > note:- OFBIZ_HOME is the location where ofbiz is placed.
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > GNANASHANKAR wrote:
>> >>
>> >> hi arun, i followed your steps..after running JBoss i am getting below
>> >> error..
>> >>
>> >> DEPLOYMENTS IN ERROR:
>> >>   Deployment "vfsfile:/C:/Apps/JBoss/
>> >> jboss-5.1.0.GA/server/default/deploy/ofbiz.
>> >> ear/" is in error due to the following reason(s):
>> >> org.xml.sax.SAXException:
>> >> The
>> >> content of element type "web-app" must match
>> >> "(icon?,display-name?,description?,
>> >>
>> distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet
>> >>
>> -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r
>> >>
>> esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*
>> >> ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/
>> >> jboss-5.1.0.GA/s
>> >> erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11]
>> >>   Deployment "WebServer" is in error due to the following reason(s):
>> >> LifecycleEx
>> >> ception:  Protocol handler initialization failed:
>> >> java.io.FileNotFoundException:
>> >>  path (The system cannot find the file specified)
>> >>   Deployment "jboss.web:service=WebServer" is in error due to the
>> >> following
>> >> reas
>> >> on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' **
>> >>
>> >> 16:32:44,812 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA(build:
>> >> SVNTag=
>> >> JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms
>> >>
>> >> in 11th step run.bat file where i have to copy the  below line
>> >>
>> >> set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver
>> >>               set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME
>> >>
>> >> in 11th step your given comment the below line,
>> >>
>> >>    rem  set JAVA_OPTS=%JAVA_OPTS%
>> >> -Dsun.rmi.dgc.client.gcInterval=3600000
>> >> -Dsun.rmi.dgc.server.gcInterval=3600000
>> >>
>> >>
>> >>
>> >>
>> >> On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta
>> >> <[email protected]>wrote:
>> >>
>> >>>
>> >>> Hi,
>> >>>  You must have Apache Ant 1.7.0 and set the environmental variables
>> >>> CLASS_PATH and PATH.
>> >>>  Type 'ant' on the command prompt (from
>> >>> JBOSS_HOME\server\default\deploy\ofbiz.ear).
>> >>
>> >>
>> >>>
>> >>> GNANASHANKAR wrote:
>> >>> >
>> >>> > hi arun,
>> >>> >    i followed u steps up to 9. In the 10th steps,
>> >>> >
>> >>> >    10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run
>> >>> > ant command
>> >>> >
>> >>> > can you tell the command to run the ant.
>> >>> >
>> >>> > On Wed, Sep 30, 2009 at 2:08 PM, <[email protected]>
>> wrote:
>> >>> >
>> >>> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform
>> >>> >>
>> >>> >> 1.      Download the latest OFBiz from the Apache site and unzip
>> it.
>> >>> >> 2.      Compile the application and build the derby database by
>> >>> running
>> >>> >> the command ?ant run-install?.
>> >>> >> 3.      Change the value of disable.log4j.config from false to true
>> >>> in
>> >>> >> debug.properties
>> >>> >>        (OFBiz_HOME\framework\base\config\debug.properties).
>> >>> >>        disable.log4j.config = true
>> >>> >>
>> >>> >> 4.      Download the JBOSS (jboss-4.2.2.GA) and unzip it.
>> >>> >> 5.      The JBOSS templates are included in the directory
>> >>> >>        OFBiz_HOME\framework\appserver\templates\jboss422
>> >>> >>
>> >>> >> 6.      Run the following command from the OFBiz directory:
>> >>> >>        java ?jar ofbiz.jar ?setup jboss422
>> >>> >>
>> >>> >> 7.      When this command finishes, a new directory will be created
>> >>> in
>> >>> >> the
>> >>> >> ofbiz home directory called 'setup'. Inside this directory will be
>> >>> >> subdirectory ?jboss422? containing several files:
>> >>> >>        a.      build.xml - A template to build  package and deploy
>> >>> OFBiz.
>> >>> >>        b.      application.xml - A template to generate an
>> >>> applcation.xml
>> >>> >> file for the deployment of OFBiz web applications.
>> >>> >>
>> >>> >> 8.      Create a new directory for the ofbiz deployment inside the
>> >>> JBoss
>> >>> >> deploy directory. Name this directory 'ofbiz.ear'; then copy the
>> file
>> >>> >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to
>> this
>> >>> new
>> >>> >> directory.
>> >>> >>        JBOSS_HOME\server\default\deploy \ofbiz.ear
>> >>> >>
>> >>> >> 9.      Make a copy of entityengine .xml and rename that to
>> >>> >> entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config.
>> >>> Changes
>> >>> >> required in this file are:
>> >>> >>        a.      Comment the element
>> >>> >>        <transaction-factory
>> >>> >> class="org.ofbiz.geronimo.GeronimoTransactionFactory"/>
>> >>> >>        b.      Uncomment the element
>> >>> >>        <transaction-factory
>> >>> >> class="org.ofbiz.entity.transaction.JNDIFactory">
>> >>> >>        <user-transaction-jndi jndi-server-name="default"
>> >>> >> jndi-name="java:comp/UserTransaction"/>
>> >>> >>        <transaction-manager-jndi jndi-server-name="default"
>> >>> >> jndi-name="java:comp/UserTransaction"/>
>> >>> >>        </transaction-factory>
>> >>> >>
>> >>> >>        c.      Change the value of jndi-name attribute of
>> >>> >> transaction-manager-jndi element from "java:comp/UserTransaction"
>> to
>> >>> >> "java:/TransactionManager".
>> >>> >>        <transaction-manager-jndi jndi-server-name="default"
>> >>> >> jndi-name="java:/TransactionManager"/>
>> >>> >>
>> >>> >>        d.      In the datasource element having attribute ?name?
>> with
>> >>> >> value ?localderby?, uncomment the  sub-element ?jndi-jdbc? and
>> >>> change
>> >>> >> the
>> >>> >> value of        ?jndi-name? from "java:/DerbyDataSource" to
>> >>> >> ?java:/OFBizDS?.
>> >>> >>        <jndi-jdbc jndi-server-name="localjndi"
>> >>> jndi-name="java:/OFBizDS"
>> >>> >> isolation-level="ReadCommitted"/>
>> >>> >>
>> >>> >>        e.       In the datasource element having attribute ?name?
>> >>> with
>> >>> >> value ?localderbyolap?, uncomment the  sub-element ?jndi-jdbc?  and
>> >>> >> change
>> >>> >> the value of ?jndi-name? from "java:/DerbyDataSource" to
>> >>> >> ?java:/OFBizOlapDS?.
>> >>> >>        <jndi-jdbc jndi-server-name="localjndi"
>> >>> >> jndi-name="java:/OFBizOlapDS "  isolation-level="ReadCommitted"/>
>> >>> >>
>> >>> >> 10.      From JBOSS_HOME\server\default\deploy\ofbiz.ear location,
>> >>> run
>> >>> >> ant
>> >>> >> command. This must be run from inside the directory you wish to
>> >>> deploy
>> >>> >> OFBiz   into. This will package and deploy all the necessary
>> >>> libraries,
>> >>> >> webapps and configuration files into the JBoss  exploded EAR
>> >>> (directory).
>> >>> >>
>> >>> >> 11.     Add the following lines in run.bat (JBOSS_HOME/bin)
>> >>> >>           set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver
>> >>> >>               set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME
>> >>> >>
>> >>> >>         and comment the following line in run.bat,
>> >>> >>        rem  set JAVA_OPTS=%JAVA_OPTS%
>> >>> >> -Dsun.rmi.dgc.client.gcInterval=3600000
>> >>> >> -Dsun.rmi.dgc.server.gcInterval=3600000
>> >>> >>
>> >>> >> 12.     Add the following element in server.xml
>> >>> >> (JBOSS_HOME\server\default\deploy\jboss-web.deployer)
>> >>> >>        <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>> >>> >> keystoreFile="path" keystorePass="password" maxThreads="150"
>> >>> >> scheme="https" secure="true"  clientAuth="false" sslProtocol="TLS"
>> />
>> >>> >>
>> >>> >> where,
>> >>> >>        path -> full path of keystore file
>> >>> >>        password ->  password used to generate keystore file
>> >>> >>
>> >>> >>        Note:- If required, you can change the port number.
>> >>> >>
>> >>> >> 13.     Copy the derby directory from OFBiz_HOME\runtime\data and
>> >>> paste
>> >>> >> it
>> >>> >> into the directory JBOSS_HOME\server\default\data.
>> >>> >>
>> >>> >> 14.     Start the JBOSS server by running the run.bat
>> >>> (JBOSS_HOME\bin)
>> >>> >>
>> >>> >>
>> >>> >> Thanks & Regards,
>> >>> >> Arun Mehta | iLabs | L&T Infotech
>> >>> >> Plot No.EL-200,TTC Electronic Zone, Navi Mumbai.
>> >>> >> Office: +91-22-67954321 | Extn: 4321
>> >>> >> Mobile: 9970127578
>> >>> >> Email: [email protected]
>> >>> >>
>> >>> >> 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.
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> Gnanashankar Shanmugam <[email protected]>
>> >>> >> 09/30/2009 01:31 PM
>> >>> >> Please respond to
>> >>> >> [email protected]
>> >>> >>
>> >>> >>
>> >>> >> To
>> >>> >> [email protected]
>> >>> >> cc
>> >>> >>
>> >>> >> Subject
>> >>> >> How to integrate ofbiz in JBoss
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> hi,
>> >>> >> can any tell steps to Integrate ofbiz in JBoss webserver in Windows
>> >>> XP
>> >>> >> Os...
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> ______________________________________________________________________
>> >>> >>
>> >>> >>
>> >>> ______________________________________________________________________
>> >>> >
>> >>> >
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>>
>> http://www.nabble.com/How-to-integrate-ofbiz-in-JBoss-tp25676607p25678521.html
>> >>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-integrate-ofbiz-in-JBoss-tp25676607p25680026.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>


-- 
Gnanashankar Shanmugam
Formative Software Solutions Pvt. Ltd.,
Chennai-61

Reply via email to