How to integrate ofbiz in JBoss

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

How to integrate ofbiz in JBoss

GNANASHANKAR
hi,
can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP Os...
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Olindo Pindaro-2
I have a similar problem (deploy on Websphere). This is what i found:
1) OfBiz is started a selfcontained jar who has inside tomcat and geronimo.
Using starting opzion -setup <server type> managed by class Start.java you
can deploy framework as exploded EAR in a directory. Configuration files are
used to instruct where is deploy dir, ecc. ecc.

2) Not all server are supported (IBM websphere not), check for JBOSS, if non
supported you have to adapt the code for your server.

A question for OBZIF developers/Manteiners:

If create a setup for WebSphere I must/can release my code? if yes How!

Bye All
Olindo


2009/9/30 Gnanashankar Shanmugam <[hidden email]>

> hi,
> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
> Os...
>



--
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro
+39 3939455830
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Jacques Le Roux
Administrator
In reply to this post by GNANASHANKAR
Look into wiki

Jacques

From: "Gnanashankar Shanmugam" <[hidden email]>
> hi,
> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP Os...
>

Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
In reply to this post by GNANASHANKAR
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: [hidden email]

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 <[hidden email]>
09/30/2009 01:31 PM
Please respond to
[hidden email]


To
[hidden email]
cc

Subject
How to integrate ofbiz in JBoss






hi,
can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
Os...


______________________________________________________________________

______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Jacques Le Roux
Administrator
In reply to this post by Olindo Pindaro-2

From: "Olindo Pindaro" <[hidden email]>
>I have a similar problem (deploy on Websphere). This is what i found:
> 1) OfBiz is started a selfcontained jar who has inside tomcat and geronimo.
> Using starting opzion -setup <server type> managed by class Start.java you
> can deploy framework as exploded EAR in a directory. Configuration files are
> used to instruct where is deploy dir, ecc. ecc.
>
> 2) Not all server are supported (IBM websphere not), check for JBOSS, if non
> supported you have to adapt the code for your server.

IBM websphere not but IBM WASCE is, look into wiki, ok I put the link
http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers

> A question for OBZIF developers/Manteiners:
>
> If create a setup for WebSphere I must/can release my code? if yes How!

Follow the path already opened, see link above

HTH

Jacques

> Bye All
> Olindo
>
>
> 2009/9/30 Gnanashankar Shanmugam <[hidden email]>
>
>> hi,
>> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
>> Os...
>>
>
>
>
> --
> Olindo Pindaro
> http://www.linkedin.com/in/olindopindaro
> +39 3939455830
>

Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
In reply to this post by Arun Mehta
Thank You Arun Mehta..now I am following your steps...

On Wed, Sep 30, 2009 at 2:08 PM, <[hidden email]> 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: [hidden email]
>
> 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 <[hidden email]>
> 09/30/2009 01:31 PM
> Please respond to
> [hidden email]
>
>
> To
> [hidden email]
> cc
>
> Subject
> How to integrate ofbiz in JBoss
>
>
>
>
>
>
> hi,
> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
> Os...
>
>
> ______________________________________________________________________
>
> ______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
In reply to this post by Arun Mehta
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, <[hidden email]> 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: [hidden email]
>
> 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 <[hidden email]>
> 09/30/2009 01:31 PM
> Please respond to
> [hidden email]
>
>
> To
> [hidden email]
> cc
>
> Subject
> How to integrate ofbiz in JBoss
>
>
>
>
>
>
> hi,
> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
> Os...
>
>
> ______________________________________________________________________
>
> ______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
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, <Arun.Mehta@lntinfotech.com> 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: arun.mehta@lntinfotech.com
>
> 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 <gnana@formativesolutions.co.in>
> 09/30/2009 01:31 PM
> Please respond to
> user@ofbiz.apache.org
>
>
> To
> user@ofbiz.apache.org
> cc
>
> Subject
> How to integrate ofbiz in JBoss
>
>
>
>
>
>
> hi,
> can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP
> Os...
>
>
> ______________________________________________________________________
>
> ______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
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 <[hidden email]>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, <[hidden email]> 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: [hidden email]
> >>
> >> 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 <[hidden email]>
> >> 09/30/2009 01:31 PM
> >> Please respond to
> >> [hidden email]
> >>
> >>
> >> To
> >> [hidden email]
> >> 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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
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 <arun.mehta@lntinfotech.com>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, <Arun.Mehta@lntinfotech.com> 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: arun.mehta@lntinfotech.com
> >>
> >> 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 <gnana@formativesolutions.co.in>
> >> 09/30/2009 01:31 PM
> >> Please respond to
> >> user@ofbiz.apache.org
> >>
> >>
> >> To
> >> user@ofbiz.apache.org
> >> 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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
hi arun,

