| View previous topic :: View next topic |
| Author |
Message |
hema Regular
Joined: 25 Aug 2004 Posts: 81
|
Posted: Wed May 11, 2005 10:43 pm Post subject: creating a new process |
|
|
Hi,
I created a new process, 'NewProcess.java' and placed it in the base/src/org/compiere/process folder.
In the Report & Process window, I created a new record called NewProcess and set the classname to org.compiere.process.NewProcess. Then I linked it to a button. When I click on the button I get "ClassNotFound". My trace is as follows:
APanel.setStatusLine: ClassNotFound [11]
17:39:06.218 CPreparedStatement.executeQuery: server => CStatementVO[SEL
ECT Log_ID, P_ID, P_Date, P_Number, P_Msg FROM AD_PInstance_Log WHERE AD_PInstan
ce_ID=? ORDER BY Log_ID; #1=1000966], Remote=true
However when I link an existing compiere process to my button, it runs.
Am I missing something?
Thank you very much,
Hema |
|
| Back to top |
|
 |
new_soft
Joined: 21 Dec 2004 Posts: 28 Location: TUNISIA
|
Posted: Wed May 11, 2005 11:09 pm Post subject: creating a new Process |
|
|
Hi Hema,
I dont know why exactly, but try to re-deploy all. Perhaps. Try and let us know why.
new_soft _________________ Best Regards,
Khaled Najeh. |
|
| Back to top |
|
 |
red1 Site Admin
Joined: 06 Jul 2004 Posts: 1756 Location: Kuala Lumpur, Malaysia
|
Posted: Thu May 12, 2005 12:38 am Post subject: |
|
|
Hi New Soft,
Thanks for the compliments and u re certainly welcome !
Hi Hema,
hmm, it seems that u are entering the developer's world and doing some code! U re using Eclipse? Well if so, Eclipse can check first if your code is fully clear and clean.
When u say u run it, are u running from Eclipse or outside it? Otherwise u have to compile it and deploy the jars again. |
|
| Back to top |
|
 |
hema Regular
Joined: 25 Aug 2004 Posts: 81
|
Posted: Thu May 12, 2005 2:44 pm Post subject: |
|
|
Hi new_soft & red1,
thank you for your replies.
I am coding and running via eclipse. For testing purposes my NewProcess.java only contains the following:
package org.compiere.process;
public class NewProcess extends SvrProcess
{
/**
* Prepare
*/
protected void prepare ()
{
} // prepare
/**
* Process
* @return info
* @throws Exception
*/
protected String doIt ()throws Exception
{
return "";
} // doIt
} // TestProcess
When I run in eclipse, I still get the "ClassNotFound" error.
I also tried to redeploy via run_build.bat and run_setup.bat. I get the same error message.
I still don't know why.
Regards,
Hema |
|
| Back to top |
|
 |
hema Regular
Joined: 25 Aug 2004 Posts: 81
|
Posted: Thu May 12, 2005 3:21 pm Post subject: |
|
|
Hello again,
my process is working now. I re-dployed it a second time.
thank you very much,
Hema |
|
| Back to top |
|
 |
hema Regular
Joined: 25 Aug 2004 Posts: 81
|
Posted: Thu May 12, 2005 4:51 pm Post subject: |
|
|
Sorry,
I come back on what I wrote earlier.
My process is still gives "ClassNotFound" error.
Any idea what might be wrong?
Hema |
|
| Back to top |
|
 |
trifon Senior
Joined: 23 Dec 2004 Posts: 324 Location: Bulgaria, Sofia
|
Posted: Thu May 12, 2005 10:15 pm Post subject: |
|
|
Hi Hema,
could you try to find your org.compiere.process.NewProcess in Compiere.jar file?
Regards,
Trifon _________________ Trifon Trifonov |
|
| Back to top |
|
 |
hema Regular
Joined: 25 Aug 2004 Posts: 81
|
Posted: Fri May 13, 2005 4:06 pm Post subject: |
|
|
Hi Trifon,
Thank you very much for your help. I checked the Compiere.jar file and NewProcess.class is there.
Regards,
Hema |
|
| Back to top |
|
 |
artu
Joined: 23 Mar 2005 Posts: 1
|
Posted: Tue May 17, 2005 6:46 am Post subject: try to deploy your work |
|
|
hi Hema,
From you log :
****************
17:39:06.218 CPreparedStatement.executeQuery: server => CStatementVO[SEL
ECT Log_ID, P_ID, P_Date, P_Number, P_Msg FROM AD_PInstance_Log WHERE AD_PInstan
ce_ID=? ORDER BY Log_ID; #1=1000966], Remote=true
****************
your must check "run processes on server" at [tools--preference].And if remote debug,your remote jboss jar of your work must be new.
So,after your work,you have to get a new installation,and use this as your new server.
Maybe a little help!
artu001 |
|
| Back to top |
|
 |
|