red1.org Forum Index red1.org
Nihili est - in vita priore ego imperator romanus fui
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

creating a new process

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Growing Pains
View previous topic :: View next topic  
Author Message
hema
Regular


Joined: 25 Aug 2004
Posts: 81

PostPosted: Wed May 11, 2005 10:43 pm    Post subject: creating a new process Reply with quote

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
View user's profile Send private message
new_soft



Joined: 21 Dec 2004
Posts: 28
Location: TUNISIA

PostPosted: Wed May 11, 2005 11:09 pm    Post subject: creating a new Process Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Thu May 12, 2005 12:38 am    Post subject: Reply with quote

Hi New Soft,
Thanks for the compliments and u re certainly welcome ! Smile

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
View user's profile Send private message Send e-mail Visit poster's website
hema
Regular


Joined: 25 Aug 2004
Posts: 81

PostPosted: Thu May 12, 2005 2:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
hema
Regular


Joined: 25 Aug 2004
Posts: 81

PostPosted: Thu May 12, 2005 3:21 pm    Post subject: Reply with quote

Hello again,

my process is working now. I re-dployed it a second time.

thank you very much,
Hema
Back to top
View user's profile Send private message
hema
Regular


Joined: 25 Aug 2004
Posts: 81

PostPosted: Thu May 12, 2005 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
trifon
Senior


Joined: 23 Dec 2004
Posts: 324
Location: Bulgaria, Sofia

PostPosted: Thu May 12, 2005 10:15 pm    Post subject: Reply with quote

Hi Hema,

could you try to find your org.compiere.process.NewProcess in Compiere.jar file?

Regards,
Trifon
_________________
Trifon Trifonov
Back to top
View user's profile Send private message Yahoo Messenger
hema
Regular


Joined: 25 Aug 2004
Posts: 81

PostPosted: Fri May 13, 2005 4:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
artu



Joined: 23 Mar 2005
Posts: 1

PostPosted: Tue May 17, 2005 6:46 am    Post subject: try to deploy your work Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Growing Pains All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group