i am using jboss-5.1.0.GA, i followed your steps. but i am getting same
error. tell me the correct line to paste below line. Is it correct to
specify the Ofbiz_home location.

set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver
set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home="C:\JBoss-Ofbiz\ofbiz"

in my Jboss  run.bat file i am not having below line

rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
 i am waiting for your reply.thanks for previous reply..
On Wed, Sep 30, 2009 at 5:02 PM, Arun Mehta <[hidden email]>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
> > <[hidden email]>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, <[hidden email]> 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: [hidden email]
> >> >>
> >> >> 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 <[hidden email]>
> >> >> 09/30/2009 01:31 PM
> >> >> Please respond to
> >> >> [hidden email]
> >> >>
> >> >>
> >> >> To
> >> >> [hidden email]
> >> >> 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-tp25676607p25679305.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
In reply to this post by Arun Mehta
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 <arun.mehta@lntinfotech.com>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, <Arun.Mehta@lntinfotech.com> 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: arun.mehta@lntinfotech.com
> >>
> >> 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 <gnana@formativesolutions.co.in>
> >> 09/30/2009 01:31 PM
> >> Please respond to
> >> user@ofbiz.apache.org
> >>
> >>
> >> To
> >> user@ofbiz.apache.org
> >> 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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
thanks lot arun..i will try in JBoss4.2.2GA..thanks your help..

On Wed, Sep 30, 2009 at 5:55 PM, Arun Mehta <[hidden email]>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
> >> <[hidden email]>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, <[hidden email]> 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: [hidden email]
> >>> >>
> >>> >> 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 <[hidden email]>
> >>> >> 09/30/2009 01:31 PM
> >>> >> Please respond to
> >>> >> [hidden email]
> >>> >>
> >>> >>
> >>> >> To
> >>> >> [hidden email]
> >>> >> 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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
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 <
[hidden email]> 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 <[hidden email]>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
>> >> <[hidden email]>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, <[hidden email]>
>> 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: [hidden email]
>> >>> >>
>> >>> >> 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 <[hidden email]>
>> >>> >> 09/30/2009 01:31 PM
>> >>> >> Please respond to
>> >>> >> [hidden email]
>> >>> >>
>> >>> >>
>> >>> >> To
>> >>> >> [hidden email]
>> >>> >> 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 | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
Hi,
1.) Using 8080 port you can access ecommerce module and to access other
modules use 8443 port .
for eg:-
 http://localhost:8080/ecommerce/control/main
 https://localhost:8443/ordermgr/control/main

2.) set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:\JBoss-Ofbiz\ofbiz
is correct.
 
 


______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
hi arun, thanks your reply, I tried both links after starting JBoss server
its not working. I Don't no where the mistake went..help me to debug the
error. below i pasted when i run Jboss server in command prompt.

12:08:18,796 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-8
080
12:08:18,828 ERROR [Http11Protocol] Error starting endpoint
java.io.FileNotFoundException: C:\JBoss-Ofbiz\jboss-4.2.2.GA
\server\default\path
 (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket
Factory.java:316)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc
ketFactory.java:259)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSE
SocketFactory.java:410)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFact
ory.java:378)
        at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESo
cketFactory.java:125)
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:495)
        at
org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:514)
        at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203
)
        at
org.apache.catalina.connector.Connector.start(Connector.java:1146)
        at
org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:5
84)
        at
org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.jav
a:621)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
onListenerProxy.java:153)
        at $Proxy46.handleNotification(Unknown Source)
        at
