compiling RIFE from sources (error) and a little problem with auth.error_area

View: New views
2 Messages — Rating Filter:   Alert me  

compiling RIFE from sources (error) and a little problem with auth.error_area

by bonefry@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

First a little context...

I started using Rife for a real application.
I read this documentation file: http://rifers.org/wiki/display/RIFE/GuideAuthentication
and implemented the memory authentication mechanism described.

The first problem I had ... where can I find a model for
auth.error_area because <!--I 'auth.error_area'/--> reported an error.

The second problem ... I also got an exception upon a correct login
that magically disappeared when I restarted Tomcat.

That is why I decided to compile Rife from sources and see if I can
understand the source code (I strongly believe that I need to be able
to fix such errors by myself).

Problem is that I get this error when I try to compile Rife 1.6.1:

rife-source-1.6.1\src\framework\com\uwyn\rife\database
\DbResultSet30.java:12: com.uwyn.rife.database.DbResultSet30 is not
abstract and does not override abstract method
updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet

I am using Netbeans 5.5 and I have both JDK 5 and 6 installed. I
really don't know what the build script is selecting and I don't have
time to decipher the build.xml file right now.

I modified DbResultSet30 to be abstract and it appears to be working
but I don't want any surprises later.

Can you guys help me here ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: compiling RIFE from sources (error) and a little problem with auth.error_area

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

> The first problem I had ... where can I find a model for
> auth.error_area because <!--I 'auth.error_area'/--> reported an error.

You should be able to use this:
http://svn.rifers.org/rife-jumpstart/trunk/resources/templates/common/ 
error_area.html

> The second problem ... I also got an exception upon a correct login
> that magically disappeared when I restarted Tomcat.

Strange, I'd love to be able to reproduce this :-)

> That is why I decided to compile Rife from sources and see if I can
> understand the source code (I strongly believe that I need to be able
> to fix such errors by myself).
>
> Problem is that I get this error when I try to compile Rife 1.6.1:

The main problem with compiling RIFE is that it contains both JDK 1.5  
and JDK 1.6 sources in the same tree. Most IDEs allow you to exclude  
certain files from analysis / compilation, however I don't think that  
NetBeans does. The easiest would be for you to compile it from the  
command line with Ant.

ant clean jar15

or

ant clean jar16

Depending on whether JDK 1.5 or 1.6 is active.

Also, it's best to work from SVN, since the sources there have been  
updated to fully support JDK 1.6 even when the classes have been  
generated with the 1.6 javac target. RIFE 1.6.1 only supported  
running under JDK 1.6, but the classes had to be compiled with the  
1.5 target.

HTH,

Geert

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price
 
 
 
Google
rifers.org web