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 |
Administrator
|
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" <[hidden email]> > 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. > |
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
|
Administrator
|
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" <[hidden email]> > > > 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" <[hidden email]> >>> 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. > |
In reply to this post by Madhuri
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" <[hidden email]> >>> 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. >>> >> >> > |
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 <[hidden email]> 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" <[hidden email]> > >>> 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. > >>> > >> > >> > > > > |
Free forum by Nabble | Edit this page |