Re: [PATCH] setting charset with file uploads

2004-12-03 Thread Akmal Sarhan
Hi,

I think you are mixing charset with charencoding. please have a look at
the following explanation from www.w3.org concerning this subject:
for the time being I solved this issue by putting a charencodingfilter
for tomcat to tell it which charencoding to set for the request

start#
Character sets, coded character sets, and encodings
It is important to clearly distinguish between the concepts character
set and character encoding.

A character set or repertoire comprises the set of characters one might
use for a particular purpose  be it those required to support Western
European languages in computers, or those a Chinese child will learn at
school in the third grade (nothing to do with computers).

A coded character set is a set of characters for which a unique number
has been assigned to each character. Units of a coded character set are
known as code points. For example, the code point for the letter  in
the Unicode coded character set is 225 in decimal, or E1 in hexadecimal
notation. (Note that hexadecimal notation is commonly used for
identifying such characters, and will be used here.)

The character encoding reflects the way these abstract characters are
mapped to bytes for manipulation in a computer.

This explanation glosses over some of the detailed nomenclature related
to encoding. More detail can be found in Unicode Technical Report #17. 

###end

on the other hand according to Henning this is already fixed in 2.3.x
branch so probably a merge is due ;-) and a clear roadmap from the
developers to tell us which direction they are taking at the moment for
the next stable release.  2.4.x or 2.3.x or both 

regards

Akmal
Am Do, den 02.12.2004 schrieb Leandro Rodrigo Saad Cruz um 22:05:
 The charset isn't always US-ASCII !
 
 This problem only happens with enctype=multipar/form-data 
 (File uploads) and text form fields !
 
 This patch is against NTURBINE_2_4_M1 !


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2.3.1 thoughts

2004-11-30 Thread Akmal Sarhan
Hi all of Turbine developers
these are the things that crossed my mind so far in the migration to
2.3.1

-extended user:
according to what I have been experimenting so far, the extended user
HAS to have a db table that _IS_ _NOT_ called TURBINE_USER. otherwise
the extra columns will not be added to the db (why?). this means that we
have to rename our TURBINE_USER to eg. EXTENDED_USER . but what if we
don't (can't) do that?

-FileItem: now the fileupload package is used but I still have problems
compared to the home-brewed FileItem before:

getName() sometimes get the whole path depending on the handling browser
and I have to take care of that myself. I expect that to be handeld in
the implementation.
data.getParameters().getFileItem(file) will always return a non Null
value even if no file is selected.

-is there a good reason why TorqueUser and TorqueGroup
do not implement Retrievable so we can use them for our intake forms.

other than that we are very happy using 2.3.1 and we would be even happier if 
the Hibernate stuff could be pushed forward in the next release
so we could have an example of 2.3.x with only hibernate or with only torque.

best regards

Akmal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2.3.1 bug

2004-11-26 Thread Akmal Sarhan
Hi,

using the latest release I found out that the Rundata does not handle
the german umlaute correctly when the form has the following signature 
form enctype=multipart/form-data name=formular method=post
action=myaction 

ie it does not handle  enctype=multipart/form-data ? any ideas on how
to work around this.

regards

Akmal



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANNOUNCE] Jakarta Turbine 2.3.1 is available

2004-11-05 Thread Akmal Sarhan
Hi,

I am trying to port existing applications written with T2.2 to T2.3.1
and I came across the following issue:

using the upload service with the following code:

form enctype=multipart/form-data method=POST
input type=hidden name=action value=UploadExample /
input type=file name=filename
input type=submit value=upload /
/form

und clicking on the submit button without choosing any files would make the folowing 
java code
result in an instance of org.apache.commons.fileupload.DefaultFileItem and not null as 
expected and as
the situation was back in T2.2

ParameterParser params = data.getParameters();

//grab the FileItems available in ParameterParser
FileItem fi = params.getFileItem(filename);

bug, feature?

thanks

Akmal
Am Do, den 28.10.2004 schrieb Henning Schmiedehausen um 19:11:
 The Jakarta Turbine team is pleased to announce the release of Jakarta
 Turbine Version 2.3.1, a maintenance release of the Jakarta Turbine 2.3
 branch.
 
 Turbine is a servlet based framework that allows experienced Java
 developers to quickly build web applications. Turbine allows you to use
 personalize the web sites and to use user logins to restrict access to
 parts of your application. 
 
 Turbine is a matured and well established framework that is used as the
 base of many other projects.
 
 The list of changes can be viewed at 
 http://jakarta.apache.org/turbine/turbine/turbine-2.3.1/changes-report.html
 
 
 The full documentation is available at 
 http://jakarta.apache.org/turbine/turbine/turbine-2.3.1/
 
 The release is available through the Apache Mirror System and the Maven
 Repository at ibiblio.org
 
 Apache Mirror System
 
 
 http://www.apache.org/dyn/closer.cgi/jakarta/turbine/turbine-2.3.1/
 
 or
 
 http://www.apache.org/dist/jakarta/turbine/turbine-2.3.1/ (until the
 mirrors are synced)
 
 Maven repository
 
 
 http://www.ibiblio.org/maven/turbine/
 http://www.apache.org/dist/java-repository/turbine/
 
 Dependencies:
 
 dependency
   groupIdturbine/groupId
   artifactIdturbine/artifactId
   version2.3.1/version
   urlhttp://jakarta.apache.org/turbine/download.html/url
   typejar/type
 /dependency
 
  - The Jakarta Turbine Team
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 !EXCUBATOR:41812835258323115110917!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [turbine] log4j:ERROR setFile(null,false) call failed

2004-10-18 Thread Akmal Sarhan
Log4j is trying to find a \logs directory which of course does not
exist, you have to supply log4j with the full path to the directory
depending on your platform e.g /home/yourhome/tomcat.../logs
on linux

regards

Akmal
Am Mo, den 18.10.2004 schrieb George A um 16:26:
 hello all,
 the exception about servlet.jar did go after i deleted the servlet.jar 
 from web-inf/libs directory : ) .thanks to all those who came up with those useful 
 suggesstions and hints : ) . and now i am facing the next error ( huff , puff, pant, 
 pant .) which goes like this :
  
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
  
 and there is a long list of repeated exceptions below it . it would be again of 
 great help if anyone could give me suggesstion for it : ) . it would be highly 
 appreciated : ) .
 greetings , 
 george.
 
 
 -
   Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now
 
 !EXCUBATOR:4173d2be33557377274355!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: turbine regexp library usage

2004-05-27 Thread Akmal Sarhan
the easiest solution for us was to patch
org/apache/turbine/services/intake/validator/DefaultValidator.java

and make it use java.util.regex.*

regards

Akmal
Am Do, den 27.05.2004 schrieb Mark Lybarger um 17:00:
 could you elaborate on the pesky old problem?
 
  -Original Message-
  From: Jeffery Painter [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 27, 2004 10:54 AM
  To: Turbine Users List; [EMAIL PROTECTED]
  Subject: Re: turbine regexp library usage
  
  
  
  Thanks for the ORO tip... I had not really looked at ORO 
  before but it was 
  a pretty simple switch to move all my regexp code to use ORO 
  libraries 
  instead and got rid of a pesky old problem that had been 
  lingering for 
  sometime now. 
  
  I swapped out the regexp libs and put ORO in my old 2.2 app 
  without any 
  hiccups
  
  YMMV!
  
  Jeff Painter
  
  
  On Thu, 27 May 2004, Henning P. Schmiedehausen wrote:
  
   Mark Lybarger [EMAIL PROTECTED] writes:
   
   i noticed that (i believe) the tdk 2.1 included the 
  jakarta regexp library:
   
   jakarta-regexp-1.3-dev.jar
   
   As far as I know, regexp is dead and for 2.3 I replaced it 
  with oro in
   the intake service. Don't know if it is actually still used anywhere
   else in the code.
   
while the tdk 2.2_01 seems to include the 1.2 version of that
library.  It's in the server/lib area, but seems to be used by the
intake stuff for handling regular expression type rules.  we're
using the tdk 2.1, and notice sporadic error message 
  related to this
library (using the 1.3-dev.jar).  the error message seem to be
logged when attempting to parse or compile a regular expression in
our intake.xml, and only are noticed when we have multiple users
hitting the system (during performance/load testing).
   
   When I was working on the 2.2 code, I wasn't able to get 
  anywhere with
   regexp and it was IMHO a constant source of problems, exceptions and
   general grief without any response from the (then) still semi-active
   project. So at some point we discussed this briefly on the dev-list
   and found a consent to drop it in favour of oro.
   
   For the 2.2 code, sorry. Don't know about this anymore, 
  it's already too
   far in the past. 8-/
   
 Regards
 Henning
   
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 !EXCUBATOR:40b6032014841756110436!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: auto logging user out

2004-05-18 Thread Akmal Sarhan
I am interested to know how did you implement logging the user out when
they kill the browser.

Am Mo, den 17.05.2004 schrieb Mark Lybarger um 17:09:
 we have a requirement that a user can only be logged in from one session at a time.  
 also we're logging them out when they close their browser.  we're using a database 
 flag to show it they're logged in, and prevent subsequent logins based on that.  
 
 the problem is that if the user's session times out when logged in (database has 
 isLoggedIn set to true), they won't be able to re log into our application.  is 
 there a way in the turbine framework to tie into the session invalidation?  i see a 
 setting for the timeout period in the tr.props file, but no way to apply a piece of 
 code to run when this happens.  
 
 any suggestions/insights would be most appreciaited.
 
 thanks!
 mark
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 !EXCUBATOR:40a8d55e296782094351919!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Velocity and evaluated symbol substitution

2004-02-17 Thread Akmal Sarhan
I guess that is what you want (in a pull tool):

 public String eval(String vtl, RunData data) throws Exception
{
StringWriter sw = new StringWriter();
boolean  success =
Velocity.evaluate(TurbineVelocity.getContext(data), sw, , vtl);

if (success)
{
return sw.toString();
}

return null;
}

Am Mon, den 16.02.2004 schrieb Gerry Duprey um 22:10:
 Howdy All,
 
 I realize this is more a velocity question, but the velocity email list is 
 shared with the jakarta commons list and doesn't seem to have much velocity 
 traffic on it.
 
 What I'm trying to do is create a velocity macro that can define an input 
 field using a fixed name for the field and have that macro have provisions for 
 default values for the field based on the fields fixed name.  For example, I'd 
 love to do something like
 
 #macro ( myInput $fieldName )
INPUT TYPE=TEXT NAME=FLD_$fieldName VALUE=$!{VALUE_${fieldName}}
 #end
 
 so
 
 #myInput ( UserName )
 
 becomes
 
INPUT TYPE=TEXT NAME=FLD_UserName VALUE=Gerry
 
 Assuming my Context has a symbol called VALUE_UserName in it set to the string 
 Gerry (i.e. context.put(VALUE_UserName, Gerry)).
 
 In short, the ability to have an interpreted reference/variable name.
 
 It would also let me do things like having macros that knew how to display 
 errors attached to fields automatically.  Consider:
 
 #macro ( myInput $fieldName )
INPUT TYPE=TEXT NAME=FLD_$fieldName VALUE=$!{VALUE_${fieldName}}
#if ( ${ERROR_${fieldName}} )
  FONT COLOR=red* ${ERROR_${fieldName}}/FONT