org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
ion(JBossNotificationBroadcasterSupport.java:127)
        at
org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
n(JBossNotificationBroadcasterSupport.java:108)
        at
org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:9
16)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:508)
        at java.lang.Thread.run(Thread.java:619)
12:08:18,843 WARN  [JBossWeb] Failed to startConnectors
LifecycleException:  service.getName(): "jboss.web";  Protocol handler start
fai
led: java.io.FileNotFoundException: C:\JBoss-Ofbiz\jboss-4.2.2.GA
\server\default
\path (The system cannot find the file specified)
        at
org.apache.catalina.connector.Connector.start(Connector.java:1153)
        at
org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:5
84)
        at
org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.jav
a:621)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
onListenerProxy.java:153)
        at $Proxy46.handleNotification(Unknown Source)
        at
org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotificat
ion(JBossNotificationBroadcasterSupport.java:127)
        at
org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotificatio
n(JBossNotificationBroadcasterSupport.java:108)
        at
org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:9
16)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:508)
        at java.lang.Thread.run(Thread.java:619)
12:08:18,843 INFO  [Server] JBoss (MX MicroKernel) [4.2.2.GA (build:
SVNTag=JBos
s_4_2_2_GA date=200710221139)] Started in 59s:156ms

On Thu, Oct 1, 2009 at 12:14 PM, <[hidden email]> wrote:

> Hi,
> 1.) Using 8080 port you can access ecommerce module and to access other
> modules use 8443 port .
> for eg:-
>  http://localhost:8080/ecommerce/control/main
>  https://localhost:8443/ordermgr/control/main
>
> 2.) set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:\JBoss-Ofbiz\ofbiz
> is correct.
>
>
>
>
> ______________________________________________________________________




--
Gnanashankar Shanmugam
Formative Software Solutions Pvt. Ltd.,
Chennai-61
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
Hi,
Check the step no. 12 .

<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

You need to generate the keystore file.
For steps refer SSL Certificate Setup (follow steps 1 to 5) section on
http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide


______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
thanku arun..i will try now..

On Thu, Oct 1, 2009 at 2:10 PM, <[hidden email]> wrote:

> Hi,
> Check the step no. 12 .
>
> <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
>
> You need to generate the keystore file.
> For steps refer SSL Certificate Setup (follow steps 1 to 5) section on
>
> http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
>
>
> ______________________________________________________________________




--
Gnanashankar Shanmugam
Formative Software Solutions Pvt. Ltd.,
Chennai-61
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

GNANASHANKAR
hi arun, i followed ur steps and SSL certificate Setup, step 1 and 2 i
created keystore name and all as per given in that link, the Keystore file
also created in ofbiz_home directory. i do not no how to submit CSR and
download certificate..

below line is correct to specify path of keystore.

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
keystoreFile="C:\JBoss-Ofbiz\ofbiz\[shankarforma]" keystorePass="sgshankar"
maxThreads="150"    scheme="https" secure="true"  clientAuth="false"
sslProtocol="TLS" />

On Thu, Oct 1, 2009 at 2:17 PM, Gnanashankar Shanmugam <
[hidden email]> wrote:

> thanku arun..i will try now..
>
>
> On Thu, Oct 1, 2009 at 2:10 PM, <[hidden email]> wrote:
>
>> Hi,
>> Check the step no. 12 .
>>
>> <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
>>
>> You need to generate the keystore file.
>> For steps refer SSL Certificate Setup (follow steps 1 to 5) section on
>>
>> http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
>>
>>
>> ______________________________________________________________________
>
>
>
>
> --
> Gnanashankar Shanmugam
> Formative Software Solutions Pvt. Ltd.,
> Chennai-61
>



--
Gnanashankar Shanmugam
Formative Software Solutions Pvt. Ltd.,
Chennai-61
Reply | Threaded
Open this post in threaded view
|

Re: How to integrate ofbiz in JBoss

Arun Mehta
Hi ,
 First try giving the path of the .keystore file generated in step 1 of
SSL Certificate Setup and if it doesnt work then go to www.verisign.com
and submit the CSR.

______________________________________________________________________
12