You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Madhuri <ma...@gmail.com> on 2008/06/06 21:17:03 UTC

Java Class file change on server


Hi - I am new to ofbiz and need some help with code change in a java class.
I changed the java file CheckoutEvents.java to suit my requirements and it
works fine on my local machine. I replaced the class file on the production
server and re-started tomcat, however it does not seem to accept the new
class file. Can anyone please advice on what is going wrong. Is this class
cached somewhere ?? 

Thanks Much,
Maddy
-- 
View this message in context: http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Java Class file change on server

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Reading of JAR files is done with the help of following entry from
ofbiz-component.xml when server will get started.
One more thing ofbiz-component.xml file is specific to each component.

    <classpath type="jar" location="build/lib/*"/>

--
Ashish

On Fri, Jun 6, 2008 at 6:16 PM, BJ Freeman <bj...@free-man.net> wrote:

> you need to let the build file create the jar that the java file is in.
> then replace the jar file on the server.
>
> Madhuri sent the following on 6/6/2008 2:08 PM:
> >
> > Hi Jacques - I did not compile the java class on the server. I only
> compiled
> > it on my local machine and replaced the class file on the server. Do I
> have
> > to run compile (run ant) on server ? I restarted ofbiz on server. I am
> not
> > using tomcat as external application server.
> >
> > Your help is much appreciated...
> >
> > Thanks Much,
> > Maddy
> >
> >
> >
> >
> > jacques.le.roux wrote:
> >> Did you recompile on server (I know it's may seem a dumb question, but
> you
> >> did not express it clearly in your mail) or copy the jar
> >> file containing the class?
> >> Also did you restart OFBiz ? Or are you using Tomcat as an external
> >> application sever ?
> >>
> >> Jacques
> >>
> >> From: "Madhuri" <ma...@gmail.com>
> >>> Hi - I am new to ofbiz and need some help with code change in a java
> >>> class.
> >>> I changed the java file CheckoutEvents.java to suit my requirements and
> >>> it
> >>> works fine on my local machine. I replaced the class file on the
> >>> production
> >>> server and re-started tomcat, however it does not seem to accept the
> new
> >>> class file. Can anyone please advice on what is going wrong. Is this
> >>> class
> >>> cached somewhere ??
> >>>
> >>> Thanks Much,
> >>> Maddy
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
> >>> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>>
> >>
> >>
> >
>
>

Re: Java Class file change on server

Posted by BJ Freeman <bj...@free-man.net>.
you need to let the build file create the jar that the java file is in.
then replace the jar file on the server.

Madhuri sent the following on 6/6/2008 2:08 PM:
> 
> Hi Jacques - I did not compile the java class on the server. I only compiled
> it on my local machine and replaced the class file on the server. Do I have
> to run compile (run ant) on server ? I restarted ofbiz on server. I am not
> using tomcat as external application server. 
> 
> Your help is much appreciated...
> 
> Thanks Much,
> Maddy
> 
> 
> 
> 
> jacques.le.roux wrote:
>> Did you recompile on server (I know it's may seem a dumb question, but you
>> did not express it clearly in your mail) or copy the jar 
>> file containing the class?
>> Also did you restart OFBiz ? Or are you using Tomcat as an external
>> application sever ?
>>
>> Jacques
>>
>> From: "Madhuri" <ma...@gmail.com>
>>> Hi - I am new to ofbiz and need some help with code change in a java
>>> class.
>>> I changed the java file CheckoutEvents.java to suit my requirements and
>>> it
>>> works fine on my local machine. I replaced the class file on the
>>> production
>>> server and re-started tomcat, however it does not seem to accept the new
>>> class file. Can anyone please advice on what is going wrong. Is this
>>> class
>>> cached somewhere ??
>>>
>>> Thanks Much,
>>> Maddy
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
> 


Re: Java Class file change on server

Posted by Jacques Le Roux <ja...@les7arts.com>.
Madhuri,

Class file is not enough, at least the jar file containing the class file should be used. But anyway, I would recommend to stop 
OFBiz on the server, run ant (in case of issue, "ant clean" before can help), restart OFBiz on the server.

Jacques

From: "Madhuri" <ma...@gmail.com>
>
>
> Hi Jacques - I did not compile the java class on the server. I only compiled
> it on my local machine and replaced the class file on the server. Do I have
> to run compile (run ant) on server ? I restarted ofbiz on server. I am not
> using tomcat as external application server.
>
> Your help is much appreciated...
>
> Thanks Much,
> Maddy
>
>
>
>
> jacques.le.roux wrote:
>>
>> Did you recompile on server (I know it's may seem a dumb question, but you
>> did not express it clearly in your mail) or copy the jar
>> file containing the class?
>> Also did you restart OFBiz ? Or are you using Tomcat as an external
>> application sever ?
>>
>> Jacques
>>
>> From: "Madhuri" <ma...@gmail.com>
>>> Hi - I am new to ofbiz and need some help with code change in a java
>>> class.
>>> I changed the java file CheckoutEvents.java to suit my requirements and
>>> it
>>> works fine on my local machine. I replaced the class file on the
>>> production
>>> server and re-started tomcat, however it does not seem to accept the new
>>> class file. Can anyone please advice on what is going wrong. Is this
>>> class
>>> cached somewhere ??
>>>
>>> Thanks Much,
>>> Maddy
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17701168.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 


Re: Java Class file change on server

Posted by Madhuri <ma...@gmail.com>.

Hi Jacques - I did not compile the java class on the server. I only compiled
it on my local machine and replaced the class file on the server. Do I have
to run compile (run ant) on server ? I restarted ofbiz on server. I am not
using tomcat as external application server. 

Your help is much appreciated...

Thanks Much,
Maddy




jacques.le.roux wrote:
> 
> Did you recompile on server (I know it's may seem a dumb question, but you
> did not express it clearly in your mail) or copy the jar 
> file containing the class?
> Also did you restart OFBiz ? Or are you using Tomcat as an external
> application sever ?
> 
> Jacques
> 
> From: "Madhuri" <ma...@gmail.com>
>> Hi - I am new to ofbiz and need some help with code change in a java
>> class.
>> I changed the java file CheckoutEvents.java to suit my requirements and
>> it
>> works fine on my local machine. I replaced the class file on the
>> production
>> server and re-started tomcat, however it does not seem to accept the new
>> class file. Can anyone please advice on what is going wrong. Is this
>> class
>> cached somewhere ??
>>
>> Thanks Much,
>> Maddy
>> -- 
>> View this message in context:
>> http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17701168.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Java Class file change on server

Posted by Jacques Le Roux <ja...@les7arts.com>.
Did you recompile on server (I know it's may seem a dumb question, but you did not express it clearly in your mail) or copy the jar 
file containing the class?
Also did you restart OFBiz ? Or are you using Tomcat as an external application sever ?

Jacques

From: "Madhuri" <ma...@gmail.com>
> Hi - I am new to ofbiz and need some help with code change in a java class.
> I changed the java file CheckoutEvents.java to suit my requirements and it
> works fine on my local machine. I replaced the class file on the production
> server and re-started tomcat, however it does not seem to accept the new
> class file. Can anyone please advice on what is going wrong. Is this class
> cached somewhere ??
>
> Thanks Much,
> Maddy
> -- 
> View this message in context: http://www.nabble.com/Java-Class-file-change-on-server-tp17699402p17699402.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>