#end
 #end
 
 This gives my verification routines a great deal of flexibility and allows 
 very generic forms processing modules.
 
 Any thoughts (on how to do this or if you think I'm bonkers, that is :-)?
 
 Gerry


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handling of too big fileupload's - exception?

2004-01-14 Thread Akmal Sarhan
there is no way to do that unless you patch the
setRequest method of DefaultParameterParser.class where the exception is
caught and simply logged :-(

regards
Akmal


- Original Message - 
From: Chris Joelly [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 12:08 PM
Subject: Handling of too big fileupload's - exception?


 Hi!

 i set the fileupload service to limit fileuploads to 20mb.
 how can i handle exceptions properly if somebody tries to upload a
 bigger file than the configured limit?

 thx, Chris

 -- 
 mit freundlichen Grüßen / with kind regards

 Ing. Christian Jölly @ Solutions
 unycom  Information Technology Services GmbH
 A-8042 Graz | Schmiedlstraße 1 / III

 Tel: ++43 (0)316 / 818 828 - 30
 Fax: ++43 (0)316 / 818 828 - 38
 [EMAIL PROTECTED]
 http://www.unycom.com

 Hey, schon IIS 5.0 ist ein Problem!  Der Kunde weiß, daß er mit dem
 Setup in 4 Monaten spätenstens

 * gehackt
 * trojaned
 * oder total verwirrt

 ist?
 -- Ralf Hildebrandt

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Turbine and database use

2003-12-16 Thread Akmal Sarhan
Eric,

I personally think what you are doing is great and will attract a lot of
users that do not want to be only tied to torque.

What I think would be just perfect, is that instead of only a how to you
could provide a  working skeleton application as an example (Hibernate e.g),
so we could just dump it into the container and then start the copypaste
part!

regards

Akmal
- Original Message - 
From: Eric Pugh [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 4:42 PM
Subject: RE: Turbine and database use


 Nope!

 And actually, if you want to look at the fulcrum security stuff, it is all
 based around a model and a implementation..

 The model is how you hook up things like users, groups, roles,
permissions,
 etc..  what ever entities you have.  the implementation supports it..

 Right now we have complete implementations for hibernate and memory.  It
 would be very easy to make a 'text' or 'file' implementation to support
the
 existing models.

 Check out the code from cvs, and copy the /memory project to /file and
 you're off to the races..

 And no DB dependencies in Turbine!

 Eric


  -Original Message-
  From: Gerry Duprey [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 16, 2003 3:15 PM
  To: Turbine Users List
  Subject: Re: Turbine and database use
 
 
  Thanks Eric,  I'll take a look at that.
 
  Other than the user/security stuff though, does Turbine have
  any other
  database needs itself?  In otherwords, if I used fulcrum and
  plugged in a
  security system based on text files (just as an example),
  would I need a
  database connected at all for Turbine to work?
 
  Thanks!
 
  Gerry
 
  Eric Pugh wrote:
   Gerry,
  
   Not sure if you have looked at it, but look at the Fulcrum
  Security code.
   This is a pluggable security framework that makes it easy
  to roll your own
   implementation.
  
  http://jakarta.apache.org/turbine/fulcrum/fulcrum-security/ind
  ex.html will
   get you to the online info, however, what is in CVS has been highly
   improved.  Just working on finishing updating the docs.
  
   If you look at the unit tests, you can see how you can use Turbine's
   security, but delegate through an adapter to this pluggable
  security engine.
  
   Eric Pugh
  
  
  -Original Message-
  From: Gerry Duprey [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 16, 2003 2:27 PM
  To: Turbine Users List
  Subject: Turbine and database use
  
  
  Howdy,
  
  I'm still trying to figure out how to best integrate our
  project into Turbine
  and I keep getting stuck on the Torque part.  I was hoping
  someone could
  clarify a few things for me.
  
  1) Besides user login (and related groups/roles/permissions),
  does Turbine
  itself need access to a database to work?  If so, what sort
  of things does it
  need to store/access?
  
  2) If the answer to #1 is no, (turbine w/o security/user
  stuff doesn't use the
  database), is there any specific reason why you could not
  create an entirely
  seperate user authentication code (entirely outside the
  turbine framework -
  turbine would not even be aware of it).
  
  I'm not saying that we want to roll our own security/user
  stuff, but I'm
  trying to figure out how much of those function *have* to be
  done wtih
  cooperation of Turbine in order to make things work vs ones
  that can be, but
  do not have to be, cooperating with Turbine.
  
  Thanks!
  
  Gerry
  
  --
  Gerry Duprey
  
  SchoolsOPEN, LLC
  123 North Ashley, Suite 120
  Ann Arbor, MI 48104
  Phone (877) 483-1944 Ext. 401
  Fax (734) 661-0819
  
  Visit us Online at www.Schools-OPEN.com
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
 
  --
  Gerry Duprey
  
  SchoolsOPEN, LLC
  123 North Ashley, Suite 120
  Ann Arbor, MI 48104
  Phone (877) 483-1944 Ext. 401
  Fax (734) 661-0819
 
  Visit us Online at www.Schools-OPEN.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: feedback for tdk 2.3 (dated 2003-12-10)

2003-12-15 Thread Akmal Sarhan
for version 5.0.* of tomcat you will have to uncomment the following two
snippets in $tomcat/conf/web.xml

!--
servlet
servlet-nameinvoker/servlet-name
servlet-class
  org.apache.catalina.servlets.InvokerServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
load-on-startup2/load-on-startup
/servlet
--

 !-- The mapping for the invoker servlet --
!--
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
--

hope this helps

Akmal
- Original Message - 
From: Daniel [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Monday, December 15, 2003 5:52 PM
Subject: feedback for tdk 2.3 (dated 2003-12-10)



 Hi,

 I'm testing out the new tdk 2.3 (dated 2003-12-10) provided by Jeff
 Painter, and here's some feedback:

 - The build process was pretty good, only about 8 warnings about the
   deprecation of getMapBuilder().

 - Starting TDK-Tomcat worked and the newapp was accessible and working.

 - Same newapp won't work in Tomcat 5.0.16 at all, even though it appears
   to be loaded.  Anyone tried things under Tomcat 5.0.16 yet?

 - There were no log4j errors when using the TDK-Tomcat (which is 4.1.29),
   but the same exact newapp would complain under Tomcat 5.0.16 and would
   log turbine stuff to console.  Here's the startup log4j error under
   Tomcat 5.0.16:

 snipped
 log4j:ERROR Could not find value for key
 log4j.appender.org.apache.torque.engine

 log4j:ERROR Could not instantiate appender named
 org.apache.torque.engine.
 [INFO] Turbine - -Configured log4j from
 C:\Java\Software\jakarta-tomcat-5.0.16\w
 ebapps\newapp\WEB-INF\conf\Log4j.properties
 [INFO] Turbine - -Loaded configuration  (Properties) from
 /WEB-INF/conf/TurbineR
 esources.properties
 (C:\Java\Software\jakarta-tomcat-5.0.16\webapps\newapp\WEB-I
 NF\conf\TurbineResources.properties)
 snipped

   I tried my solution of replacing the commons-logging-1.0.2.jar with
   version 1.0.3 under newapp/WEB-INF/lib but that didn't work so I guess
   there's a deeper problem somewhere.

 - I noticed there are 2 Log4j.properties files, one under WEB-INF/conf and
   the other under WEB-INF/classes, and are identical.  I believe the one
   under WEB-INF/classes isn't necessary since TR.props references the one
   under WEB-INF/conf.

 - And upon stopping the TDK-Tomcat, it gives an error for the xmlrpc
   service:

 snipped
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Dec 15, 2003 11:12:21 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Dec 15, 2003 11:12:21 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Dec 15, 2003 11:12:21 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15
 config=C:\Java\Software\jakarta-tomcat-5.0.16\conf\jk2.properties
 Dec 15, 2003 11:12:21 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 12390 ms
 Dec 15, 2003 11:12:30 AM org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 Dec 15, 2003 11:12:30 AM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stoping http11 protocol on 8080
 Catalina:type=ThreadPool,name=http8080
 [DEBUG] ManagerBase - -Stopping
 [DEBUG] ManagerBase - -Unloading persisted sessions
 [DEBUG] ManagerBase - -Saving persisted sessions to SESSIONS.ser
 [DEBUG] ManagerBase - -Unloading 0 sessions
 [DEBUG] ManagerBase - -Expiring 0 persisted sessions
 [DEBUG] ManagerBase - -Unloading complete
 [INFO] BaseServiceBroker - -Shutting down all services!
 [INFO] BaseServiceBroker - -Shutting down service: VelocityService
 [INFO] BaseServiceBroker - -Shutting down service: XSLTService
 [INFO] BaseServiceBroker - -Shutting down service: TemplateService
 [INFO] BaseServiceBroker - -Shutting down service: IntakeService
 [INFO] BaseServiceBroker - -Shutting down service: PullService
 [INFO] BaseServiceBroker - -Shutting down service: SecurityService
 [INFO] BaseServiceBroker - -Shutting down service: UploadService
 [INFO] BaseServiceBroker - -Shutting down service: UniqueIdService
 [INFO] BaseServiceBroker - -Shutting down service: XmlRpcService
 [ERROR] BaseServiceBroker - -Shutdown of a nonexistent Service
 'XmlRpcService' was requested
 org.apache.turbine.services.InstantiationException: Failed
 to instantiate service XmlRpcService: A class referenced by
 org.apache.turbine.services.xmlrpc.TurbineXmlRpcService is unavailable.
 Check your jars and classes.:
 org/apache/xmlrpc/WebServerjava.lang.NoClassDefFoundError:
 org/apache/xmlrpc/WebServer
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at
 org.apache.turbine.services.BaseServiceBroker.getServiceInstance(Base
 ServiceBroker.java:554)
 at
 org.apache.turbine.services.BaseServiceBroker.shutdownService(BaseSer
 

Re: simple intake question

2003-12-10 Thread Akmal Sarhan
have you tried:

Groupgroup = intake.get(Task, IntakeTool.DEFAULT_KEY);
 group.removeFromRequest();


Akmal
- Original Message - 
From: Jeff Painter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 4:12 PM
Subject: simple intake question



 I have been working diligently on getting the tdk-2.3 ready and I'm
 working on an intake example to include with the sample app.

 It works! however, I have a pretty simple question

 once the form is posted, I have the input form and data showing on the
 same screen for simplicity at the moment. if the data validates and posts
 correctly, the intake group still has the previous postings data in it.

 I've tried just doing a simple group = null; statement in the action class
 once the data has been saved, but when the screen comes back, it is still
 populating the input fields with the previous rounds data.

 any ideas on how to clear the intake data in the action class?

 once this is worked out, I'm pretty sure my tdk is ready for release

 Thanks

 -- 
 Regards,

 Jeffery Painter

 - --
 [EMAIL PROTECTED] http://kiasoft.com
 PGP FP: 9CE8 83A2 33FA 32B1 0AB1  4E62 E4CB E4DA 5913 EFBC

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)

 iD8DBQE/qEQE5Mvk2lkT77wRAnMJAJ9vJ6qOkg/mvqqIpz7troCEQJ8bFACglu/U
 YNXabx7DZOV2Hd9LwSTmGpY=
 =dWiu
 -END PGP SIGNATURE-


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mysql vs. PostgreSQL

2003-12-09 Thread Akmal Sarhan
very interesting, was very helpfull. thanks for all those who replied.

regards
Akmal
- Original Message - 
From: Scott Eade [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Monday, December 08, 2003 12:07 PM
Subject: Re: Mysql vs. PostgreSQL


 Akmal Sarhan wrote:

 we are in the process of migrating our Turbine applications from MySql to
PostgreSQL and we would like to ask those who had some experience with them
to highlight the pros and cons if possible.
 
 
 I have just gone through this exercise - quite a difficult task, but
 IMHO worth it.

 The big pros are:
 + Transactions (though you can get this working in MySQL)
 + Enforcement of referential integrity
 + Support for subselects (though not via Criteria)

 For some good information see:

http://nagoya.apache.org/wiki/apachewiki.cgi?TorqueProjectPages/PostgreSQLFAQ

 Scott

 -- 
 Scott Eade
 Backstage Technologies Pty. Ltd.
 http://www.backstagetech.com.au





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mysql vs. PostgreSQL

2003-12-08 Thread Akmal Sarhan
Hello,

we are in the process of migrating our Turbine applications from MySql to PostgreSQL 
and we would like to ask those who had some experience with them to highlight the pros 
and cons if possible.

thanks

Akmal

Re: Using Java applets in a Turbine/Velocity webapp

2003-11-21 Thread Akmal Sarhan
your applet jars/ files have to be accessed by the clients. you will have to
put it somewhere where you can basically be able to download it by pointing
at that url.
try to hard code the url to point at the location of it. in short it has to
be accessable just like images.

regards
Akmal
- Original Message - 
From: David Ramsey [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Friday, November 21, 2003 3:51 AM
Subject: Re: Using Java applets in a Turbine/Velocity webapp


 Most of the time, a bad magic number error message seems to mean I
 can't find or load your class or jar files.

 One might speculate why, after a decade of development, this hasn't
 been tweaked a little. I mean, really: is it that hard for Sun to make
 their Java plugin discern the difference between Java files that are
 munged as opposed to those that simply aren't present? How many
 programmers have wasted how much time before figuring out that bad
 magic number is simply a generic message without any meaning at all?

 That said, I suspect my problem may be that Turbine's security
 constraints aren't set up correctly. Should I be able to access an
 applets directory at the webapp root without giving it specific
 permissions in web.xml, something like this:

  web-resource-collection
  web-resource-nameapplet/web-resource-name
  url-pattern/applet/*/url-pattern
  /web-resource-collection

 (Of course, that doesn't work, either, but I still think I'm on the
 right track. Suggestions? )

 -- David

 On Nov 19, 2003, at 5:48 PM, EXT-McTaggart, Peter wrote:

  Not sure if this will help but here are a couple of thoughts:
 
  Your CODEBASE tag == are you setting up this correctly in the velocity
  template
  using something like $content.getURI(applet) will give you the proper
  URL (in Turbine 2.3 at least) for
  the applet directory.
 
  You might also want to move your class jars used by the applet from
  under the WEB-INF into the CODEBASE directory.
  The web container won't(? shouldn't) serve anything up from under
  WEB-INF for security reasons (this is for use by server side things),
  but not sure how the applet interacts here, maybe worth a try.
 
  I found a bad magic number that says that the class files have been
  transferred in ascii not binary -- are your mime-types
  set appropriately for .class and .jar files? in tomcat /conf/web.xml.
 
 
  hope it helps,
 
  cheers
  Peter



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is Criteria Serializable?

2003-11-11 Thread Akmal Sarhan
yes, Criteria is not Serializable :-(

Akmal
- Original Message - 
From: Jeff Owens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 1:24 AM
Subject: Is Criteria Serializable?


I'm creating an app using TDK-2.2.  Can Criteria be Serialized?  I realize
that its listed in the Javadocs as Serializable, but what I set on one end
is NOT what I get on the other.  When showing both  using a toString(),
they don't even look similar!

Thanks for any help.

Jeff Owens


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extended User BUG FIXED

2003-10-27 Thread Akmal Sarhan
for those of you who had problems restarting tomcat when using the Extended User in 
T2.2 , I have found (finally) the bug:

simply comment out the following line in the abstract class BaseYourExtendedUser:

private static final YourExtendedUserPeer peer = new YourExtendedUserPeer();


that was it ;-)

regards
Akmal



[ANN] Veloeclipse for editing html/velocity code

2003-10-10 Thread Akmal Sarhan
I have just contributed a plugin for eclipse based on veloedit to allow you to code 
html/velocity inside eclipse
check it out:

http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=415

Akmal Sarhan

Re: Hibernate or Torque... What's the Future?

2003-09-09 Thread Akmal Sarhan
I think Eric that it would be interesting for us to know your experience
with both of the tools, and why you switched to Hibernate.
and how about the learning curve..etc.
 regards
Akmal
- Original Message - 
From: Eric Pugh [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 5:51 PM
Subject: RE: Hibernate or Torque... What's the Future?


 I for one am hell for leather headed towards using Hibernate.  I used
torque
 before, but for various reasons decided to go for Hibernate.  You aren't
 wasting your time building your project in torque however IF, and big IF,
 you use a good seperation between objects and data objects.  If you have
 business logic spewed all over your various Torque objects, then you will
 hate life when it comes time to port.  But, if you have data objects
 (torque) and then either wrappers or business objects that pull from data
 objects, then porting is not too bad.

 What I learned was the ORM tools may come and go.  Torque, then Hibernate,
 but I bet is in time it'll be something else.  Hence the reason to
seperate
 it out.

 Basically, if you can write your app with NO persistence, and then later
add
 your persistence in, then you wrote it correctly, and plugging in
 Torque/Hibernate/JDO will be okay...

 I use hibernate extensively and successfully with Turbine.  There is a
 howto:
 http://jakarta.apache.org/turbine/turbine-2.3/howto/hibernate-howto.html
 available.  Getting started with Hibernate via Avalon also get's you ready
 for T2.4 and lots of Avalonized components!

 Also,

http://jakarta.apache.org/turbine/fulcrum/multiproject/fulcrum-security/inde
 x.html there is a hibernate based security system.  And in the unit tests
is
 an example of using it in t2.3 with the turbine user/groups/roles etc...

 Eric

  -Original Message-
  From: Matthew Pomar [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 09, 2003 5:09 PM
  To: [EMAIL PROTECTED]
  Subject: Hibernate or Torque... What's the Future?
 
 
  A proposal is included in Turbine version 2.3 to integrate Hibernate.
 
  It is my impression Hibernate is widely used and has fantastic
  documentation. There are a number of code generation
  utilities for it, and
  it appears to be well tested and high performance.
 
  I would like to make sure that I'm not wasting my time
  builing my project on
  Torque if it will be replaced by Hibernate in the near future.
 
  Does anyone know the status of the Hibernate integration?
 
  Thanks,
   - Matt
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Password changing!!

2003-09-04 Thread Akmal Sarhan
data.save();

cheers
Akmal
- Original Message - 
From: Inandjo Taurel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 3:57 PM
Subject: Re: Password changing!!


 yep lou, i did!
 Still on loggout, my turbine usr password comes back to the old one!
 
 Did you remember to save the user?
 TurbineSecurity.saveUser(user) (or something like
 that) or user.save() i think should work
 
 -Lou
 
 --- Inandjo Taurel [EMAIL PROTECTED] wrote:
   hi,
  
   am having a prblem with a turbine_user password that
   i modify.
   Once i finished modifying it,forcing that password,
   saving it, it then comes
   back to the old password when i loggout.
   Is there something else that i should do?
  
  
 _
   MSN 8 helps eliminate e-mail viruses. Get 2 months
   FREE*.
   http://join.msn.com/?page=features/virus
  
  
  
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE* 
 http://join.msn.com/?page=features/virus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logined user cannot update himself/herself with Flux

2003-09-01 Thread Akmal Sarhan
data.save();


;-)
Akmal
- Original Message - 
From: mei xiao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 5:00 AM
Subject: Logined user cannot update himself/herself with Flux


 Hi,

 I tried turbine sample application: Flux. I logined and updated my first
name.
 it seems successful, and database updated. But after I logouted, the
original first name
 restored! I checked source code, and found out the reason for that is the
user in rundata
 was not be updated, and it was saved when user logout.

 I wrote my own action class, based on FluxUserAction's doUpdate method.
 I added data.setUser(user) (user is the user in flux) at the end, and
printed out with
 System.out.println(data.getUser().getFirstName()) to confirm it.
 The wield thing is after I went to other screens. $data.User.FirstName
still printed
 the original value?!

 Can anybody tell what is the reason for that, or I missed something.
 Any help much appreciated.

 Regards,

 Mei Xiao


 MyVoice http://www.myvoice.com.au

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: extended user class not found problem

2003-08-21 Thread Akmal Sarhan
for those who are investigating the matter, here is how far I got with
debugging:
 without extending TurbineUser :
 Turbine  init() is called EVERY TIME tomcat is stopped and then started
then a singleton class:TurbineServices is called with getInstance() and then
in the init() of Turbine, initPrimaryServices(config) of it is called
ensuring that the configuration ( BaseConfiguration()) of the extended
BaseServiceBroker class is mapped

 what happens when extending TurbineUser is that the init() of Turbine class
is called every other time and therefore NO CONFIGURATION mapping and a
NPE( in tomcat) logs when trying to load the services from the properties
file

Akmal

- Original Message - 
From: oron ogdan [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 12:27 AM
Subject: RE: extended user class not found problem


 Just finished migrating from 2.2 to 2.3 RC1 successfully
 take a look at the 2.3 documents for the new TorqueSecurityService.

 while not trivial to migrate, it does solve the ExtendedUser not found
 problem
 good information on these emails from the developers list as well

 http://www.mail-archive.com/[EMAIL PROTECTED]/msg12645.html
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg12663.html

 Oron

 -Original Message-
 From: Scott Eade [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 20, 2003 3:43 PM
 To: Turbine Users List
 Subject: Re: extended user class not found problem


 Henning P. Schmiedehausen wrote:

 Michal Frackowiak [EMAIL PROTECTED] writes:
 
 
 I have a diffrent entry in Tomcat's logs. just after a tomcat is
 started, my app throws an error. what helps is reloading app using the
 manager application. but when I start tomcat and try to use my app I get
 an entry in logs:
 
 
 
 Do you really need session persistence over container restarts? If not,
 configure your container to not save the sessions.
 
 
 While I haven't checked the latest tomcat release, certainly up to now
 the mechanism provided to stop the sessions from being persisted across
 a context reload/container restart does not in fact work.

 I have made the script I use to start tomcat delete the persisted session
 file.  If it is a system that I alone am testing the problem usually does
 not occur if I logout before I reload the context manually - if you auto
 reload then you are probably going to have to restart manually in order
 to clear the persisted sessions (as suggested by Michal).

 It would be great to eventually track down the culprit.

 Scott

 --
 Scott Eade
 Backstage Technologies Pty. Ltd.
 http://www.backstagetech.com.au





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: extended user class not found problem

2003-08-20 Thread Akmal Sarhan
I think the question should be: why this _ONLY_ happens with the extended
user and not with the _normal_ TurbineUser ?
or does anybody have this problem without extending the user?!!
regards
Akmal
- Original Message - 
From: Scott Eade [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 4:42 PM
Subject: Re: extended user class not found problem


 Henning P. Schmiedehausen wrote:

 Michal Frackowiak [EMAIL PROTECTED] writes:
 
 
 I have a diffrent entry in Tomcat's logs. just after a tomcat is
 started, my app throws an error. what helps is reloading app using the
 manager application. but when I start tomcat and try to use my app I get
 an entry in logs:
 
 
 
 Do you really need session persistence over container restarts? If not,
 configure your container to not save the sessions.
 
 
 While I haven't checked the latest tomcat release, certainly up to now
 the mechanism provided to stop the sessions from being persisted across
 a context reload/container restart does not in fact work.

 I have made the script I use to start tomcat delete the persisted session
 file.  If it is a system that I alone am testing the problem usually does
 not occur if I logout before I reload the context manually - if you auto
 reload then you are probably going to have to restart manually in order
 to clear the persisted sessions (as suggested by Michal).

 It would be great to eventually track down the culprit.

 Scott

 -- 
 Scott Eade
 Backstage Technologies Pty. Ltd.
 http://www.backstagetech.com.au





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: extended user class not found problem

2003-08-19 Thread Akmal Sarhan
well, I am trying to dig into the problem but at the moment I have hardly
any time, I can tell you though that the problem is a serialization problem:

look into your catalina logs and you will find something similar to the
following:
Cannot serialize session attribute turbine.user for session
0D269FE6C3FBACDE7BBD4026C4F6EC90
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JCategoryLog
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
 at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java
:1439)
 at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.
java:881)
 at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:536)
 at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:691)
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3669)
 at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
 at
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja
va:470)
 at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852)
 at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:758)
 at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:738)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:360)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:554)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
 at
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:
624)

once I have a chance I'll try to fix it, if no one else had done that
already
Akmal
- Original Message - 
From: oron ogdan [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 11:39 AM
Subject: RE: extended user class not found problem


 I am trying to upgrade to 2.3 RC1 and have the problem now permanently
 ...

 -Original Message-
 From: Michal Frackowiak [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 8:41 AM
 To: Turbine Users List
 Subject: Re: extended user class not found problem


 are we the only ones that have such a problem? is it common or just
 everybody knows the answer? ;-)

 regards - michal frackowiak

 Michal Frackowiak wrote:

  Hi!
 
  I have a similar problem with the same error. When I start Tomcat
  (with my app) the container is unable to locate the class
  ExtendedUser. What helps is reloading my application (with Tomcat's
  www manager).
  The same goes with Resin :-(
  What would help? putting ExtendedUser into some jar in WEB-INF/lib?
 
  turbine 2.2.1 compiled from sources, Tomcat 4.1.24, JDK 1.4.2
 
  bye - michal
 
 
  oron ogdan wrote:
 
  I think it has to do with the container, try restarting the server
twice
  I have the same problem with TomCat, this happens every other startup
  of the
  server
  on production I am using Resin, which works just fine and does not
  exhibit
  the same problem
 
  Oron
 
  www.netada.co.uk
 
  -Original Message-
  From: Jeffery Painter [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 14, 2003 12:13 AM
  To: Turbine Users List
  Subject: extended user class not found problem
 
 
  I have had an app running fine in tdk 2.1 forever and have spent the
  past two days migrating it to 2.2.01
 
  The extended user seems to work fine, except when I try to quickly stop
  and restart the server, or when I do a recompile on the code base.
 
  I have to force an ant clean, ant compile, then start the server up
  before it will load the custom User class I have built.
 
  Has anyone else seen this problem before? it is a pain in the debugging
  stage... shouldn't be a problem in production as long as the server
  doesn't need to be restarted... this seems odd.
 
  my timeout period is set to 8 hours, I haven't tried adjusting this
  value but it worked fine in 2.1 and everything else seems to work fine.
  It loads perfectly after a recompile and server restart.
 
  jdk 1.4.1_01, tdk-2.2.01, redhat and mysql database
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



 -
 To unsubscribe, e-mail: 

Re: Intake Group SetProperties and empty fields

2003-08-14 Thread Akmal Sarhan
this is a known bug of this version, AFAIK it is fixed in the latest CVS

regards
Akmal
- Original Message -
From: oron ogdan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 5:49 PM
Subject: Intake Group SetProperties and empty fields


 Using intake on turbine 2.2.1
 I have noticed that intake's setProperties in Group checks if the field
has
 been set or not
 and only if it's set, will it set the correct property. How can I make
 intake
 set the field even if it's empty,

 I have a user details form where the user can choose to omit some details
 previously filled.

 Regards

 Oron

 www.netada.co.uk


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: intake Group setProperties and scarab ManagerUser.java

2003-07-27 Thread Akmal Sarhan
well, I am not really sure why scarab is not using the .setProperties(..)
but it functions exactly as you expected to.

Akmal
- Original Message -
From: Daniel Rubin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 26, 2003 11:54 PM
Subject: intake Group setProperties and scarab ManagerUser.java


 I think I must be misunderstanding the function of the method
 .setProperties( Object )
 in the intake class Group. I imagined it to iterate through the fields
 of the Group and then try to set the corresponding properties in the
 Object... so for example :

 the field UserName in the Group instance would be used in a call to
 Object.setUserName( ___ )

 I am unable to get it to work as I describe in my own application so I
 went looking through scarab and find that in the case below the
 functionality I am hoping intake provides is not made use of. The 'su'
 object's properties are explicitly set one after another...

 --
 1  register = intake.get(Register, IntakeTool.DEFAULT_KEY, false);

 2  su  = (ScarabUser) TurbineSecurity.getAnonymousUser();
 3  //su.setUserName(data.getParameters().getString(UserName));
 4  su.setUserName(register.get(Email).toString());
 5  su.setFirstName(register.get(FirstName).toString());
 6  su.setLastName(register.get(LastName).toString());
 7  su.setEmail(register.get(Email).toString());
 8  su.setPassword(register.get(Password).toString().trim());
 -

 I am hoping to replace lines 4 to 8 with something like
 'register.setProperties( su )'. The fact that scarab doesn't do this
 makes me think that I've got the wrong end of the stick.

 Please help set me straight :) Turbine seems quite super. Thanks list.

   - Daniel


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Criteria.addAscendingOrderByColumn() bug?

2003-07-10 Thread Akmal Sarhan
try initializing Criteria by passing the name of your db to the it ;-)

regards
Akmal
- Original Message - 
From: Tim Clotworthy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 10:09 PM
Subject: Criteria.addAscendingOrderByColumn() bug?


 Hello,
 I was hoping some could tell me whether there are any know bugs with the
 org.apache.torque.util.Criteria. addAscendingOrderByColumn() method? I
 have a very simple query:
 
 FESCriteria crit = new FESCriteria();
 crit.addAscendingOrderByColumn(RefTransactionCodesPeer.TYPE_OF_TRANSACTI
 ON);
 
 transList = (ArrayList) RefTransactionCodesPeer.doSelect(crit);
 
 If I leave out the addAscendingOrderByColumn line, it works fine. When
 included, I get an exception: 
 
 java.lang.NullPointerException
 at
 org.apache.torque.util.BasePeer.createQuery(BasePeer.java:1209)
 at
 org.apache.torque.util.BasePeer.createQueryString(BasePeer.java:927)
 at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1321)
 at
 com.hotapp.fes.om.BaseRefTransactionCodesPeer.doSelectVillageRecords(
 BaseRefTransactionCodesPeer.java:398)
 at
 com.hotapp.fes.om.BaseRefTransactionCodesPeer.doSelectVillageRecords(
 BaseRefTransactionCodesPeer.java:366)
 at
 com.hotapp.fes.om.BaseRefTransactionCodesPeer.doSelect(BaseRefTransac
 tionCodesPeer.java:334)
 at
 com.hotapp.fes.support.FESSupportDAO.selectTransTypes(FESSupportDAO.j
 ava:202)...blah, blah, blah..
 
 I have verified that the RefTransactionCodesPeer.TYPE_OF_TRANSACTION is
 equivalent to a valid and appropriate String value, so its not that.
 
 Any ideas would be greatly appreciated. Thanks.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [PATCH]DynamicURI.java

2003-06-23 Thread Akmal Sarhan
Hi,

here is the attachment.

 Please tell us, against with version of Turbine is this patch.
I had this problem with T2.2 but looking at the code in the CVS head, it
hardly changed so the patch is against the CVS head
  Does the new URI handling scheme has the same problem?
I can not tell about that because I am not using T2.3 at the moment

 Regards
 Henning

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Correct path name for logging in 2.3?

2003-06-12 Thread Akmal Sarhan
I have the same problem with Turbine 2.2

the thing is that when Log4j encounters a path that has a ${, it tries to
look for it in the Sysetem properties, if that fails it tries to load it
from the properties file, but guess which one? : log4j.properties and since
${ApplicationRoot} is written on Turbine start up to TR.properties, log4j
returns simply an empty String.

regards
Akmal
- Original Message -
From: Quinton McCombs [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 11:09 PM
Subject: RE: Correct path name for logging in 2.3?


 This also works fine for me.  I use it on WinXP and Linux.

 
 Quinton McCombs
 NequalsOne - HealthCare marketing tools
 mailto:[EMAIL PROTECTED]
 http://www.NequalsOne.com

  -Original Message-
  From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 11, 2003 4:06 PM
  To: [EMAIL PROTECTED]
  Subject: Re: Correct path name for logging in 2.3?
 
 
  [EMAIL PROTECTED] writes:
 
  --_=_NextPart_001_01C32F53.F9C69D00
  Content-Type: text/plain;
   charset=iso-8859-1
 
  Hi,
 
  this is Java, so you might end up forward slashes even under
  Windows. I haven't tried that yet but I will have to deploy
  on Windows pretty soon so I will get some more information on that.
 
  This works:
 
  web.xml:
 
  servlet
  servlet-namedemoapp/servlet-name
  servlet-classorg.apache.turbine.Turbine/servlet-class
  init-param
  param-nameproperties/param-name
 
  param-value/WEB-INF/conf/TurbineResources.properties/param-value
  /init-param
  /servlet
 
  TurbineResources.properties:
 
  log4j.file = /WEB-INF/conf/Log4j.properties
 
  Log4j.properties:
 
  log4j.appender.turbine = org.apache.log4j.FileAppender
  log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
  log4j.appender.turbine.layout =
  org.apache.log4j.PatternLayout
  log4j.appender.turbine.layout.conversionPattern = %d [%t]
  %-5p %c - %m%n log4j.appender.turbine.append = false
 
  I use this all the time and it never gave me any trouble.
  Running with JDK 1.3.1 and 1.4.1 under RedHat Linux 7.3
 
  I will add Testing under Windows 2k for my list of things
  to do before we push 2.3 out of the door.
 
  But this above _should_ work without changes (even without
  changing the / to \ on Windows 2k). This is how the Java
  platform is defined.
 
  Regards
  Henning
  --
  Dipl.-Inf. (Univ.) Henning P. Schmiedehausen  INTERMETA GmbH
  [EMAIL PROTECTED]+49 9131 50 654 0   http://www.intermeta.de/
 
  Java, perl, Solaris, Linux, xSP Consulting, Web Services
  freelance consultant -- Jakarta Turbine Development  -- hero for hire
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Torque Problem

2003-03-30 Thread Akmal Sarhan
pay attention that CATEGORY has some issues with torque/turbine and you
should change the name if you want to use torque :(
regards
Akmal
- Original Message -
From: Jürgen Hoffmann [EMAIL PROTECTED]
To: 'Donald Rosengartner' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:39 AM
Subject: AW: Torque Problem


Hi Donald,

I am using eclipse 2.1 as my ide and use jpda to step trace any bugs in
my webapps with torque/turbine. First thing. If I am creating a complex
query that uses joins or distincts, criteria is very error prone.
In these cases I am using Torques Ability to use self-written sql.
This is done by using the following syntax.

BasePeer.executeQuery(sql);
http://db.apache.org/torque/apidocs/org/apache/torque/util/BasePeer.html
#executeQuery(java.lang.String)

This returns you a List with com.workingdogs.village.Record Objects,
which you can then map to your objects using:

YourGeneratedPeerClass.populateObjects(ListOfVillageRecords)

Please remember that this mapping only works if you have all necessary
columns in your SELECT Statement and they are in the correct order.

Otherwise you can iterate over the Record Objects using:


for (Iterator iter = RecordList.iterator(); iter.hasNext();)
{
Record element = (Record)iter.next();
int column = 1;
String firstName = element.getValue(column).asString(); // only as
an example
int column = 2;
String lastName = element.getValue(column).asString(); // only as an
example
.
.
.
}

HTH



Kind regards


Jürgen Hoffmann
ByteACTION GmbH

cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer



-Ursprüngliche Nachricht-
Von: Donald Rosengartner [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 30. März 2003 06:55
An: [EMAIL PROTECTED]
Betreff: Torque Problem


First, your English is very good. Did you study in America previously? I
lived in Tuebingen, Germany in 1992-3 while My ex-wife studied there. I
wish my German was half what your english appears to be. Anyway, please
consider the following question. I've seen many postings on the torque
newslist for this problem, but nothing that resembles a solution. After
seeing your posting dated 2-15-03, I believe you might have enough
expertise to handle this.. if you're willing.

Database is MySql. Torque vs. torque-3.0-rc2
My tables are CUSTOMER, LOCATION, CATEGORY.
My criteria object is being built like this:

locationCrit.add(LocationPeer.FK_STATE, stateCode);
locationCrit.add(CategoryMinorPeer.CATEGORY_NAME,(Object)(CategoryMinorP
eer.CATEGORY_NAME +  LIKE ' + minorCategory + '),Criteria.CUSTOM);
locationCrit.addJoin(CategoryMinorPeer.FKCUSTOMER_ID,CustomerPeer.CUSTOM
ER_ID);
locationCrit.addJoin(LocationPeer.FKCUSTOMER_ID,CustomerPeer.CUSTOMER_ID
);

locationCrit.addOrderByColumn(CustomerPeer.CUSTOMER_NAME);
locationCrit.addGroupByColumn(CustomerPeer.PAID_AD);
locationCrit.setDistinct();
List marinas = (List) CustomerPeer.doSelect(companyCrit);

***
Problem(1): if OrderBy,GroupBy are used together the whole thing fails;
The database is never hit, and the sql does not get written to the
Tomcat console. As a workaround, I'm considering a
Collections.sort(listname) with no luck so far. Have you attempted
anything like this? I believe the Customer object is mapped somehow to
the two joined tables allowing the customer.getCategory() method. Is
this perhaps interferring with the sort of Customer?

(2) On the distinct portion, the sql is being created as if intended:
select distinct(col1,col2,col3,col4,col5,...) from ...
instead of:
select distinct(col1) col2, col3, col4 ... from ...

(3) What are the import statements on your extended BasePeer that
enables logging for your debugging? Or is this capability enabled
through some properties setting in your torque setup?

Do you have an IDE for step tracing your code? My brother is a linux
administrator and recommended Eclipse from IBM. I'm using Win2K and had
problems running both Sun1 and  JBuilder. I installed Eclipse, but still
getting familiar with it. Only thing I can say is that it's super fast
compared to Sun/JB. Thanks in advance for considering my issues with
torque.

God Bless,
Don Rosengartner




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [POLL] Deprecation of the OBJECT_DATA column in TURBINE_USER table

2003-03-21 Thread Akmal Sarhan
IMO this should be kept at least till the next major release, the problem is
that it involves changing all the the logic and work arounds that we
did,trying to avoid
the hassle of extending the turbineUser, so if we want to migrate a project
that already utilizes this logic, it will be quite a mess I guess. so keep
it for backword compatibility and mention in your release docs that you
disencourage users from using this approach because so and so and that it be
deprecated in the next major release.
regards
Akmal
- Original Message -
From: Quinton McCombs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:19 AM
Subject: [POLL] Deprecation of the OBJECT_DATA column in TURBINE_USER table


 The use of perm scope pull tools and storing data in the TurbineUser
 using the setPerm() method would be affected by this change.

 Both of these cause data to be serialized into the OBJECT_DATA column in
 the TURBINE_USER database table.  Since Torque (actually Village) has
 issues using the BLOB datatype, there is an upper limit to the amount of
 data that can be stored in this manner.  Everything will work fine until
 you hit this limit then you will start getting database errors.

 The downsides to using setPerm() in TurbineUser are discussed in the
 extending turbine user how to.  To summarize, this data can not be used
 to select from the database and is very difficult to extact using a
 third party tool that accessed the database directly.

 It is a very simple process to start storing this data in database
 columns using the DBSecurityService.  It is even easier if you use the
 new TorqueSecurityService that Henning wrote which is availiable in 2.3.

 If you truly have a need for perm scope tools, you can get the same
 functionality using the new authorized scope tool in 2.3.  Just like the
 perm scope tool, the authorized tool is initialized with an instance of
 the user object.  During the initialization of the tool, you can get any
 data that you need to maintain state across logins from the user object.
 Just add any data that you previously stored in the perm tool to the
 user object using database columns to store your data.

 I am proposing that the use of the OBJECT_DATA column be deprecated in
 2.3.  Is there anyone that this will cause a problem for?

 
 Quinton McCombs
 NequalsOne - HealthCare marketing tools
 mailto:[EMAIL PROTECTED]
 http://www.NequalsOne.com


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



torque/ant bug

2003-03-20 Thread Akmal Sarhan
I 've just stumbled over a very nasty bug while trying to mavenize my old init target: 

it seems that ant (I am using ant 1.5.2) does not support the following syntax:

torque.schema.init-sql.includes for property settings ( notice the minus sign )and 
the fact that this property is used in the build-torque.xml and in the maven plugin 
for torque, makes me wonder if this is a known limitation that is known or if it is a 
bug

regards
Akmal




Re: Build fulcrum standalone

2003-03-17 Thread Akmal Sarhan
We have written a service that uses Quartz as a scheduler and give you the
ability to change your settings dynamically through db without  having to
restart your app whenever you want to change some settings.

it is decoupled with intake though(to verify the entries are correct) but
that is not difficult to figure out.
if you are interested I can email you the src draft off-list and if somebody
else is interested , I will then try to write a good documentation to
explain how it works

regards
Akmal
- Original Message -
From: Engelhardt, ITS BetrWi AE2, FD [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 1:37 PM
Subject: AW: Build fulcrum standalone


Thanx for that hint. What i found is that Quarz Scheduler was a part of
Stratum. But that has been decoupled from Turbine and i can't find it.
Any suggestion?

Thanx
Dieter

-Ursprüngliche Nachricht-
Von: Jürgen Hoffmann [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 17. März 2003 11:42
An: 'Turbine Users List'
Betreff: AW: Build fulcrum standalone


Hi again,

And if you really want to use a standalone scheduler, why not use the
quartz scheduler?

Kind regards

Jürgen Hoffmann
ByteACTION GmbH

cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer

Besuchen Sie uns doch auf der CeBIT 2003
in Halle 4/Stand 70


-Ursprüngliche Nachricht-
Von: Dieter Engelhardt [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 16. März 2003 18:56
An: Turbine Users List
Betreff: Build fulcrum standalone


This is probably not the right mailing list, but there is no list for
fulcrum.

What i wanted to do, is to use the scheduler-service of fulcrum
standalone for my projekt. According to the building-instructions, i
checked out jakarta-turbine-fulcrum and jakarta-turbin-torque from the
CVS.

Following the instruction, i tried first du build the maven-plugin for
torque. But i couldn't find src/maven-plugin described in the readme of
fulcrum. I found in the mail-archiv that the soure has moved to
src/generator but ist wasn't there. After another long research in
different mailing-archives i found that the torque-plugin has already be
integrated in the maven beta 0.9.

So i had to ceck out the most recent maven-source und build it. That
worked. But now, when i build fulcrum i run into a new error:
cannot resolve import org.apache.torque.NoRowsException;
cannot resolve import org.apache.torque.TooManyRowsException;

I found that these classes are missing in torque-3.1-dev.jar downloadet
by maven. After replaceing the torque jar-file with that one i build
recently, it worked and i could build fulcrum.

I think there are two tasks to do:
1. Provide the neccessary information on the Maven-Howto of the
Torque-Site. 2. Replace the wrong torque-jarfile which is downloaded for
the fulcrum-build.

For 1 i already made the changes and attached it on this mail. I hope
someone will replace it in CVS.

For 2 i don't know how becouse im new to Maven but i guess its not
posible for me.

Hope i made some progress to the project.

Regards
Dieter



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing with maven/cactus

2003-03-17 Thread Akmal Sarhan
if I do any changes , I 'll keep you informed of course.
the wiki site how-to is correct, only that in my case I have to login the
user first to start my tests:

data.getParameters().setString(username, myusername);

data.getParameters().setString(password, mypassword);

// Execute the login action.

ActionLoader.getInstance().exec(data, LoginUser);



regards

Akmal

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 2:51 PM
Subject: RE: Testing with maven/cactus


 Akmal,

 You hit on my big problem with the plugin in, the doctype needs to be
merged
 in.  At any rate, if you add any improvements, keep me posted.  Does what
 you did match the How to test with Cactus section of the turbine wiki?
 http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2Faq

 Eric PUgh

 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 15, 2003 5:20 AM
 To: Turbine Users List
 Subject: Re: Testing with maven/cactus


 now it works!!
 thanks very much for your help.

 what I did was that I changed the web.xml in
 ...plugins\maven-cactus-plugin-1.2\plugin-resources\conf to add the
doctype
 and changed the structure of my turbine app to be as follows:

 /src
   /java
   /schema
   /test-cactus
   /webapp
 /logs
 /resources
 /templates
 /WEB-INF
   /conf
   /web.xml

 and now it works, thanks again

 regards
 Akmal

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 4:21 PM
 Subject: RE: Testing with maven/cactus


 
  Okay, you are actually working at this point!  Most of the tests in the
  sample fail, some sort of web.xml file problem that I don't understand
 yet.
  However, check out these lines:
[junit] Running org.apache.maven.cactus.sample.TestSampleServlet
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,031
  sec
 
  If you go into the test-reports dir and check it oiut, you will see that
 one
  worked!  Now try your turbine ones.
 
  Also, what conf change did you make?  I have seen the error you speak
of,
  but haven't had luck tracking it down.
 
  Eric Pugh
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing with maven/cactus

2003-03-15 Thread Akmal Sarhan
now it works!!
thanks very much for your help.

what I did was that I changed the web.xml in
...plugins\maven-cactus-plugin-1.2\plugin-resources\conf to add the doctype
and changed the structure of my turbine app to be as follows:

/src
  /java
  /schema
  /test-cactus
  /webapp
/logs
/resources
/templates
/WEB-INF
  /conf
  /web.xml

and now it works, thanks again

regards
Akmal

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 4:21 PM
Subject: RE: Testing with maven/cactus



 Okay, you are actually working at this point!  Most of the tests in the
 sample fail, some sort of web.xml file problem that I don't understand
yet.
 However, check out these lines:
   [junit] Running org.apache.maven.cactus.sample.TestSampleServlet
   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,031
 sec

 If you go into the test-reports dir and check it oiut, you will see that
one
 worked!  Now try your turbine ones.

 Also, what conf change did you make?  I have seen the error you speak of,
 but haven't had luck tracking it down.

 Eric Pugh





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Testing with maven/cactus

2003-03-14 Thread Akmal Sarhan
(StandardPipeline.ja
va:641)
[junit] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
[junit] at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.ja
va:641)
[junit] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
[junit] at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
[junit] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
[junit] at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.ja
va:643)
[junit] at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
[junit] at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
[junit] at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
[junit] at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
[junit] at java.lang.Thread.run(Thread.java:536)
[junit] StandardWrapperValve[JspRedirector]: Servlet JspRedirector is
currently unavailable
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,843 sec
[junit] [ERROR] TEST org.apache.maven.cactus.sample.TestSampleBodyTag
FAILED
[junit] Running org.apache.maven.cactus.sample.TestSampleFilter
[junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 1,032 sec
[junit] [ERROR] TEST org.apache.maven.cactus.sample.TestSampleFilter
FAILED
[junit] Running org.apache.maven.cactus.sample.TestSampleServlet
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,031 sec

BUILD FAILED
file:/E:/3rdparty/maven-1.0-beta-9/plugins/maven-cactus-plugin-1.2/plugin-re
sources/scripts/tomcat.4x.jelly:26:50: atta
inGoal
file:/E:/3rdparty/maven-1.0-beta-9/plugins/maven-cactus-plugin-1.2/plugin-re
sources/scripts/tomcat.4x.jelly:68:6
4: attainGoal null:292:52: fail There were test failures.
Total time:  26 seconds

E:\3rdparty\maven-1.0-beta-9\plugins\maven-cactus-plugin-1.2\plugin-resource
s\sample
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 8:40 PM
Subject: RE: Testing with maven/cactus


 Akmal,

 I don't know what to tell you.  I deleted my jakarta-turbine-maven
 directory.  I then did a fresh cvs checkout.  compiled it, went to the
 sample, and ran the maven war target, and I get a maven-cactus-sample.war.

 I think something else is wrong.  I would delete everything, and then do
the
 fresh get.

 However, to get around ti, if you can rename the
 maven-cactus-sample-snapshot.war to maven-cactus-sample.war, then run
 cactus:test, everything will work.

 Eric

 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 12:15 PM
 To: Turbine Users List
 Subject: Re: Testing with maven/cactus


 I have just clean-updated maven but I still get the same Exceptions :-(

 regards
 Akmal
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 3:54 PM
 Subject: RE: Testing with maven/cactus


  Okay,
 
  We are getting closer.  I am not sure you have the newest stuff from CVS
  head.  In my build, I get:
 
  war:war:
  [echo] Building WAR maven-cactus-sample
  [war] Building war:
  C:\java\maven\plugins\maven-cactus-plugin-1.2\plugin-res
  ources\sample\target\maven-cactus-sample.war
 
  war:
 
  However, you get:
 
  war:war:
  [echo] Building WAR maven-cactus-sample-1.0-SNAPSHOT
 
  Now, the older war plugin would create wars with version information
  (1.0-SNAPSHOT).  However, CVS head was changed to not use version
  information.
 
  Also, did you customize the project.properties file to reference your
  location for tomcat for the sample webapp?
 
  Eric Pugh
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 13, 2003 8:57 AM
  To: Turbine Users List
  Subject: Re: Testing with maven/cactus
 
 
  here is what I get:
 
  Microsoft Windows XP [Version 5.1.2600]
  (C) Copyright 1985-2001 Microsoft Corp.
 
 

E:\3rdparty\maven-1.0-beta-9\plugins\maven-cactus-plugin-1.2\plugin-resource
  s\samplemaven war cactus:test
   __  __
  |  \/  |__ Jakarta _ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT
 
 
  war:init:
  java:prepare-filesystem:
 
  java:compile:
 
  java:prepare-filesystem:
 
  java:compile:
 
  java:jar-resources:
 
  test:prepare-filesystem:
 
  test:test-resources:
 
  test:compile:
 
  test:test:
  [junit] dir attribute ignored if running in the same VM
  [junit] Running org.apache.maven.cactus.sample.DummyTest
  [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,04 sec
 
 
  war:war:
  [echo] Building WAR maven-cactus-sample-1.0-SNAPSHOT
 
  war:
 
  cactus:test:
  [echo

Re: Testing with maven/cactus

2003-03-13 Thread Akmal Sarhan
Thank you Eric,

I have tried the latest CVS head and have attached the exceptions that I
get, together with my build.properties file
thank you in advance and hope to be able to use the plugin pretty soon, as
it will make life much easier ;-)

regards
Akmal
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 5:34 PM
Subject: RE: Testing with maven/cactus


 ARgh!

 It turned out that the version of the maven cactus plugin was a local
copy.
 As I just recieved committer status, I applied my various patches that
made
 the plugin work.  I can just imagine how frustrating it was to use the old
 broken one.

 If you feel like testing the new version, download maven cvs head.  Build
 it.  In the cactus/plugin-resources/sample is a sample project.  Run that
 and verify the SampleServlet test works.  Then you should be good.

 The sampleFilter and sampleTag are not working, some sort of web.xml issue
 that I don't understand.

 Good luck,
 Eric Pugh

 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 2:30 AM
 To: Turbine Users List
 Subject: Re: Testing with maven/cactus


 Thank you Eric,

 The reason why I wanted to use maven, is that I did not want to write a
 property here and a property there, change this file and copy that file..
 you know
 but as you pointed out the maven plugin does not seem to be finished so
 I'd rather stick to my old cactus skeleton for the moment and hope that I
 can use the plugin and perhaps, the eclipse one as well, at some point.


 regards
 Akmal

 PS. my code is nearly identical to yours, thank you!


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 1:08 PM
 Subject: RE: Testing with maven/cactus


  okay, well, here is the current situation with the cvs head maven cactus
  plugin.  This is a little OT for the turbine list, but may help others!
  Right now, if you do not start up Turbine yourself in your setUp method,
 but
  instead rely on the web.xml to startup turbine, then nothing happens.
The
  reason is that the maven cactus plugin doesn't merge your web.xml with
the
  default web.xml.  That means that turbine never gets started.
 Temporariily,
  there is a web.cactus.xml file that you can customize and will be used
  instead of your web.xml.  Alternatively, you can just start up Turbine.
  Take a look at this (also there is something on the wiki):
 
 
  protected RunData data = null;
  protected Context context = null;
  private Turbine turbine = null;
 
  public void setUp() throws Exception {
  super.setUp();
  config.setInitParameter(properties, /WEB-INF/conf/ +
  getTurbinePropertiesFileName());
  turbine = new Turbine();
 
  turbine.init(config);
 
  data = RunDataFactory.getRunData(request, response, config);
  context = TurbineVelocity.getContext(data);
  System.out.println(Setup: Resetting Data);
 
  // initialize your database connection here
  IDatabaseConnection connection = new
  DatabaseConnection(Torque.getConnection(default));
 
  // initialize your dataset here
  IDataSet dataSet = null;
  String xmlFile =
 

TurbineServlet.getServletContext().getRealPath(WEB-INF/data/export_simple_w
  orkorders.xml);
  dataSet = new FlatXmlDataSet(new FileInputStream(xmlFile));
 
  try {
 
  InsertIdentityOperation.CLEAN_INSERT.execute(connection, dataSet);
  }
  finally {
  connection.close();
  }
 
  auditAction = (Audit)
  ActionLoader.getInstance().getInstance(Audit);
 
  }
 
  public void testNoDataAvailable() throws Exception {
 
  // Add parameters to the RunData that will be used to login
  a non existent user.
  data.getParameters().setString(object_id, 636);
  data.getParameters().setString(object_name, workorder);
  context.put(criteria, new
  Criteria().add(WorkorderPeer.WORKORDER_ID, Integer.valueOf(636)));
  context.put(followupURL, www.sun.com);
  auditAction.doPerform(data, context);
  assertNotNull(Make sure we have an confirmation message.,
  data.getMessages().getFormMessages(, CONFIRM));
 
  }
 
  Also, bump me your testcase and I'll look at it.
 
  Eric
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 11, 2003 7:00 AM
  To: Turbine Users List
  Subject: Re: Testing with maven/cactus
 
 
  well, I have no problems using the classical way with cactus but when I
 try
  with maven I get this result:
  Testsuite: de.byteaction.taskwatcher.test.modules.actions.TaskActionTest
  Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,42 sec
 
  Testcase: testDoTaketask took 0,39 sec
   Caused an ERROR
  Failed to get the test results. This is probably due to an error that
  happened on the server side when trying to execute the tests. Here is
what
  was returned by the server : [htmlheadtitleApache
  Tomcat/4.1.18-LE-jdk14 - Error report/titleSTYLE!--H1{font-family :
  sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
  H3

Re: Testing with maven/cactus

2003-03-13 Thread Akmal Sarhan
Thank you Eric,

I have tried the latest CVS head and have attached the exceptions that I
get, together with my build.properties file
thank you in advance and hope to be able to use the plugin pretty soon, as
it will make life much easier ;-)

regards
Akmal
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 5:34 PM
Subject: RE: Testing with maven/cactus


 ARgh!

 It turned out that the version of the maven cactus plugin was a local
copy.
 As I just recieved committer status, I applied my various patches that
made
 the plugin work.  I can just imagine how frustrating it was to use the old
 broken one.

 If you feel like testing the new version, download maven cvs head.  Build
 it.  In the cactus/plugin-resources/sample is a sample project.  Run that
 and verify the SampleServlet test works.  Then you should be good.

 The sampleFilter and sampleTag are not working, some sort of web.xml issue
 that I don't understand.

 Good luck,
 Eric Pugh

 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 2:30 AM
 To: Turbine Users List
 Subject: Re: Testing with maven/cactus


 Thank you Eric,

 The reason why I wanted to use maven, is that I did not want to write a
 property here and a property there, change this file and copy that file..
 you know
 but as you pointed out the maven plugin does not seem to be finished so
 I'd rather stick to my old cactus skeleton for the moment and hope that I
 can use the plugin and perhaps, the eclipse one as well, at some point.


 regards
 Akmal

 PS. my code is nearly identical to yours, thank you!


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 1:08 PM
 Subject: RE: Testing with maven/cactus


  okay, well, here is the current situation with the cvs head maven cactus
  plugin.  This is a little OT for the turbine list, but may help others!
  Right now, if you do not start up Turbine yourself in your setUp method,
 but
  instead rely on the web.xml to startup turbine, then nothing happens.
The
  reason is that the maven cactus plugin doesn't merge your web.xml with
the
  default web.xml.  That means that turbine never gets started.
 Temporariily,
  there is a web.cactus.xml file that you can customize and will be used
  instead of your web.xml.  Alternatively, you can just start up Turbine.
  Take a look at this (also there is something on the wiki):
 
 
  protected RunData data = null;
  protected Context context = null;
  private Turbine turbine = null;
 
  public void setUp() throws Exception {
  super.setUp();
  config.setInitParameter(properties, /WEB-INF/conf/ +
  getTurbinePropertiesFileName());
  turbine = new Turbine();
 
  turbine.init(config);
 
  data = RunDataFactory.getRunData(request, response, config);
  context = TurbineVelocity.getContext(data);
  System.out.println(Setup: Resetting Data);
 
  // initialize your database connection here
  IDatabaseConnection connection = new
  DatabaseConnection(Torque.getConnection(default));
 
  // initialize your dataset here
  IDataSet dataSet = null;
  String xmlFile =
 

TurbineServlet.getServletContext().getRealPath(WEB-INF/data/export_simple_w
  orkorders.xml);
  dataSet = new FlatXmlDataSet(new FileInputStream(xmlFile));
 
  try {
 
  InsertIdentityOperation.CLEAN_INSERT.execute(connection, dataSet);
  }
  finally {
  connection.close();
  }
 
  auditAction = (Audit)
  ActionLoader.getInstance().getInstance(Audit);
 
  }
 
  public void testNoDataAvailable() throws Exception {
 
  // Add parameters to the RunData that will be used to login
  a non existent user.
  data.getParameters().setString(object_id, 636);
  data.getParameters().setString(object_name, workorder);
  context.put(criteria, new
  Criteria().add(WorkorderPeer.WORKORDER_ID, Integer.valueOf(636)));
  context.put(followupURL, www.sun.com);
  auditAction.doPerform(data, context);
  assertNotNull(Make sure we have an confirmation message.,
  data.getMessages().getFormMessages(, CONFIRM));
 
  }
 
  Also, bump me your testcase and I'll look at it.
 
  Eric
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 11, 2003 7:00 AM
  To: Turbine Users List
  Subject: Re: Testing with maven/cactus
 
 
  well, I have no problems using the classical way with cactus but when I
 try
  with maven I get this result:
  Testsuite: de.byteaction.taskwatcher.test.modules.actions.TaskActionTest
  Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,42 sec
 
  Testcase: testDoTaketask took 0,39 sec
   Caused an ERROR
  Failed to get the test results. This is probably due to an error that
  happened on the server side when trying to execute the tests. Here is
what
  was returned by the server : [htmlheadtitleApache
  Tomcat/4.1.18-LE-jdk14 - Error report/titleSTYLE!--H1{font-family :
  sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
  H3

Re: Testing with maven/cactus

2003-03-13 Thread Akmal Sarhan
the build. properties did not seem to get through here it is again:
# --
---
# build.properties.sample
#
# This is an example build.properties file, used to customize building the
# Cactus Servlet Sample for your local environment.  Make any changes you
need,
# and rename this file to build.properties in the same directory that
# contains the build.xml file.
#
# $Id: build.properties,v 1.1 2003/02/03 08:37:38 vmassol Exp $
# --
---

# WARNING:  The relative paths below are relative to the directory where the
# build.xml file is located.

# --
---
# Mandatory properties
# --
---

# The location of the Servlet API 2.3 jar
servlet.jar = lib/servlet.jar

# The location of the JSTL jar
jstl.jar = lib/jstl.jar

# The location of the JSTL jar
standard.jar = lib/standard.jar

# --
---
# Optional properties
# --
---

# The port to use for starting the servers during unit testing. If not
# sepcified, it defaults to port 8080.
cactus.port = 8081

# Servlet engine locations for the tests

# Note: If you don't want to run the test on a given servlet engine, just
#   comment it's home property. For example, if you don't want to run
the
#   tests on the Resin 2.x, comment the cactus.home.resin2x property.

#cactus.home.resin2x = c:/Apps/resin-2.1.6
cactus.home.tomcat4x = D:/Programme/ApacheGroup/Tomcat 4.1

maven.cactus.tomcat4x.home = D:/Programme/ApacheGroup/Tomcat 4.1
maven.cactus.container = tomcat-4x
maven.src.dir = WEB-INF/src/java

#maven.war.webxml=E:/3rdparty/tdk-2.2-rc2/webapps/taskwatcher_turbine/WEB-IN
F/web.xml
maven.war.webxml=${maven.src.dir}/../../web.xml

- Original Message -
From: Akmal Sarhan [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 10:08 AM
Subject: Re: Testing with maven/cactus


 Thank you Eric,

 I have tried the latest CVS head and have attached the exceptions that I
 get, together with my build.properties file
 thank you in advance and hope to be able to use the plugin pretty soon, as
 it will make life much easier ;-)

 regards
 Akmal
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 5:34 PM
 Subject: RE: Testing with maven/cactus


  ARgh!
 
  It turned out that the version of the maven cactus plugin was a local
 copy.
  As I just recieved committer status, I applied my various patches that
 made
  the plugin work.  I can just imagine how frustrating it was to use the
old
  broken one.
 
  If you feel like testing the new version, download maven cvs head.
Build
  it.  In the cactus/plugin-resources/sample is a sample project.  Run
that
  and verify the SampleServlet test works.  Then you should be good.
 
  The sampleFilter and sampleTag are not working, some sort of web.xml
issue
  that I don't understand.
 
  Good luck,
  Eric Pugh
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 12, 2003 2:30 AM
  To: Turbine Users List
  Subject: Re: Testing with maven/cactus
 
 
  Thank you Eric,
 
  The reason why I wanted to use maven, is that I did not want to write a
  property here and a property there, change this file and copy that
file..
  you know
  but as you pointed out the maven plugin does not seem to be finished
so
  I'd rather stick to my old cactus skeleton for the moment and hope that
I
  can use the plugin and perhaps, the eclipse one as well, at some point.
 
 
  regards
  Akmal
 
  PS. my code is nearly identical to yours, thank you!
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, March 11, 2003 1:08 PM
  Subject: RE: Testing with maven/cactus
 
 
   okay, well, here is the current situation with the cvs head maven
cactus
   plugin.  This is a little OT for the turbine list, but may help
others!
   Right now, if you do not start up Turbine yourself in your setUp
method,
  but
   instead rely on the web.xml to startup turbine, then nothing happens.
 The
   reason is that the maven cactus plugin doesn't merge your web.xml with
 the
   default web.xml.  That means that turbine never gets started.
  Temporariily,
   there is a web.cactus.xml file that you can customize and will be used
   instead of your web.xml.  Alternatively, you can just start up
Turbine.
   Take a look at this (also there is something on the wiki):
  
  
   protected RunData data = null;
   protected Context context = null;
   private Turbine turbine = null;
  
   public void setUp() throws Exception {
   super.setUp();
   config.setInitParameter(properties, /WEB

Re: Testing with maven/cactus

2003-03-13 Thread Akmal Sarhan
I have just clean-updated maven but I still get the same Exceptions :-(

regards
Akmal
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:54 PM
Subject: RE: Testing with maven/cactus


 Okay,

 We are getting closer.  I am not sure you have the newest stuff from CVS
 head.  In my build, I get:

 war:war:
 [echo] Building WAR maven-cactus-sample
 [war] Building war:
 C:\java\maven\plugins\maven-cactus-plugin-1.2\plugin-res
 ources\sample\target\maven-cactus-sample.war

 war:

 However, you get:

 war:war:
 [echo] Building WAR maven-cactus-sample-1.0-SNAPSHOT

 Now, the older war plugin would create wars with version information
 (1.0-SNAPSHOT).  However, CVS head was changed to not use version
 information.

 Also, did you customize the project.properties file to reference your
 location for tomcat for the sample webapp?

 Eric Pugh

 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 8:57 AM
 To: Turbine Users List
 Subject: Re: Testing with maven/cactus


 here is what I get:

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.


E:\3rdparty\maven-1.0-beta-9\plugins\maven-cactus-plugin-1.2\plugin-resource
 s\samplemaven war cactus:test
  __  __
 |  \/  |__ Jakarta _ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT


 war:init:
 java:prepare-filesystem:

 java:compile:

 java:prepare-filesystem:

 java:compile:

 java:jar-resources:

 test:prepare-filesystem:

 test:test-resources:

 test:compile:

 test:test:
 [junit] dir attribute ignored if running in the same VM
 [junit] Running org.apache.maven.cactus.sample.DummyTest
 [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,04 sec


 war:war:
 [echo] Building WAR maven-cactus-sample-1.0-SNAPSHOT

 war:

 cactus:test:
 [echo] Attempting to run tomcat4x target: cactus:test-tomcat-4x
 cactus:test-tomcat-4x:
 [echo] maven.cactus.tomcat4x.home = D:/Programme/ApacheGroup/Tomcat
4.1
 cactus:tomcat-4x-run:
 cactus:webapp:
 war:init:
 java:prepare-filesystem:

 java:compile:

 java:prepare-filesystem:

 java:compile:

 java:jar-resources:

 test:prepare-filesystem:

 test:test-resources:

 test:compile:

 test:test:
 [junit] dir attribute ignored if running in the same VM
 [junit] Running org.apache.maven.cactus.sample.DummyTest
 [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,01 sec


 [echo]
   Either a war or a webapp must exist. Please call the War
 plugin
   first.


 BUILD FAILED

file:/E:/3rdparty/maven-1.0-beta-9/plugins/maven-cactus-plugin-1.2/plugin-re
 sources/scripts/tomcat.4x.jelly:26:50: atta
 inGoal

file:/E:/3rdparty/maven-1.0-beta-9/plugins/maven-cactus-plugin-1.2/plugin-re
 sources/scripts/tomcat.4x.jelly:60:5
 5: attainGoal

file:/E:/3rdparty/maven-1.0-beta-9/plugins/maven-cactus-plugin-1.2/plugin-re
 sources/scripts/tomcat.4x.je
 lly:105:67: copy

E:\3rdparty\maven-1.0-beta-9\plugins\maven-cactus-plugin-1.2\plugin-resource
 s\sample\target\cactus\ma
 ven-cactus-sample not found.
 Total time:  6 seconds


E:\3rdparty\maven-1.0-beta-9\plugins\maven-cactus-plugin-1.2\plugin-resource
 s\sample

 regards
 Akmal
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 2:23 PM
 Subject: RE: Testing with maven/cactus


  okay,
  well, you got an error message about either a war or webapp must exist.
  However, you did call the war task!  do me a favor, and try the sample
  app...  just as a quick check of your install.  this is where mine is:
  C:\java\maven\plugins\maven-cactus-plugin-1.2\plugin-resources\sample
 
  When I run maven war cactus:test, it works.  So please compare the
 sample's
  properties to your properties.
 
  I put all my cactus testing properties locally in my project.properties,
 and
  don't use a build.properties.
 
  Also, maven.cactus.container is no longer required.  Just pointing to
your
  tomcat home does the same thing.
 
  At any rate, verifying that your plugin version works with the sample
will
  give us a baseline to start with.  Then we can start tweaking Turbine
  related settings to get it to work with turbine.
 
  Eric
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 13, 2003 4:10 AM
  To: Turbine Users List
  Subject: Re: Testing with maven/cactus
 
 
  the build. properties did not seem to get through here it is again:
 

# --
  ---
  # build.properties.sample
  #
  # This is an example build.properties file, used to customize building
 the
  # Cactus Servlet Sample for your local environment.  Make any changes
you
  need,
  # and rename this file to build.properties in the same directory that
  # contains the build.xml file.
  #
  # $Id

Re: Intake Part 2

2003-03-08 Thread Akmal Sarhan
...validation stuff...
Customer
customer=(Customer)CustomerPeer.retrieveByPk(data.getParameters().getInt(cu
stomerentry));
group.setProperties(customer);
customer.save();

regards
Akmal
- Original Message -
From: Stuart Townhill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 08, 2003 4:15 PM
Subject: Intake Part 2


 To anyone who can help,

 Last weekend I managed to successfully use intake to validate and empty
 form i.e. a new record in the database. Now I have managed to use
 criteria to select a certain record from the database and insert it into
 context and then map the values to the form (This is so I can edit a
 record in the database and still use intake to validate). Where I am
 having problems is with the Update I have copied and my method below. I
 noticed in the html that the $intake.declareGroups() method adds a
 hidden field with the value being the primary key of the record being
 updated so I used that for the intake.get method. Everything seems to
 execute smoothly but no update goes through to the database.

 public void doUpdate(RunData data, Context context)
 throws Exception
 {
 IntakeTool intake = (IntakeTool)context.get(intake);
 Group group = intake.get(Customerentry,
 data.getParameters().getString(customerentry));
 if (group.isAllValid())
 {
 Customer customer = new Customer();
 group.setProperties(customer);
 customer.setModified(true);
 customer.setNew(false);
 customer.save();

 data.setScreenTemplate(data.getParameters().getString(nextTemplate));
 }
 }

 Any help is much appreciated.

 Regards,

 Stuart Townhill.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Intake Part 2

2003-03-08 Thread Akmal Sarhan
make that: retrieveByPK
instead of retrieveByPk

Akmal
- Original Message - 
From: Stuart Townhill [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Saturday, March 08, 2003 6:42 PM
Subject: RE: Intake Part 2


 Akmal,
 
 Thanks for the response I get the following error when implementing 
 customer=(Customer)CustomerPeer.retrieveByPk(data.getParameters().getInt
 (cu
 stomerentry)); within my doUpdate method, I do have the following
 within my class:
 
 import soundideas.covert.om.Customer;
 import soundideas.covert.om.CustomerPeer;
 
 
 compile:
 [javac] Compiling 52 source files to
 C:\turbine\webapps\covert\WEB-INF\classes
 [javac]
 C:\turbine\webapps\covert\WEB-INF\src\java\soundideas\covert\modules\act
 ions\doInsertCustomer.java:86: cannot resolve symbol
 [javac] symbol  : method retrieveByPk (int)
 [javac] location: class soundideas.covert.om.CustomerPeer
 [javac] Customer customer =
 (Customer)CustomerPeer.retrieveByPk(data.getParameters().getInt(custome
 rentry));
 [javac]   ^
 [javac] 1 error
 
 BUILD FAILED
 
 I haven't really seen this a lot within the mailing lists, I have seen a
 lot to do with queryKeys what is the correct way to be doing this?
 
 Many thanks, Regards,
 
 Stuart.
 
 
 
 -Original Message-
 From: Akmal Sarhan [mailto:[EMAIL PROTECTED] 
 Sent: 08 March 2003 16:39
 To: Turbine Users List
 Subject: Re: Intake Part 2
 
 ...validation stuff...
 Customer
 customer=(Customer)CustomerPeer.retrieveByPk(data.getParameters().getInt
 (cu
 stomerentry));
 group.setProperties(customer);
 customer.save();
 
 regards
 Akmal
 - Original Message -
 From: Stuart Townhill [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, March 08, 2003 4:15 PM
 Subject: Intake Part 2
 
 
  To anyone who can help,
 
  Last weekend I managed to successfully use intake to validate and
 empty
  form i.e. a new record in the database. Now I have managed to use
  criteria to select a certain record from the database and insert it
 into
  context and then map the values to the form (This is so I can edit a
  record in the database and still use intake to validate). Where I am
  having problems is with the Update I have copied and my method below.
 I
  noticed in the html that the $intake.declareGroups() method adds a
  hidden field with the value being the primary key of the record being
  updated so I used that for the intake.get method. Everything seems
 to
  execute smoothly but no update goes through to the database.
 
  public void doUpdate(RunData data, Context context)
  throws Exception
  {
  IntakeTool intake = (IntakeTool)context.get(intake);
  Group group = intake.get(Customerentry,
  data.getParameters().getString(customerentry));
  if (group.isAllValid())
  {
  Customer customer = new Customer();
  group.setProperties(customer);
  customer.setModified(true);
  customer.setNew(false);
  customer.save();
 
 
 data.setScreenTemplate(data.getParameters().getString(nextTemplate));
  }
  }
 
  Any help is much appreciated.
 
  Regards,
 
  Stuart Townhill.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I don't understand working of intake

2003-03-01 Thread Akmal Sarhan
 and I don't know do I have to use setQueryKey in velocity form, or it
 automatic.
the  difference between calling  the insert und update methods is :
IntakeTool intake = (IntakeTool) context.get(intake);

Group group = intake.get(intakeTable, data.getParameters().getString(id));

when you call the update, so your html should be usr55umail if your usr PK
is 55.

in your case the getQueryKey  is returning null instead of the PK.

looking at your code, it seems to me that you implemented the Retrievable
interface manually, if it is generated to you by Torque,

you should have it in the abstract base class and it should look like that:

public String getQueryKey()

{

if (getPrimaryKey() == null)

{

return ;

}

else

{

return getPrimaryKey().toString();

}

}

/**

* set an id that differentiates this object from others

* of its class.

*/

public void setQueryKey(String key) throws TorqueException

{

setPrimaryKey(key);

}



hope that helps

Akmal



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.torque.task.TorqueJDBCTransformTask cannot be found

2003-02-25 Thread Akmal Sarhan
the torque version you should be using is 3.0, is this the one you have?
Akmal
- Original Message -
From: Danie Roux [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:32 AM
Subject: Re: org.apache.torque.task.TorqueJDBCTransformTask cannot be found


 That is already there.

 On Tue, Feb 25, 2003 at 08:36:35AM +0100, Xavier Ottolini wrote:
  Try to add this in the build.properties;
 
  # added by mycompany
  tdk.turbineVersion = 2
  tdk.project = guestportal
 
  Bonne chance !
 
  Xavier
 
  Danie Roux wrote:
 
  What follows is the exact steps I tried to get tdk2.2_01 working:
  
  1) Extract tdk-2.2_01.tar.gz into /usr/local/turbine
  2) Edit /usr/local/turbine/tdk-2.2/build.properties
 Added tdk.home = /usr/local/turbine/tdk-2.2
 Changed newapp to guestportal
  3) Run ant
  4) cd /usr/local/turbine/tdk-2.2/webapps/guestportal/WEB-INF/build
  5) Edit build.properties in that directory
 Add tdk.home = /usr/local/turbine/tdk-2.2 at top of file.
  
 Change database settings to look like this:
  
 database.name = guestportal
 database = mysql
 databaseHost = localhost
 databaseUrl = jdbc:mysql://${databaseHost}/${database.name}
 createDatabaseUrl = ${databaseUrl}
 buildDatabaseUrl = ${databaseUrl}
 databaseDriver = org.gjt.mm.mysql.Driver
 databaseUser = turbine
 databasePassword = turbine
  
 The mysql is configured correctly, because this works:
 mysql guestportal -hlocalhost -uturbine -pturbine
  
  6) Run ant init in the
 /usr/local/turbine/tdk-2.2/webapps/guestportal/WEB-INF/build
directory
  
  The error I get is:
  
  BUILD FAILED
 
file:/usr/local/turbine/tdk-2.2/webapps/guestportal/WEB-INF/build/build-tor
que.xml:91: taskdef class org.apache.torque.task.TorqueJDBCTransformTask
cannot be found
  
  Can someone please shed some light on this?
  
  --
  Danie Roux *shuffle* Adore Unix
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Danie Roux *shuffle* Adore Unix



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Eclipse + TDK

2003-02-12 Thread Akmal Sarhan
your best choice would be to make maven generate the two needed files for
you for eclipse, i.e .classpath and .project
then File - Import - Existing Project into Workspace
and then browse to the your dir.

regards
Akmal
- Original Message -
From: Bill [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 7:22 PM
Subject: Re: Eclipse + TDK


 I was simply going to stick the outcome on the wiki but this is fine...
 I dont have a problem discussing it on-list, but do feel it is slightly
 off-topic.

 At any rate, I'm try to add an existing app to Eclipse which seems to
 work fine...however when I build, it tries to package my source files as
 java.com.mycom.myapp because of everything being under the java dir in
 WEB-INF/src.  I tried to change the property to point to
 WEB-INF/src/java instead but Eclipse doesnt seem to have a facility to
 make this change or I havent found the appropriate place.

 The other problem I have (which I havent yet researched) is that build
 process seems to think jasper-runtime.jar should be in common/lib
 instead of lib/.

 These seem like config issues, I just havent been able to figure them
 out with the Tomcat-specific Eclipse resources, so I thought I take the
 reverse route and get some input from this group.





 On Wed, 2003-02-12 at 12:04, Rodrigo Reyes wrote:
  I am using it, Bill. But let's keep our conversation on the list, so
  everyone could use it. If for some reason you prefer not to, just tell
me
  about this to [EMAIL PROTECTED]
 
  Rodrigo
 
  - Original Message -
  From: Bill [EMAIL PROTECTED]
  To: turbine-user [EMAIL PROTECTED]
  Sent: Tuesday, February 11, 2003 11:49 AM
  Subject: Eclipse + TDK
 
 
   I know there are a number of folks on this list using Eclipse to
develop
   their TDK webapps.  If any of you could contact me offlist so I could
   pick your brain on an issue, I would greatly appreciate it.
  
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Undocumented features/bugs

2003-01-30 Thread Akmal Sarhan
just thought I'd start this thread about things I and others encounter and spend so 
much time trying to figure out, to find out at the end that there is an undocumented 
solution or that is a known undocumented bug:
eg.
1-how to iterate in a loop in velocity like 
for(int i=0; i5;i++)
{
//do something
}

solution: #foreach($i in [0..5]) //do something #end


2- there are certain reserved strings for turbine , DO NOT use them as parameters in 
your templates : eg. template

3- if you want to use intake with sdk 1.4, recompile the turbine src

...

and you?!

regards
Akmal


Re: Undocumented features/bugs

2003-01-30 Thread Akmal Sarhan
make that solution: #foreach($i in [0..4]) //do something #end

- Original Message -
From: Akmal Sarhan [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 9:44 AM
Subject: Undocumented features/bugs


just thought I'd start this thread about things I and others encounter and
spend so much time trying to figure out, to find out at the end that there
is an undocumented solution or that is a known undocumented bug:
eg.
1-how to iterate in a loop in velocity like
for(int i=0; i5;i++)
{
//do something
}

solution: #foreach($i in [0..5]) //do something #end


2- there are certain reserved strings for turbine , DO NOT use them as
parameters in your templates : eg. template

3- if you want to use intake with sdk 1.4, recompile the turbine src

...

and you?!

regards
Akmal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Undocumented features/bugs

2003-01-30 Thread Akmal Sarhan
you are right, I just had a look and it seems that I read an outdated user
guide :(
what was the wiki url again ?!
regards
Akmal
- Original Message -
From: Scott Eade [EMAIL PROTECTED]
To: turbine-user [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 9:53 AM
Subject: Re: Undocumented features/bugs


 Why not add them to the wiki?

 The velocity one is well documented in the velocity user guide.

 Cheers,

 Scott
 --
 Scott Eade
 Backstage Technologies Pty. Ltd.
 http://www.backstagetech.com.au
 .Mac Chat/AIM: seade at mac dot com


 On 30/01/2003 7:47 PM, Akmal Sarhan [EMAIL PROTECTED] wrote:

  make that solution: #foreach($i in [0..4]) //do something #end
 
  - Original Message -
  From: Akmal Sarhan [EMAIL PROTECTED]
  To: Turbine Users List [EMAIL PROTECTED]
  Sent: Thursday, January 30, 2003 9:44 AM
  Subject: Undocumented features/bugs
 
 
  just thought I'd start this thread about things I and others encounter
and
  spend so much time trying to figure out, to find out at the end that
there
  is an undocumented solution or that is a known undocumented bug:
  eg.
  1-how to iterate in a loop in velocity like
  for(int i=0; i5;i++)
  {
  //do something
  }
 
  solution: #foreach($i in [0..5]) //do something #end
 
 
  2- there are certain reserved strings for turbine , DO NOT use them as
  parameters in your templates : eg. template
 
  3- if you want to use intake with sdk 1.4, recompile the turbine src
 
  ...
 
  and you?!
 
  regards
  Akmal
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: AW: intake madding

2003-01-29 Thread Akmal Sarhan
I had posted this bug about intake:
http://nagoya.apache.org/eyebrowse/ReadMsg?listId=101msgNo=12847

and I heard that there will be two versions of T2, one for java 1.4 and
another one for previous versions have not seen anything and it seems that
this bug is still there which is a shame because it is a serious one and a
very hard one to find out :-D
- Original Message -
From: Quinton McCombs [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 4:24 PM
Subject: RE: AW: intake madding


Please let us know the results of this.

 -Original Message-
 From: Gaasch, Derek [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 7:04 PM
 To: 'Turbine Users List'
 Subject: RE: AW: intake madding


 There is a funny problem with intake that I found, where it
 requires java 1.3 in order to correctly initialize intake
 (i.e. when it creates app.ser from intake.xml). Every time I
 update intake.xml, I have to startup Turbine with JDK1.3 to
 correctly initialize Intake. From then on, the jdk version
 doesn't matter.

 If you look for past posts from me re: intake, there was
 something I found on java's site which may explain why
 Turbine (or whatever sub-library it is) has this bug...

 So, Zoltan, I suggest that you try to run turbine with Java
 1.3  see if it works.

 -d

 -Original Message-
 From: Zamek [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 3:23 PM
 To: Turbine Users List
 Subject: Re: AW: intake madding

 at 2003. január 28. 23:04 wrote:
  Zoltan, you might also want to check if you have the proper Xerces
 version,
  or if you have two different Xerces jars that get in
 conflict. I use
  Xerces 2.0.2.

 Unfortunately I have xerces-2.0.2.jar too in WEB-INF/lib

 It is a commerce tdk2.2 application created
 ant in root directory
 and
 ant init from app/WEB-INF/build

 It is working good if I dont use intake. I appended a
 postgresql-jdbc2-7.3.jar only to WEB-INF/lib.

 CLASSPATH is:
 /usr/local/jsdk/lib/tools.jar:/usr/local/jsdk/jre/lib/rt.jar
 jvm version is:
 bash-2.05b$ java -version
 java version 1.4.0
 Java(TM) 2 Runtime Environment, Standard Edition (build
 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


 --
 thanks,
 
 Zoltan Zidarics programmer
 PTE University Pecs, Hungary
 icq: 43288694

 --
 To unsubscribe, e-mail:
 mailto:turbine-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:[EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: links going to different action methods

2003-01-29 Thread Akmal Sarhan
a href=$link.setAction(
disclosure.EventMaintenanceAction ).addPathInfo(eventSubmit_doUpdate,ma
gic)Entry
 Form/a


regards

Akmal

- Original Message -
From: Mark Lybarger [EMAIL PROTECTED]
To: Turbine Users List (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 7:20 PM
Subject: links going to different action methods


 Currently, I have a link as such:
   a href=$link.setAction(
disclosure.EventMaintenanceAction )Entry
 Form/a

 How can i change the link so the doUpdate method is called?  I have
another
 link that I want to use the same action class, but using a doAdd method...

 thanks
 ~Mark

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: processing external CSS-file throu velocity engine

2003-01-27 Thread Akmal Sarhan
if you insist on setting the css values dynamically according to each user,
here is a a proposal:
in your layouts/default.vm:

#set($Alink=A:link {  text-decoration: none; color:$myPullTool.userAlink
; } A:visited { text-decoration: none; color: $myPullTool.userVlink ; } )
#set($Ahover=A:hover { text-decoration: none; color: $myPullTool.userhover
; } A:active { text-decoration: none; color: $myPullTool.userhlink; } )


#set($style=$Alink$Ahover$Font$Th$Td )
$page.addStyle($style)

hope this helps
Akmal

- Original Message -
From: Marc Lustig [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 11:14 AM
Subject: AW: processing external CSS-file throu velocity engine




  -Ursprungliche Nachricht-
  Von: Jeffery Painter [mailto:[EMAIL PROTECTED]]
  Gesendet: Sonntag, 26. Januar 2003 18:37
  An: Turbine Users List
  Betreff: Re: processing external CSS-file throu velocity engine
 
 
  This seems a little odd to me.. are you going to pre-define all
  the layout
  styles before hand? couldn't you create different layout templates and
  assign the user a different template which would then call the
  corresponding css file?


 Right, I have a Reseller - Reseller - Customer user-hierarchy.
 A reseller defines the design-parameters that its customer (who might be a
 reseller as well) will see when he logs in.
 Assigning a specific css-file to a user is not the problem.
 My idea was to have a single css-file for all users and assign the
 css-values using velocity/pull tool. But that appears quite difficult
task.

 What I'm doing now is this: when a reseller changes the css-parameters, a
 css-file will be created and copied to all of his customers. This might
take
 a few seconds of rumble, but I can't figure out a better solution to this.

 Thanks anyway for your idea.
 Marc


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: ant init -- tdk.home

2003-01-23 Thread Akmal Sarhan
you have to define your tdk.home in the build.properties
regards
Akmal
- Original Message - 
From: James Kuhn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 7:46 PM
Subject: ant init -- tdk.home


 Hi,
  
 I'm trying to get turbine v2.2 running with oracle on a Windows XP
 machine.
  
 My build.properties file in my tdk root directory contains the
 following:
  
 tdk.turbineVersion = 2
 tdk.project = testapp
 target.package = org.xyz.testapp
 target.directory = org/xyz/testapp
 tdk.project = testapp
 turbine.app.name = testapp
 tdk.home = c:/java/tdk-2.2
  
  
 I've gotten past the first stage, and have used ant to create my webapps
 directory.  So the directory structure that has been created is as
 follows:
 c:\java\tdk-2.2\webapps\testapp\WEB-INF\... etc.
  
 I'm having problems running ant init.  The error output is as follows:
  
 --- start or error output
 C:\java\tdk-2.2\webapps\testapp\WEB-INF\buildant init
 Buildfile: build.xml
  
 check-webinf-exists:
  
 setup-webinf:
  
 BUILD FAILED
  
 C:\java\tdk-2.2\webapps\testapp\WEB-INF\build\build.xml:371:
 Basedir C:\java\tdk-2.2\webapps\testapp\WEB-INF\build\${tdk.home}
 does not exist
  
 Total time: 0 seconds
  
 --- end of error output
  
 The portion of the build.xml that surrounds line 371 (the line reported
 in
 the error) is as follows:
  
   target
 name=setup-webinf
 depends=check-webinf-exists
 unless=webinf-exists
  
 ant dir=${tdk.home} target=setup-webinf/
 this is line 371
 ant antfile=project-build.xml/
   /target
  
  
  
 All I'm doing is following the instructions from the Creating your
 first
 Turbine application section of the website.  I guessing that the
 tdk.home
 is supposed to be set to the root of the directory structure that was
 unpacked from the tdk-2.2_01.tar.gz file.  Am I right?
  
 Any suggestions would be welcome.
 Thanks.
  
  
  
  
  
  
  
  
  
  
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Criteria help

2003-01-22 Thread Akmal Sarhan
IIRC this only works with Criterion:

 Criteria crit=new Criteria();
 Criteria.Criterion criterion = crit.getNewCriterion(Foo.COLUMN2, (Object)
searchstring, Criteria.LIKE);
 criterion.or(crit.getNewCriterion(Foo.COLUMN1, (Object) searchstring,
Criteria.LIKE));
 crit.add(criterion);

regards
Akmal
- Original Message -
From: Bill [EMAIL PROTECTED]
To: turbine-user [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 4:09 PM
Subject: Criteria help


 I'm having trouble making a select work using Peers and Criteria. My
 code looks something like this:

 Criteria crit = new Criteria();

 crit.addSelectColumn(FooPeer.FOOID);

 // COLUMN2 is of type String
 crit.add(Foo.COLUMN2, (Object) searchstring, Criteria.LIKE);
 crit.or(Foo.COLUMN3, (Object) searchstring, Criteria.LIKE);

 This produces:

 select FOOID from foo where COLUMN2 LIKE 'searchstring' AND COLUMN3 LIKE
 'searchstring';

 what I want is:

 select FOOID from foo where COLUMN2 LIKE 'searchstring' OR COLUMN3 LIKE
 'searchstring';

 What is it I'm missing here?

 thanks

 -b


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: DateString

2002-12-19 Thread Akmal Sarhan
value=#if($group.get($name).value 
$group.OID!=_0)$!utilTool.formatDate($group.get($name).value,$group.get(
$name).validator.DateFormats.get(0))#end
hope this is what you are looking for.
Akmal
- Original Message -
From: Jake Fear [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 8:25 AM
Subject: Re: DateString


 I have found one smal problem with this approach.  When I want to use it
 for unpopulated date input fields in a form I can not figure out how to
 prevent it from showing $value in the empty fields.  Anyone have any
ideas?

 Akmal Sarhan wrote:

 here is my own solution of  this problem:
 in a pull tool called utilTool:
 
  public String formatDate(Date date, String format)
 {
 String d = ;
 
 if (date != null)
 {
 SimpleDateFormat formatter = new SimpleDateFormat(format);
 
 d = formatter.format(date);
 }
 
 return d;
 }
 
 in the template:
 

$!utilTool.formatDate($group.get($name).value,$group.get($name).validat
o
 r.DateFormats.get(0))
 
 where $group is the prepopulated intake group and $name is the DateString
 field name.
 
 this code will make it possible to update a date according to first rule
in
 the intake.xml
 - Original Message -
 From: Jake Fear [EMAIL PROTECTED]
 To: Turbine Users List [EMAIL PROTECTED]
 Sent: Tuesday, December 17, 2002 4:53 PM
 Subject: Re: DateString
 
 
 
 
 That is precisely where I found out about the DateString.  I have been
 looking over the rest of the code as well, and I think there is key
 feature missing from the org.apache.turbine.services.intake.model.Field
 class.  Maybe I am off the mark here, but it seems like there should be
 some formatting abilities in the Field class.  For example, right now I
 have things working for reading in new dates and getting them set
 correctly, but I have no way (that I know of) to control the format of
 the date when it is rendered via an intake Group/Field.  The same
 capability would be very nice for currency, and maybe even user defined
 types (maybe user defined types are a stretch given nature of input in
 web applications;-).
 
 Jake
 
 Quinton McCombs wrote:
 
 
 
 There is work being done to get intake updated.  This will include
 updating the DTD.  I hate to say this, but for now the best source of
 information for the field types is the source code for
 org.apache.turbine.services.intake.model.FieldFactory.
 
 
 
 
 
 -Original Message-
 From: Jake Fear [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 17, 2002 9:26 AM
 To: Turbine Users List
 Subject: DateString
 
 
 It DateString is missing from the default intake.dtd in the latest
 turbine source.  I added it locally and it seems to work just fine
 (however, the Date type in the intake.xml did not).  I noticed the
 latest TDK does not have any intake examples, and the documentation
 covers on the the most basic data types.  Does anyone know if this
 particular subcomponent is still being actively developed?
 
 Jake
 
 
 --
 To unsubscribe, e-mail:
 mailto:turbine-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 
 



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Intake in tdk-2.2-rc1

2002-12-03 Thread Akmal Sarhan
IIRC, I had something similar before with intake, and the problem was that I
was using java 1.4.1, I resolved the problem then by compiling the turbine
src against 1.4.1 and it worked.

regards
Akmal
- Original Message -
From: Gaasch, Derek [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 6:45 PM
Subject: RE: Intake in tdk-2.2-rc1


 Yes, I validated my own xml file with no problem. I am seriously
considering
 the possibility that this is a synchronization issue my log follows,
 where it looks like the instantiation of the intaketool is occurring
before
 the IntakeService has finished initializing. If this is true, this is a
 troublesome bug...


 snip
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Start Initializing service
(late):
 PullService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Pull Model tools will be
refreshed
 on a per request basis.
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.services.pull.util.UIManager to add to the context as
 '$ui'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.util.template.TemplateLink to add to the context as
 '$link'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.util.template.TemplatePageAttributes to add to the
 context as '$page'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.util.ContentURI to add to the context as '$content'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.services.localization.LocalizationTool to add to the
 context as '$l10n'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.flux.tools.FluxTool to add to the context as '$flux'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.om.OMTool to add to the context as '$om'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Instantiated tool class
 org.apache.turbine.services.intake.IntakeTool to add to the context as
 '$intake'
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Finish Initializing service
 (late): PullService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Finish Initializing service
 (late): VelocityService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Start Initializing service
(late):
 LocalizationService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Finish Initializing service
 (late): LocalizationService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Start Initializing service
(late):
 IntakeService
 [Tue Dec 03 10:19:49 MST 2002] -- INFO -- Finish Initializing service
 (late): IntakeService
 [Tue Dec 03 10:19:49 MST 2002] -- ERROR -- Could not instantiate tool
 org.apache.turbine.services.intake.IntakeTool to add to the context
 Exception:  org.apache.turbine.util.TurbineException: Instantiation
 failed for org.apache.turbine.services.intake.IntakeTool
 Stack Trace follows:
 java.lang.NullPointerException
 at
 org.apache.turbine.services.intake.IntakeTool.init(IntakeTool.java:90)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
 sorImpl.java:39)
 at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
 torAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:306)
 snip




 -Original Message-
 From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Intake in tdk-2.2-rc1

 Gaasch, Derek [EMAIL PROTECTED] writes:

 On Tue, 3 Dec 2002 11:52, you wrote:
  Thanks for the suggestions, but still no luck even when I try the
  content contained in the tdk\apps\3\src\conf\project-intake.xml in

 Uh, stop, in the \3\ directory is code for Turbine-3 / Fulcrum! This
 might not work with turbine-2.

 Can you validate your XML file with the supplied DTD?

 Regards
 Henning

 --
 Dipl.-Inf. (Univ.) Henning P. Schmiedehausen   -- Geschaeftsfuehrer
 INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED]

 Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
 D-91054 Buckenhof Fax.: 09131 / 50654-20

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Intake in tdk-2.2-rc1

2002-12-03 Thread Akmal Sarhan


 You rock! That never would've occurred to me. I just switched my java home
 to a 1.3 version and it worked. I wonder if that's logged as a bug?
great that your problem is solved! I guess you might consider it a
bug(specially if some other users are having the same problem and this
solution works for them as well)
 I owe you a beer. Or whatever your drink of preference might be. Thanks.
you are most welcome ;-)
regards
Akmal


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Intake and Dates again

2002-11-28 Thread Akmal Sarhan
if I am not mistaken, you have to say format1 and not only format

regards
Akmal
- Original Message -
From: Leandro Rodrigo Saad Cruz [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Sent: Thursday, November 28, 2002 3:42 PM
Subject: Intake and Dates again


 Hi all. I'm using T2 cvs head and I can't make intkae use DateString
 fields. Here is a snippet of my intake.xml

 field key=data name=data type=DateString
rule name=format value=dd/MM/
 Date format is dd/MM/
/rule
 /field


 is this right ?

 --
 Leandro Rodrigo Saad Cruz
 IT - Inter Business Tecnologia e Servicos (IB)
 http://www.ibnetwork.com.br
 http://jakarta.apache.org/ojb


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




copyInto() problem

2002-11-25 Thread Akmal Sarhan


copyInto():
having two tables one called COMPANY and the other called CUSTOMER with a 
one-to-many relation.The generated OM class of
COMPANY would have a method called addCustomer().

now I want to make a copy of COMPANY through the generated copy() method.
what happens in this method(after debugging)is that all the setXXX() of the 
COMPANY will be invoked on a new COMPANY(the copy) (including the setting of 
the primaryKey
which in turn results in retrieving all the original CUSTOMER's of COMPANY) 
then an iteration happens on the CUSTOMER's(of the original COMPANY)
adding copies to the new COMPANY(the copy)
at the end the new COMPANY will have both the original CUSTOMER's + copies 
of these CUSTOMER's (i.e duplication)

If I am missing something, please tell me what is going wrong in the copy() 
method

regards
Akmal



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: Log config

2002-10-22 Thread Akmal Sarhan

in your TR.properties, the default for debugging is info, so 
Log.info(error) should appear, so you need to change it in the 
TR.properties to be DEBUG instead of INFO

regards
Akmal





From: Marc Lustig [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Log config
Date: Tue, 22 Oct 2002 20:26:25 +0200

Hi,

how is Log.debug supposed to work?
A statements  Log.debug(error); is not appearing in my turbine.log.
Is there anything else to configure to get the Logging running?

TIA.
Marc

--
To unsubscribe, e-mail:   
mailto:turbine-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:turbine-user-help;jakarta.apache.org


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   mailto:turbine-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:turbine-user-help;jakarta.apache.org



Re: which class replaces org.apache.turbine.util.db.pool.DBConnection in 2.2b3?

2002-10-19 Thread Akmal Sarhan
java.sql.Connection

regards
Akmal







From: Marc Lustig [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: which class replaces org.apache.turbine.util.db.pool.DBConnection 
in 2.2b3?
Date: Sat, 19 Oct 2002 20:03:45 +0200

Hi,
can somebody please just tell me what class replaces

org.apache.turbine.util.db.pool.DBConnection

in 2.2 b3 using the decoupled Torque.

Thanks a lot!

Marc


--
To unsubscribe, e-mail:   
mailto:turbine-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:turbine-user-help;jakarta.apache.org


_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   mailto:turbine-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:turbine-user-help;jakarta.apache.org



Re: [POLL] Which version of Turbine are you using?

2002-10-18 Thread Akmal Sarhan
[ ] I am using Turbine 2.1
[X] I am using Turbine 2.2 Beta
[ ] I am using Turbine 3 Alpha
[ ] I am using Plexus/Summit


Akmal

_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   mailto:turbine-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:turbine-user-help;jakarta.apache.org



Re: NetBeans 3.4 and TDK 2.1

2002-10-14 Thread Akmal Sarhan

Do you debug using the tomcat of the tdk or the one bundled with netbeans?
regards
Akmal



From: wilhelm hingst [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List (E-Mail) [EMAIL PROTECTED]
Subject: NetBeans 3.4 and TDK 2.1
Date: Mon, 14 Oct 2002 14:06:22 +0200

Hi,

I'm using NetBeans 3.4 with Tomcat 4.0.4. I want to debug the 
default-WebApp from within NetBeans.
I've done this before with NetBeans 3.3.2 and Tomcat 3.x - everything 
worked fine.

But in my current configuration when I try to access 
http://blaukrabbe:8081/servlet/spicersweb I  get the Tomcat 404 error page 
(requested resource is not available)

turbine.log and velocity.log are empty
Other logs are attached below.

Any help would be very much apreciated.
Thanks
wilhelm

My blaukrabbe_log is:

2002-10-14 13:40:38 StandardContext[]: Starting
2002-10-14 13:40:38 StandardContext[]: Processing start(), current 
available=false
2002-10-14 13:40:38 StandardContext[]: Configuring default Resources
2002-10-14 13:40:38 StandardContext[]: Configuring non-privileged default 
Loader
2002-10-14 13:40:38 StandardContext[]: Configuring default Manager
2002-10-14 13:40:39 StandardContext[]: Processing standard container 
startup
2002-10-14 13:40:39 WebappLoader[]: Deploying class repositories to work 
directory C:\Documents and  
Settings\wilhelm.hingst\.netbeans\3.4\tomcat404_base\work\Tomcat-Internal\blaukrabbe\_
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR 
/WEB-INF/lib/activation-1.0.1.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\activation-1.0.1.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar 
to  D:\tdk\webapps\spicersweb\WEB-INF\lib\classes12.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR /WEB-INF/lib/ecs-1.4.1.jar 
to  D:\tdk\webapps\spicersweb\WEB-INF\lib\ecs-1.4.1.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR /WEB-INF/lib/hsql.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\hsql.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR /WEB-INF/lib/httpunit.jar to 
  D:\tdk\webapps\spicersweb\WEB-INF\lib\httpunit.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR /WEB-INF/lib/idb.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\idb.jar
2002-10-14 13:40:39 WebappLoader[]: Deploy JAR 
/WEB-INF/lib/jakarta-regexp-1.3-dev.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\jakarta-regexp-1.3-dev.jar
...
2002-10-14 13:40:40 WebappLoader[]: Deploy JAR /WEB-INF/lib/turbine-2.1.jar 
to  D:\tdk\webapps\spicersweb\WEB-INF\lib\turbine-2.1.jar
2002-10-14 13:40:40 WebappLoader[]: Deploy JAR 
/WEB-INF/lib/velocity-1.2-dev.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\velocity-1.2-dev.jar
2002-10-14 13:40:40 WebappLoader[]: Deploy JAR 
/WEB-INF/lib/village-1.5.1.jar to  
D:\tdk\webapps\spicersweb\WEB-INF\lib\village-1.5.1.jar
...
2002-10-14 13:40:40 WebappLoader[]: Reloading checks are enabled for this 
Context
2002-10-14 13:40:40 StandardManager[]: Seeding random number generator 
class  java.security.SecureRandom
2002-10-14 13:40:40 StandardManager[]: Seeding of random number generator 
has been completed
2002-10-14 13:40:40 ContextConfig[]: ContextConfig: Processing START
2002-10-14 13:40:42 StandardContext[]: Setting deployment descriptor public 
ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-10-14 13:40:45 StandardContext[]: Setting deployment descriptor public 
ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-10-14 13:40:46 ContextConfig[]: Scanning web.xml tag libraries
2002-10-14 13:40:46 ContextConfig[]: Scanning TLD files in /WEB-INF
2002-10-14 13:40:46 ContextConfig[]: Scanning library JAR files
2002-10-14 13:40:42 StandardContext[]: Setting deployment descriptor public 
ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-10-14 13:40:45 StandardContext[]: Setting deployment descriptor public 
ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
2002-10-14 13:40:46 ContextConfig[]: Scanning web.xml tag libraries
2002-10-14 13:40:46 ContextConfig[]: Scanning TLD files in /WEB-INF
2002-10-14 13:40:46 ContextConfig[]: Scanning library JAR files
2002-10-14 13:40:54 Authenticator[]: No SingleSignOn Valve is present
2002-10-14 13:40:54 ContextConfig[]: Configured an authenticator for method 
BASIC
2002-10-14 13:40:54 ContextConfig[]: Pipline Configuration:
2002-10-14 13:40:54 ContextConfig[]:   
org.apache.catalina.authenticator.BasicAuthenticator/1.0
2002-10-14 13:40:54 ContextConfig[]:   
org.apache.catalina.core.StandardContextValve/1.0
2002-10-14 13:40:54 ContextConfig[]: ==
2002-10-14 13:40:54 StandardContext[]: Configuring application event 
listeners
2002-10-14 13:40:54 StandardContext[]: Sending application start events
2002-10-14 13:40:54 StandardContext[]: Starting filters
2002-10-14 13:40:54 StandardContext[]: Posting standard context attributes
2002-10-14 13:40:54 StandardWrapper[:default]: Loading container servlet 
default
2002-10-14 13:40:54 default: init
2002-10-14 13:40:55 jsp: init

Re: AW: NetBeans 3.4 and TDK 2.1

2002-10-14 Thread Akmal Sarhan

well, this is a tiny how-to of how I personally do it:


*TDK
in ...\tdk\bin\catalina.bat add:

set CATALINA_OPTS=%CATALINA_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,address=7070,suspend=n

beforerem Guess CATALINA_HOME if not defined
start tomcat


*NetBeans3.4***
copy your source files into WEB-INF/classes
toggle the breakpoint
Debug-Start Session -attach
in the pop-up window:

Debugger: JPDA
Connector: SocketAttach
Transport: dt_socket
Host:your Computer Name 
Port:7070

start your browser and point to your app
once the code reaches the break point, the debugging will start, I hope ;-)

Akmal


From: wilhelm hingst [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: AW: NetBeans 3.4 and TDK 2.1
Date: Mon, 14 Oct 2002 15:28:05 +0200

I'm using the one bundled with netbeans.

wilhelm

  -Ursprüngliche Nachricht-
  Von: Akmal Sarhan [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 14. Oktober 2002 15:05
  An: [EMAIL PROTECTED]
  Betreff: Re: NetBeans 3.4 and TDK 2.1
 
 
  Do you debug using the tomcat of the tdk or the one bundled
  with netbeans?
  regards
  Akmal
 
 
 
  From: wilhelm hingst [EMAIL PROTECTED]
  Reply-To: Turbine Users List [EMAIL PROTECTED]
  To: Turbine Users List (E-Mail) [EMAIL PROTECTED]
  Subject: NetBeans 3.4 and TDK 2.1
  Date: Mon, 14 Oct 2002 14:06:22 +0200
  
  Hi,
  
  I'm using NetBeans 3.4 with Tomcat 4.0.4. I want to debug the
  default-WebApp from within NetBeans.
  I've done this before with NetBeans 3.3.2 and Tomcat 3.x -
  everything
  worked fine.
  
  But in my current configuration when I try to access
  http://blaukrabbe:8081/servlet/spicersweb I  get the Tomcat
  404 error page
  (requested resource is not available)
  
  turbine.log and velocity.log are empty
  Other logs are attached below.
  
  Any help would be very much apreciated.
  Thanks
  wilhelm
  
  My blaukrabbe_log is:
  
  2002-10-14 13:40:38 StandardContext[]: Starting
  2002-10-14 13:40:38 StandardContext[]: Processing start(), current
  available=false
  2002-10-14 13:40:38 StandardContext[]: Configuring default Resources
  2002-10-14 13:40:38 StandardContext[]: Configuring
  non-privileged default
  Loader
  2002-10-14 13:40:38 StandardContext[]: Configuring default Manager
  2002-10-14 13:40:39 StandardContext[]: Processing standard container
  startup
  2002-10-14 13:40:39 WebappLoader[]: Deploying class
  repositories to work
  directory C:\Documents and
  Settings\wilhelm.hingst\.netbeans\3.4\tomcat404_base\work\Tom
  cat-Internal\blaukrabbe\_
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/activation-1.0.1.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\activation-1.0.1.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/classes12.jar
  to  D:\tdk\webapps\spicersweb\WEB-INF\lib\classes12.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/ecs-1.4.1.jar
  to  D:\tdk\webapps\spicersweb\WEB-INF\lib\ecs-1.4.1.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/hsql.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\hsql.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/httpunit.jar to
D:\tdk\webapps\spicersweb\WEB-INF\lib\httpunit.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/idb.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\idb.jar
  2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/jakarta-regexp-1.3-dev.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\jakarta-regexp-1.3-dev.jar
  ...
  2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/turbine-2.1.jar
  to  D:\tdk\webapps\spicersweb\WEB-INF\lib\turbine-2.1.jar
  2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/velocity-1.2-dev.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\velocity-1.2-dev.jar
  2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
  /WEB-INF/lib/village-1.5.1.jar to
  D:\tdk\webapps\spicersweb\WEB-INF\lib\village-1.5.1.jar
  ...
  2002-10-14 13:40:40 WebappLoader[]: Reloading checks are
  enabled for this
  Context
  2002-10-14 13:40:40 StandardManager[]: Seeding random number
  generator
  class  java.security.SecureRandom
  2002-10-14 13:40:40 StandardManager[]: Seeding of random
  number generator
  has been completed
  2002-10-14 13:40:40 ContextConfig[]: ContextConfig: Processing START
  2002-10-14 13:40:42 StandardContext[]: Setting deployment
  descriptor public
  ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
  2002-10-14 13:40:45 StandardContext[]: Setting deployment
  descriptor public
  ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
  2002-10-14 13:40:46 ContextConfig[]: Scanning web.xml tag libraries
  2002-10-14 13:40:46 ContextConfig[]: Scanning TLD files in /WEB-INF
  2002-10-14 13:40:46 ContextConfig[]: Scanning library JAR files
  2002-10-14 13:40:42 StandardContext[]: Setting deployment

RE: save called a 1000 times

2002-10-09 Thread Akmal Sarhan



thank you Scott for the answer, still the question is why does the save() 
method iterate through all the old cars to save them,having in mind that I 
add a new Car entry to an Agent that already exists i.e I only update it by 
adding the new Car, and if this Agent already has, say, 1M+ Cars, so I think 
you might get my point about the performance issue.

best regards
Akmal

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Intake: check phone syntax

2002-09-27 Thread Akmal Sarhan

Expression:  ^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
Description:   A regular expression to match phone numbers, allowing for an 
international dialing code at the start and hyphenation and spaces that are 
sometimes entered.
Matches:  [(+44)(0)20-12341234], [02012341234], [+44 (0) 1234-1234]
Non-Matches:  [(44+)020-12341234], [12341234(+020)]


regards
Akmal


From: David Worms [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Intake: check phone syntax Date: Thu, 26 Sep 2002 18:04:22 -0700

Does anyone has a regexp in its intake.xml, checking a phone number that I
could use in my intake? eg:

rule name=mask value=[check phone syntax]

Thanks in advance

David Worms


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Get and Set INTAKE-Messages in Action-Class

2002-09-18 Thread Akmal Sarhan

you should supply more detail about the problem, like how does your template 
look like?

but from what I could see you should retrieve the group like that:
IntakeTool intake = (IntakeTool) context.get(intake);
Group group = intake.get(groupName, IntakeTool.DEFAULT_KEY);

and then I hope it will work
regards
Akmal


Akmal Sarhan

Freelance Software-Entwickler
Berlin
Deutschland




From: Florian Suschetz [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Get and Set INTAKE-Messages in Action-Class
Date: Wed, 18 Sep 2002 09:49:02 +0200

Hi! I have following problem with intake:
in intake.xml I use:

...
field name=yearFrom key=yearFrom type=int mapToProperty=yearFrom
   rule name=maxLength value=4Not more tha 4 
digits!/rule
   rule name=mask value=^[0-9]*$Only Numbers!/rule
   rule name=minValue value=1900Year at least 
1900!/rule

 /field

 field name=yearTo key=yearTo type=int 
mapToProperty=yearTo
   rule name=maxLength value=4Not more tha 4 
digits!/rule
   rule name=mask value=^[0-9]*$Only Numbers!/rule
   rule name=minValue value=1900Year at least 
1900!/rule
 /field
...

Well the rules work, and the validation of them in the vm too, but now I
want to do following:
I want to validate that the yearFrom-field is smaller than the
yearTo-field. I bet with intake
itself this is not possible. So I want to validate it in my action-class.
My two questions are:

1) How do I access intake in my action class?
When I use in the action class:

  Group group = intake.get(groupName,);

and then
  group.get(yearFrom).setMessage(Message: Year from must be smaller 
than
year to!);
or
  group.get(yearFrom).getMessage();

I get the Error, that the intake-field was not found. (I'm quite sure that 
I
had not typed something wrong :)


2)When I get the
group.get(yearFrom).setMessage(Message); directive working, I don't 
want
to set the message
hardcoded in the action, I want to specify the message in intake.xml.
To sum up: I want to validate a field in the action-class, but specify the
error message in intake.xml

I would be verry happy, if somebody could help me!

Cheers
Florian



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Get and Set INTAKE-Messages in Action-Class

2002-09-18 Thread Akmal Sarhan

can you supply you full template, and try to add some debug statement in 
your action class.

Akmal Sarhan

Freelance Software-Entwickler
Berlin
Deutschland




From: Florian Suschetz [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: Get and Set INTAKE-Messages in Action-Class
Date: Wed, 18 Sep 2002 13:29:57 +0200

Hi!
You wrote that I should use
Group group = intake.get(groupName, IntakeTool.DEFAULT_KEY);
to retieve the group. I tried i out, but it does not work!
The validation only works with:
Group group = intake.get(groupName, );
Here is an extract of the used vm:
#if($intakeGroup.yearFrom.Message)
   #ErrorMessage($intakeGroup.yearFrom.Message)
   #end
   #if($intakeGroup.yearTo.Message)
   #ErrorMessage($intakeGroup.yearTo.Message)
   #end
  TR
#formLabel($l_year)
TD/TD
#yearFromToField($intakeGroup.yearFrom.Key
$intakeGroup.yearTo.Key)
  /TR
when I use your directive to retieve the intakeGroup in the ActionClass, I
get no error,
but no intake message are displayed, allthough there should be one
- Original Message -
From: Akmal Sarhan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 10:42 AM
Subject: Re: Get and Set INTAKE-Messages in Action-Class


  you should supply more detail about the problem, like how does your
template
  look like?
 
  but from what I could see you should retrieve the group like that:
  IntakeTool intake = (IntakeTool) context.get(intake);
  Group group = intake.get(groupName, IntakeTool.DEFAULT_KEY);
 
  and then I hope it will work
  regards
  Akmal
 
  
  Akmal Sarhan
 
  Freelance Software-Entwickler
  Berlin
  Deutschland
  
 
 
 
  From: Florian Suschetz [EMAIL PROTECTED]
  Reply-To: Turbine Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Get and Set INTAKE-Messages in Action-Class
  Date: Wed, 18 Sep 2002 09:49:02 +0200
  
  Hi! I have following problem with intake:
  in intake.xml I use:
  
  ...
  field name=yearFrom key=yearFrom type=int
mapToProperty=yearFrom
 rule name=maxLength value=4Not more tha 4
  digits!/rule
 rule name=mask value=^[0-9]*$Only Numbers!/rule
 rule name=minValue value=1900Year at least
  1900!/rule
  
   /field
  
   field name=yearTo key=yearTo type=int
  mapToProperty=yearTo
 rule name=maxLength value=4Not more tha 4
  digits!/rule
 rule name=mask value=^[0-9]*$Only Numbers!/rule
 rule name=minValue value=1900Year at least
  1900!/rule
   /field
  ...
  
  Well the rules work, and the validation of them in the vm too, but now 
I
  want to do following:
  I want to validate that the yearFrom-field is smaller than the
  yearTo-field. I bet with intake
  itself this is not possible. So I want to validate it in my 
action-class.
  My two questions are:
  
  1) How do I access intake in my action class?
  When I use in the action class:
  
Group group = intake.get(groupName,);
  
  and then
group.get(yearFrom).setMessage(Message: Year from must be 
smaller
  than
  year to!);
  or
group.get(yearFrom).getMessage();
  
  I get the Error, that the intake-field was not found. (I'm quite sure
that
  I
  had not typed something wrong :)
  
  
  2)When I get the
  group.get(yearFrom).setMessage(Message); directive working, I don't
  want
  to set the message
  hardcoded in the action, I want to specify the message in intake.xml.
  To sum up: I want to validate a field in the action-class, but specify
the
  error message in intake.xml
  
  I would be verry happy, if somebody could help me!
  
  Cheers
  Florian
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  _
  MSN Photos is the easiest way to share and print your photos:
  http://photos.msn.com/support/worldwide.aspx
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: B6 problem

2002-09-01 Thread Akmal Sarhan



thanks Emmanuel,
that solved the problem, but I hope that the patch will be applied soon as I 
am certain that I am not the only one with a non-english OS.

Another question, I noticed that building from the cvs generates a lot of 
plugins that do not exist in the downloadable dist. but they are however 
copied to the $MAVEN_HOME/repository/maven/  dir, and not to 
$MAVEN_HOME/plugins/

any special reason, are they not fully functional yet?

thanks
regards
Akmal

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




B6 problem

2002-08-30 Thread Akmal Sarhan


I have encountered the following problem when upgrading to B6:
tasks like java:jar work as expected, but trying site:generate produced the 
following Stacktrace:
__  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-b5-dev

jakarta-turbine-2 (turbine) 2.2-b3-dev
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev

site:generate:
init-dvsl-tag:

jdepend:generate-report:
java:prepare-filesystem:

java:compile:

[ERROR] java.lang.reflect.InvocationTargetException: 
java.lang.NoClassDefFoundError: org/apache/tools/dvsl/DVSL
[ERROR] at org.apache.maven.DVSLBean.init(DVSLBean.java:181)
[ERROR] at java.lang.Class.newInstance0(Native Method)
[ERROR] at java.lang.Class.newInstance(Class.java:237)
[ERROR] at 
org.apache.commons.jelly.impl.DynamicBeanTag.beforeSetAttributes(DynamicBeanTag.java:139)
[ERROR] at 
org.apache.commons.jelly.DynaBeanTagSupport.setContext(DynaBeanTagSupport.java:92)
[ERROR] at 
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:119)
[ERROR] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
[ERROR] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:190)
[ERROR] at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:92)
[ERROR] at 
org.apache.commons.jelly.impl.BeanTagScript.run(BeanTagScript.java:180)
[ERROR] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
[ERROR] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:190)
[ERROR] at 
org.apache.commons.jelly.tags.werkz.GoalTag$1.performAction(GoalTag.java:119)
[ERROR] at com.werken.werkz.Goal.attain(Goal.java:524)
[ERROR] at com.werken.werkz.Goal.attainPrerequisites(Goal.java:427)
[ERROR] at com.werken.werkz.Goal.attain(Goal.java:492)
[ERROR] at com.werken.werkz.Project.attainGoal(Project.java:111)
[ERROR] at 
org.apache.commons.jelly.tags.werkz.AttainGoalTag.doTag(AttainGoalTag.java:115)
[ERROR] at 
org.apache.commons.jelly.impl.BeanTagScript.run(BeanTagScript.java:180)
[ERROR] at 
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
[ERROR] at 
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:190)
[ERROR] at 
org.apache.commons.jelly.tags.werkz.GoalTag$1.performAction(GoalTag.java:119)
[ERROR] at com.werken.werkz.Goal.attain(Goal.java:524)
[ERROR] at org.apache.maven.app.Maven.runGoals(Maven.java:979)
[ERROR] at org.apache.maven.app.Maven.attainGoals(Maven.java:873)
[ERROR] at org.apache.maven.app.App.doMain(App.java:363)
[ERROR] at org.apache.maven.app.App.main(App.java:850)
[ERROR] at java.lang.reflect.Method.invoke(Native Method)
[ERROR] at com.werken.forehead.Forehead.run(Forehead.java:543)
[ERROR] at com.werken.forehead.Forehead.main(Forehead.java:573)

I then added manually velocity-dvsl-0.43.jar to /lib of maven, which 
produced the following Stacktrace:

__  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-b5-dev

jakarta-turbine-2 (turbine) 2.2-b3-dev
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev

site:generate:
init-dvsl-tag:

jdepend:generate-report:
java:prepare-filesystem:

java:compile:

Loading stylesheet 
E:\3rdparty\maven-1.0-beta-6\plugins\maven-jdepend-plugin-1.1\jdepend.dvsl
In file 
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev\target\jdepend-raw-report.xml 
time: 1030718918000
Out file 
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev\target\generated-xdocs\jdepend-report.xml
 
time: 103071677
Style file 
E:\3rdparty\maven-1.0-beta-6\plugins\maven-jdepend-plugin-1.1\jdepend.dvsl 
time: 1029825032000
Processing 
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev\target\jdepend-raw-report.xml 
to 
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev\target\generated-xdocs\jdepend-report.xml
Processed 
E:\3rdparty\jakarta-turbine-2\target\turbine-2.2-b3-dev\target\jdepend-raw-report.xml 
in 1242 ms.

jdepend:

checkstyle:check-license-file:
init-dvsl-tag:

checkstyle:generate-report:
[echo] Using 
E:\3rdparty\maven-1.0-beta-6\plugins\maven-checkstyle-plugin-1.0/sun-checkstyle.properties
 
for checkstyle ...
[checkstyle] [ERROR] java.lang.reflect.InvocationTargetException: 
java.lang.NoClassDefFoundError: antlr/TokenStreamException
[checkstyle] [ERROR]at 
com.puppycrawl.tools.checkstyle.CheckStyleTask.execute(CheckStyleTask.java:665)
[checkstyle] [ERROR]at 
org.apache.tools.ant.Task.perform(Task.java:317)
[checkstyle] [ERROR]at 
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:204)
[checkstyle] [ERROR]at 
org.apache.commons.jelly.impl.DynaTagScript.run(DynaTagScript.java:141)
[checkstyle] [ERROR]at 

Re: project-insert-sql works in the wrong order

2002-07-12 Thread Akmal Sarhan


now that you mentioned it, I had the same problem, for some reason the 
alphabitical combination of the app seems to be important??
I had to change some things manually to get it to work, but the problem is 
still that I do not know why :(
regards
Akmal

From: Frederic Gedin [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: project-insert-sql works in the wrong order
Date: Fri, 12 Jul 2002 12:25:05 +0200

Well after some investigation the problem becomes stranger:
My first application's name is sumo
My second application's name is xptrack

project-insert-sql works fine for sumo but not for xptrack.

Then I tried with renaming my second application sumxp suspecting some
alphabetical order sorting side effect.  And miracle! It worked well.

I tried several combinations without finding any consistent logic in the
selection of project names which work and project names which do not
(e.g axptrack works well but not sxptrack).  Suspecting a bug I had
a quick look in the code of TorqueSQLExec which looks correct.

So I give up and I will try to find a name for my project database which
fits to project-insert-sql while pleasing me.

Frederic


Frederic Gedin wrote:

Hello


I have two applications to develop.  For the first one, I used a build
workspace close to the rules stated in
http://jakarta.apache.org/cactus/howto_ant_primer.html with success for
the database build pass.

Then I copied the workspace for the first application to make the second
one and changed all the names from appone to apptwo.  And now the
project-insert-sql tries to fill the ID_TABLE before is has been created.

I checked several times: the Torque.properties and apptwo-schema.xml
files both provide the same names for the database.

Did I miss something?

Frederic


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Cookies in Actions and Screens

2002-07-01 Thread Akmal Sarhan

well, I do the same thing in my application but I use 
$data.user.setTemp(...,...) and getTemp(...) instead and it works fine for 
me.
cheers
Akmal


From: Alexander Banthien [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Cookies in Actions and Screens
Date: Mon, 01 Jul 2002 12:50:31 +0200

Hi folks,

if anybody has gained experience in this please give me a hint.

My site is supposed to have on option for the users to change the
fontsize/stylesheet, for the display of their pages. (Bad idea say the
layouters ;-)

I chose to store the fontsize information in a cookie, which persists a
single user session.

I wrote two Actions: IncreaseFontsize, DecreaseFontsize which, when
called, do thier job correctly and set a new cookie value:
//--- action ---
CookieParser cp = data.getCookies();
cp.set(fontsize,newvalue);
//--

The problem is that the screen, which is executed right after one of
those actions, does not know about the new value. Only upon the next
run, does the new setting become active:

//  screen -
CookieParser cp = data.getCookies();
cp.get(fontsize); //turns out to be old.
//--

How must I instanciate the CookieParser in the screen in order to get
the new value?

Thanks for the attention

Alexander


--

Mit freundlichen Grüßen
Alexander Banthien

___
Questech GmbH
Schwarzwaldstr. 19
79199 Kirchzarten

Fon: +49 (0)7661 90 35-15
Fax: +49 (0)7661 90 35-20
www.questech.de

___




--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: how to install the Maven in Turbine?

2002-07-01 Thread Akmal Sarhan

I am not sure which version of maven you are using, I am using the 4th beta, 
I used to update it from the cvs but I gave up after a while as it
seems that not all the updates work ;-)

cheers
Akmal


From: Paul Leddy [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: RE: how to install the Maven in Turbine?
Date: Mon, 1 Jul 2002 11:23:03 -0700 (PDT)

ditto. dazed and confused.

ps now, i cant find the maven docs that confused me. sorry. 87)

--- David Cruwys [EMAIL PROTECTED] wrote:
  I too cannot get maven to work correctly, If you follow the on-line
  instructions,
  they do not work.  I've put my build properties in my user directory.
 
  I have also but a property file=${user.home}/build.properties/ just 
to
  be sure that the prop file is loaded ok.
 
  But maven will not do its stuff.
 
 
 
  -Original Message-
  From: Akmal Sarhan [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 28, 2002 6:37 PM
  To: [EMAIL PROTECTED]
  Subject: RE: how to install the Maven in Turbine?
 
 
  your ${user.home} under win2k is correct:USERPROFILE
 
 
  From: Duane Adams [EMAIL PROTECTED]
  Reply-To: Turbine Users List [EMAIL PROTECTED]
  To: Turbine Users List [EMAIL PROTECTED]
  Subject: RE: how to install the Maven in Turbine?
  Date: Fri, 28 Jun 2002 09:54:46 -0400
  
  I have been having the same problem. I believe it wants an absolute 
path
  like:
  
  if you have maven in:
  
  c:\tools\maven
  
  then your user home might be:
  
  c:\tools
  
  so maven should look for your build.properties in 
c:\tools\build.properties
  
  as long as maven knows where to look for the build.properites. I think 
that
  is all that matters.
  
  I still haven't got it to work, but i believe that's the idea.
  
  Duane
  
  -Original Message-
  From: touchmyheart [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 28, 2002 4:48 AM
  To: turbine user
  Subject: how to install the Maven in Turbine?
  
  
  i follow the page to install the Maven to build the source code of 
Turbine
  2.x
  http://jakarta.apache.org/turbine/maven/start/install.html
  
  there is one paragraph in it:
  ..
  Before you begin the JAR installation (the other installers should do 
this
  automatically for you), you'll need to define two Ant properties in 
your
  ${user.home}/build.properties file. You'll need to determine the 
location
  you want your Maven installation to reside, as well as the location of 
your
  JAR repository. If you don't have a ${user.home}/build.properties, 
create a
  file that contains the following two lines with appropriate values for 
your
  environment:
  
  lib.repo = /home/kaz/src/lib.repo
  maven.home = /home/kaz/maven
  ..
  
  __
  
  1)i dont understand the meaning of ${user.home}
  
  i am using Windows 2000,i guess it's the same value with USERPROFILE?
  right?
  
  2)maven.home = /home/kaz/maven ,i think it's UNIX path format,how do i
  redefine this in Windows 2000 ?
  
  
  
  
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
  _
  MSN Photos is the easiest way to share and print your photos:
  http://photos.msn.com/support/worldwide.aspx
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  CONFIDENTIALITY NOTICE
  This email is private and confidential and may contain legally 
privileged
  information. If you are not named above as an addressee it may be 
unlawful
  for you to read, copy, distribute, disclose or otherwise use the 
information
  in this email. If you are not the intended recipient of this email 
please
  destroy it and contact the sender via the switchboard on +353 (0) 1 457 
3299
  or via e-mail return.
 
  Any views or opinions presented are solely those of the author and do 
not
  necessarily represent those of the company or its associated companies 
unless
  otherwise specifically stated.
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Prioblem with dates!

2002-06-18 Thread Akmal Sarhan


This is a bug of the old mysql driver jar, upgrade to 
mm.mysql-2.0.14-bin.jar or later.
regards
Akmal

From: Fabio Daprile [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Prioblem with dates!
Date: Tue, 18 Jun 2002 16:57:42 +0200

Hello gentlemen,

i have a problem with dates.
I use Mysql vesr 3.23

I use this line of code to save the timestamp of the login (the 
lastlogintimestamp is a datetime column):

myUser.setLastlogintimestamp(Calendar.getInstance().getTime());

this line of code:

System.out.println(Calendar.getInstance().getTime());

gives this result:

Tue Jun 18 16:47:18 GMT+02:00 2002

but on the database the recorded time is:

2002-06-18 15:47:18, so one hour earlier.

Can anybody explain this?

The timezone of the mysql server is : W. Europe Daylight Time

the timezone of my PC  ig GMT+01.

thx in advance

--
Fabio Daprile

Würth-Phoenix Srl
Via Kravogl 4, I-39100 Bolzano
Tel: +39 0471/564111 - (direct 564070)
Fax: +39 0471/564122

mailto:[EMAIL PROTECTED]
http://www.wuerth-phoenix.com
http://www.wuerth.com




--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: generating SVG graphics

2002-06-12 Thread Akmal Sarhan

Thanks for the feedback,
well I came up with a simple way to do it:
in the calling screen:
...
FORM method=post action=$link.setPage(Chart.vm).setAction(SQL)
...
in my Action class I put the SVG text into the session:
...
data.getSession().setAttribute(svg, svgString);
...
in Chart.vm:
embed height=600 width=800 name=transform 
pluginspage=http://www.adobe.com/svg/viewer/install/; type=image/svg+xml  
src=$link.setPage(SVG.vm)/
...
in SVG.vm:
#set($svg=$data.session.getAttribute(svg))
$data.getOut().write($svg)

if someone has a better way to do it, would be nice to  share it ;)
cheers
Akmal







_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Using NumberKeys: Conflict between built-in and decoupled Torque in Turbine2.2b1

2002-06-03 Thread Akmal Sarhan

I guess your best choice at the moment is to use your own version of intake, 
and only swap the imports that are dependent on the turbine version of 
torque.
At least this is what I am using at the moment ;)
Akmal


From: Marc-Antoine Parent [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Using NumberKeys: Conflict between built-in and decoupled Torque 
in Turbine 2.2b1
Date: Mon, 3 Jun 2002 09:14:07 -0400

Good day!
I am making a few basic experiments with Turbine, and I have tables
connected with INTEGER foreign keys, which come up in my om objects as
org.apache.torque.om.NumberKeys fields. Fine.
When I try to create objects from a form in an ActionEvent, doing
 data.getParameters().setProperties(entry);
it invokes a org.apache.turbine.util.parser.BaseValueParser (possibly
actually a DefaultParameterParser) which only knows about
org.apache.turbine.om.NumberKey... and hences throws an exception at the
end of the following method:
 private void setProperty(Object bean,
  PropertyDescriptor prop)

Now, I read a bit on the list, and people say that there are problems
with the built-in and decoupled torque versions, but it does seem that
people generally get past the hurdle of creating an object from a form!
I cannot use turbine 2.1 as it chokes on tables without a primary key;
and I tried turbine 3, but I got lost in the documentation (or
scantiness thereof at this stage.)
Is it that turbine 2.2 users avoid using keys, and fill in those values
some other ways?
Is there an alternative to the BaseValueParser? I also had a look at
intake, and it seems to also use the org.apache.turbine.om.NumberKey
(built-in.)
Anyway... ideas appreciated at this point.
Thank you,
Marc-Antoine Parent


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Security framework

2002-06-03 Thread Akmal Sarhan

Thanks Scott,
would be great if you could somehow send the decoupled version. I had a 
quick look and  think it is really handy and cool, so if I understand 
correctly, I only need to write one Default class for all the screens and 
just rewrite the isAuthorized method to call the tool, right?
regards
Akmal


From: Eric Pugh [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Subject: RE: Security framework
Date: Mon, 3 Jun 2002 11:16:59 -0400

Is the version that Saimon created available?  And would it be possible to
put this code into CVS somewhere?  A crontrib directory?  I am thinking
about moving to T2.2 with the decoupled Torque, but all the posts about the
pain of having two different versions of torque to support Intake and
security is holding me off...

Alternatively, if this code works, then maybe it could be submitted as the
replacement for the existing security?

Maybe this should go to Turbine Dev list...?

Eric Pugh

-Original Message-
From: Weaver, Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 10:52 AM
To: 'Turbine Users List'
Subject: RE: Security framework


Hi Akmal,

If you have any problems with that attachment let me know and I can send
you
the current source.

It may also be of interest that Saimon Moore (thanks Saimon!!!) has
patched
it to work as a decoupled fulcrum service, as my current version is
written
for T2.2 coupled torque/fulcrum.

Now if we could just get more people interested in working on re-writing
turbine's core security service ;-)

Scott




  -Original Message-
  From: Eric Dobbs [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, June 02, 2002 9:21 PM
  To: Turbine Users List
  Subject: Re: Security framework
 
 
  On Sunday, June 2, 2002, at 08:12  AM, Akmal Sarhan wrote:
 
   I have been reading some interesting mails about a security service
   written by Scott Weaver, but can not get hold of the source
  code of it,
   does anybody have a link to the files?!
 
  Scott's post on the subject in the archive is here:
  http://nagoya.apache.org/eyebrowse/ReadMsg?listName=turbine-
  [EMAIL PROTECTED]msgId=293804
  There's an attachment accessible at the bottom of the
  message.
 
  -Eric
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Security framework

2002-06-02 Thread Akmal Sarhan



Hello,
I have been reading some interesting mails about a security service written 
by Scott Weaver, but can not get hold of the source code of it, does anybody 
have a link to the files?!
thanks
Akmal

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Date problems

2002-06-01 Thread Akmal Sarhan

Thanks a lot Scott!
I was about to dive into the code to try to figure out what the problem was, 
so you saved me a lot of time :)
Akmal


From: Scott Eade [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: turbine-user [EMAIL PROTECTED]
Subject: Re: Date problems
Date: Sat, 01 Jun 2002 19:32:46 +1000

OK - for the mail archive, the problem was resolved by upgrading to the
latest mysql jdbc driver (mm.mysql-2.0.14-bin.jar).

Scott

  From: Scott Eade [EMAIL PROTECTED]
 
  Apologies up front if this is in fact a mysql rather than a turbine
  question.
 
  Environments:
Development - Win2k, turbine 2.1, mysql 3.23.42-nt
Production - Linux, turbine 2.1, mysql 3.23.32
 
  A bunch of my tables include START_DATE and END_DATE columns that are
  defined as type=DATE in my schema, becoming DATETIME for mysql.
 
  Values for these columns are entered as Strings and converted to dates 
using
  (new SimpleDateFormat(d/MM/)).parse()
 
  The problem I am experiencing occurs when the date entered falls in 
daylight
  savings time (DST).  For the examples below my locale is en-AU.
 
  A non-DST Date is expressed in GMT+10 - e.g.:
 
31/05/2002 becomes: Fri May 31 00:00:00 GMT+10:00 2002
 
  For DST times the offset to GMT is simply adjusted automatically by the 
JVM
  - e.g.:
 
31/12/ becomes: Fri Dec 31 00:00:00 GMT+11:00 
 
  Note that this isn't just an oddity of -12-32, it occurs for all DST
  dates.
 
  The problem is that when these hit the database I get a different result 
on
  my development and production systems.  On development I get:
 
2002-05-31 00:00:00
-12-31 00:00:00
 
  But on production I get:
 
2002-05-31 00:00:00
-12-30 23:00:00 -  yikes!
 
  This causes a date creep backwards whenever the record is updates - i.e. 
It
  will be read as -12-30, but later updated to -12-29 23:00:00.
 
  From what I can tell the problem must be a mysql issue - on one 
environment
  it seems to be ignoring the timezone difference for the DST date but on 
the
  other it is catering for it.
 
  Have others experienced this kind of problem?  Know of a solution?
 
  If I can get the two mysql instances to behave consistently then I can
  correct the date after I parse it.  The most annoying aspect of this 
problem
  is that I only want a Date but I am having to muck around with the time!
 
  Thanks in advance for any advise offered.
 
  Scott
 
 
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]
 


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: AW: using the decoupled fulcrum services ?

2002-05-28 Thread Akmal Sarhan

I get this Exception in the Fulcrum.log, and have the same problem about the 
unknown service when trying to use it:

2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: FactoryService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: PoolService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: MimeTypeService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: SchedulerService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: XmlRpcService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: UploadService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: SecurityService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: XSLTService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: BSFService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: GlobalCacheService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: TemplateService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: LocalizationService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: IntakeService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Added 
Mapping for Service: VelocityService
2002-05-28 18:36:47,829 [main] INFO  org.apache.fulcrum.Fulcrum- Start 
Initializing service (early): XmlRpcService
2002-05-28 18:36:47,899 [main] INFO  org.apache.fulcrum.Fulcrum- 
org.apache.fulcrum.InitializationException: XMLRPCService failed to 
initialize: Address in use: JVM_Bind
2002-05-28 18:36:47,909 [main] INFO  org.apache.fulcrum.Fulcrum- 
java.io.IOException: Address in use: JVM_Bind
at org.apache.xmlrpc.WebServer.init(Unknown Source)
at org.apache.xmlrpc.WebServer.init(Unknown Source)
at org.apache.fulcrum.xmlrpc.TurbineXmlRpcService.init(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.initService(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.doInitService(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.initServices(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.init(Unknown Source)
at org.apache.fulcrum.Fulcrum.initialize(Unknown Source)
at org.apache.stratum.component.ComponentLoader.loadComponent(Unknown 
Source)
at org.apache.stratum.component.ComponentLoader.load(Unknown Source)
at org.apache.turbine.Turbine.init(Turbine.java:246)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3274)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3403)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
rethrown as org.apache.fulcrum.InitializationException: XMLRPCService failed 
to initialize: Address in use: JVM_Bind
at org.apache.fulcrum.xmlrpc.TurbineXmlRpcService.init(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.initService(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.doInitService(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.initServices(Unknown Source)
at org.apache.fulcrum.BaseServiceBroker.init(Unknown Source)
at org.apache.fulcrum.Fulcrum.initialize(Unknown Source)
at org.apache.stratum.component.ComponentLoader.loadComponent(Unknown 
Source)
at org.apache.stratum.component.ComponentLoader.load(Unknown Source)
at org.apache.turbine.Turbine.init(Turbine.java:246)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at 

Intake and dates

2002-05-24 Thread Akmal Sarhan


I have two question regarding intake:
I am using a decoupled version of intake(just to be able to populate
the NumberKey the torque version and not turbine ) and now I am using the 
DateString support thanks to  Maciej Leks, which made my life easier with 
dates.
1- when I put a valid date into the form like 10.10.1995, I get 09.10.1995 
23:00:00 in the database?!
I asked   Maciej Leks and he has the same thing, I am using turbine2.2.b2 
and torque3.0.b1

2-a General question: is it possible to define a rule in the intake.xml that 
depends on another rule ?

regards
Akmal



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: I can't seem get a basic turbine/velocity page to work

2002-05-05 Thread akmal Sarhan


try to put a debug statement in your doBuild() to see if it gets called at 
all, it might just be a problem of capitalization issue of the class name ;)
akmal

From: Matthew S. Woodworth [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: I can't seem get a basic turbine/velocity page to work
Date: Sat, 4 May 2002 21:00:53 -0400

Thanks but that didn't change the symptoms.

Matt W

  wrote:

Matthew S. Woodworth wrote:

Friends,

I can't get even the most basic page to work.  I'm trying to learn the 
framework by mucking around with the sample app.  I added a new vm in the 
newapp/templates/apps/screens dir and I put a java file with a matching 
name in org/mycompany/newapp/modules/screens.

I had this idea that it would just work.  It properly sets the title 
and puts the header, footer, etc. on there but it says mswtag = $mswtag 
on my screen.  Any ideas?
Matt W.

PS  Here's the code


public class MSWFirstVM extends VelocityScreen {
 public void doBuild(RunData data, Context context) {
 context.put(mswtag, Hello World);


You should try with :
context.put(mswtag, new String(Hello Wold));


 }
}

html
$page.setTitle(MSW test page)
body
This is a test
BRBR
mswtag = $mswtag
BRBR
/body
/html

Stéphane


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   mailto:turbine-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:turbine-user-
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: I can't seem get a basic turbine/velocity page to work

2002-05-05 Thread akmal Sarhan


How do you call MSWFirstVM.vm ?!
akmal

From: Matthew S. Woodworth [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: I can't seem get a basic turbine/velocity page to work
Date: Sun, 5 May 2002 09:31:39 -0400

I did that.  It doesn't seem to be getting called (my text didn't get to
the console).  Here are the file names

/Users/vanguard/src/tdk/webapps/newapp/templates/app/screens/MSWFirstVM.vm

/Users/vanguard/src/tdk/webapps/newapp/WEB-
INF/classes/org/mycompany/newapp/modules/screens/MSWFirstVM.class

Once again, here's the code:

public class MSWFirstVM extends VelocityScreen {

 public void doBuild(RunData data, Context context) {
 System.out.println(In the doBuild method);
 context.put(mswtag, new String(Hello World));
 }

}

html
$page.setTitle(MSW test page)
body
This is a test
BRBR
mswtag = $mswtag
BRBR
/body
/html

Any idea why the doBuild isn't getting called?

Matt W.

On Sunday, May 5, 2002, at 07:30  AM, akmal Sarhan wrote:


try to put a debug statement in your doBuild() to see if it gets called
at all, it might just be a problem of capitalization issue of the class
name ;)
akmal


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




SQL logging

2002-05-04 Thread akmal Sarhan

I am trying to debug my sql statements, I tried to change the properties
in TR.p to:
services.LoggingService.system.level=DEBUG
and
services.LoggingService.sql.level=DEBUG

but all I get is the login statments and the the TURBINE_USER,
,TURBINE_ROLE and TURBINE_PERMISSION select statement i.e turbine own 
sequrity system, but my own statements does not appear, Do I have to change 
something in my own code?

Akmal

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Passing objects to context

2002-05-03 Thread akmal Sarhan

Hi Scott,
can you give an example code.

Akmal


From: Weaver, Scott [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: 'Turbine Users List' [EMAIL PROTECTED]
Subject: RE: Passing objects to context
Date: Fri, 3 May 2002 09:20:53 -0400

Another, possibly more Turbine-esque, way to acheive this is to use a
session pull tool.  This is a little easier than using a the http session
since the pull tool is always automatically added to the context.  This way
you don't have to worry about adding to the http session or to the context.

scott

  -Original Message-
  From: Fabio Daprile [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 03, 2002 5:10 AM
  To: Turbine Users List
  Subject: Re: Passing objects to context
 
 
  Hello John,
 
  Another way to pass objects from a screen to another is to
  store objects
  in the session object.
  hereafter an example:
 
  in the Java code:
 
  ParameterParser _formParams;
  HttpSession _session;
 
  _formParams = data.getParameters();
  _session = data.getSession();
 
  _queueId = _formParams.getInt(Queue);
  _session.setAttribute(QueueId,Integer.toString(_queueId));
 
  in the VM:
 
  $data.getSession().getAttribute(QueueId)
 
  hope this can help you.
 
  regards.
 
  ---
  Fabio Daprile
 
  Wurth-Phoenix Srl
  Via Kravogl 4, I-39100 Bolzano
  Tel: +39 0471/564111 - (direct 564070)
  Fax: +39 0471/564122
 
  mailto:[EMAIL PROTECTED]
  http://www.wuerth-phoenix.com
  http://www.wuerth.com
 
 
  John Harris wrote:
 
  Please forgive the simplicity of the question, but I'm
  trying to learn and become accustomed to turbine. Any help is
  greatly appreciated.
  
  How can I carry a vector holding the result of a doSelect
  query from one screen to another? For example, if I have the
  following code for screen1.vm, with its associated
  screen1.java - after the user selects the id, how can
  testAction.java grab $resultSet from screen1.vm.
  
  http://localhost/appname/servlet/appname/template/screen1.vm
  
  form action=$link.setAction(testAction)
  select name=testSelect id=testSelect
  #foreach $record in $resultSet
  option value=$record.id$record.name/option
  #end
  /select
  /form
  ¯---
  public class screen1 extends VelocityScreen {
public void doBuildTemplate(Rundata data, Context context)
  throws Exception {
  
  Criteria crit = new Criteria();
  crit.add(TablePeer.TYPE, 1);
  Vector ResultSet = TablePeer.doSelect(crit);
  context.put(resultSet, ResultSet);
}
  }
  
  - John Harris
  
  
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




app name vs db name

2002-04-16 Thread akmal Sarhan

Hi everybody,

I have a simple question:

does the name of the application has to correspond to the name of the 
database, or can I
name the project newapp and have a newappdb database created for it!
thanks for the feedback
Akmal

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




several projects using the same database

2002-04-13 Thread akmal Sarhan

Hello,

I am trying to test more than one turbine project on my website, but as the 
access I have to the server's MySQL is mapped to my Login name,I can not use 
more than that database.

what should I change in the properties to be able to run more than one app. 
on the server using the same db.

regards
Akmal

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Mave jars-install.list not present?

2002-04-10 Thread akmal Sarhan


Hello Jason,
I tried the mailing list that you mentioned some times, but it does not seem 
active to me, it always contains no messages!

my question is, when I build a maven-enables project, and I do maven:site, 
then go to .../doc/index.html ,all the navigations links are bad, they all 
point to ...docs/$relativePath/*.html

I tried to build the Turbine site and I get the same mistake!

Akmal

From: Jason van Zyl [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: Mave jars-install.list not present?
Date: 10 Apr 2002 08:10:31 -0400

On Wed, 2002-04-10 at 09:05, Christian Willy Asmussen wrote:
  On Wed, Apr 10, 2002 at 07:54:40AM -0400, Jason van Zyl wrote:
   On Wed, 2002-04-10 at 08:53, Christian Willy Asmussen wrote:
This is my first experience with maven.  I am following the web 
reference on
how to build maven.  It fails :-(
   
I had a look at mavens build-bootstrap.xml.
On line 264:
get-list
 list=jars-install.list
 dest=${lib.repo}
 baseUrl=${get.jars.baseUrl}/
/
   
I don't see the jars-install.list anywhere.  Is this correct?  the
update-jars target doesn't seem to get anything. Look:
  
   That file has been in there for 10 hours, you might have tried to 
build
   it while I was updating.
  
   
http://cvs.apache.org/viewcvs/jakarta-turbine-maven/jars.list?rev=1.1content-type=text/vnd.viewcvs-markup
 
  Sorry, I think I'm getting this wrong.  the file used is 
jars-install.list
  (typo?)

Yup, you are right. The typo was my fault in the build-bootstrap.xml
file. Fixed.

There is also a maven mailing list:

http://jakarta.apache.org/turbine/maven/mail-lists.html


--
jvz.

Jason van Zyl
[EMAIL PROTECTED]

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Explorer newapp access problem, continued

2002-04-08 Thread akmal Sarhan

Thanks Randall,
I will give them a try!
regards
Akmal


From: Randall G. Alley [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: Explorer newapp access problem, continued
Date: Mon, 08 Apr 2002 10:34:08 -0400

Sorry, make that $19 per month for the minimal plan with JVM  mysql.

Randall G. Alley wrote:

Try www.kattare.com
Plans with a private JVM and mysql start at $29 per month.

akmal Sarhan wrote:

Hi Slava,

I think you might be able to help me!

I am looking for a good webhost to try out my turbine adventures
which would have an MySQL as well. I am looking either for a cheap
one, as it is only development and not production, or a free one
(which would be great!)

hopefully you have some experience with this!

Thanks in advance!
Akmal


From: Slava Zimine [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Explorer newapp access problem, continued
Date: 08 Apr 2002 03:07:47 +0200

Hi.
Few days ago i've posted a message explaining my unhappiness to
access a
tdk2.2b1 newapp from explorer.


tdk2.2b1 newapp was built successfully after reading list posts, and
with Akmal's help.

http://www.mail-archive.com/turbine-user%40jakarta.apache.org/msg07255.html



essentially, trying to access the
yourserver:8080/newapp/servlet/newapp in explorer is successful but
it takes about 1.5 minutes for Explorer to load the login page

If i click in a URL adress field and hit an 'Enter' the login page
loads immediately.

in netscape6.2 linux, there is no such a problem. the login page loads
after 4 secs.


in tdk2.1 (tomcat 4.0) there is no such a problem for explorer, loading
newapp is quick.

in scarab, there is no such a problem for explorer. (turbine3,
tomcat-4.0.4)


I've tried to copy webapps/newapp from tdk2.1 to a standalone
jakarta-tomcat-4.0.4b2. In explorer I got the same problem accessing
the Login page.


I invite those using IE5.x try to access my newapp at

http://japgod.mine.nu:8080/newapp22ak/servlet/newapp22ak

see if you observe a delay.

and have their opinion if possible.

Slava.

p.s.
Given that explorer is a dominan web-browser and average user does not
hit 'Enter' in adress URL field, I think the issue should be resolved.


attached adre jpegs from ethereal for linux netscape 6 local access
and ie5.5 access stopped during the waiting period








 ie5dump.jpg 
 netscape-dump.jpg 
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: problem to access newapp with Explorer/Opera

2002-04-04 Thread akmal Sarhan


Hello,
pls have a look at
http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg07187.html
and change your build.xml accordingly.
I have win2k and IE 5.5 and I do not have this problem
good luck!
From: Ben Peter [EMAIL PROTECTED]
Reply-To: Turbine Users List [EMAIL PROTECTED]
To: Turbine Users List [EMAIL PROTECTED]
Subject: Re: problem to access newapp with Explorer/Opera
Date: Thu, 04 Apr 2002 00:29:45 +0200

Hi,

you probably need to install the loopback network adapter. By default there 
is
no loopback interface available on Win2K as far as I know.

Ben

Slava Zimine wrote:
Hi.

I'd like to ask if anybody else has experienced this problem:


accessing  with linux netscape 6
http://127.0.0.1:8080/newapp/servlet/newapp  (which turns on linux)

poses no problem.


Trying to access it with Explorer5/W2k on the same Lan  takes very long
time with a message like
Website found, waiting for the reply
opening page http://192.168.1.2/newapp/servlet/newapp

The page can be accessed if I click in the url adress field  and hit
Enter

The tdm logo  is not loaded.


In Linux Opera 5 opening the newapp also hangs. The page loads like with
Explorer, when the URL field is hit with Enter.


in linux netscape 6, none of these problems exist.


Anybody has seen it?
if yes, what is the remedy to fix explorer problem?


regards,
Slava

tdk2.2.b1
newapp default application
OS linux 2.4.4
j2sdk1.4

tested it with tomcat-4.0.4b1 in tdk2.2.b1
and with tomcat-4.0.4b2








--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



--
Benjamin Peter  +49-69-96244395
Application Engineer Moerfelder Landstr. 55
(zentropy:partners)60598 Frankfurt, Germany


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




webhost

2002-04-04 Thread akmal Sarhan

Hi,
this question is off-track, sorry! but I tried hard and I hope that some 
would have an experience with this!

I am trying to test my appliction live, i.e not on localhost anymore and I 
am looking for a free webhost, where I can use Turbine and MySQL on!
sorry again!

Akmal Sarhan

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




SSL

2002-04-02 Thread akmal Sarhan

Hello!

I would like to use SSL for some of the pages of the project:
if I set one the calls to one page to secure() , The following pages get 
called
via SSL ! any ideas how I can decide which page should use SSL ?!

Thanks in advance
Akmal Sarhan

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




newapp

2002-03-27 Thread akmal Sarhan

I have installed the newapp and got it finally running!
I have a question:
when I press InsertEntry and then fill in the form and press insert the 
database is updated..then once I press F5 to update that page, the row in 
the database is then duplicated! any workaround!

akmal

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




newapp

2002-03-27 Thread akmal Sarhan

I have installed the newapp and got it finally running!
I have a question:
when I press InsertEntry and then fill in the form and press insert the 
database is updated..then once I press F5 to update that page, the row in 
the database is then duplicated! any workaround!

akmal

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]