[jira] Created: (VELTOOLS-78) I get a UnsupportedClassVersionError: org/apache/velocity/tools/generic/DateTool (Unsupported major.minor version 49.0). But Velocity should run on Java 1.4???

2007-02-13 Thread JIRA
I get a UnsupportedClassVersionError: 
org/apache/velocity/tools/generic/DateTool (Unsupported major.minor version 
49.0). But Velocity should run on Java 1.4???
---

 Key: VELTOOLS-78
 URL: https://issues.apache.org/jira/browse/VELTOOLS-78
 Project: Velocity Tools
  Issue Type: Bug
  Components: GenericTools
Affects Versions: 1.3
 Environment: Tomcat 5.x, JDK 142_04, Windows NT
Reporter: Jon Are Storløkken


I got this problem when running on Tomcat 5 with JDK 142_04. As I understand, 
the new version of Velocity should still work on JDK 1.4. I guess it must have 
been compiled on Java 5...

java.lang.UnsupportedClassVersionError: 
org/apache/velocity/tools/generic/DateTool (Unsupported major.minor version 
49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:874)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:874)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at 
org.springframework.web.servlet.view.velocity.VelocityView.exposeToolAttributes(VelocityView.java:454)
at 
org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateModel(VelocityView.java:321)
at 
org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:160)
at 
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at 
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:965)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:744)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 

Re: [ANN] tuc 1.0a1 - URLConnection unit testing framework built for VELTOOLS

2007-02-13 Thread Nathan Bubna

nice!  i'll try to take a look at it this week.

On 2/12/07, Christopher Schultz [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

In writing unit tests for velocity tools, I needed a component like this
and it didn't already seem to exist. So, I created a formal project on
sourceforge under the Apache Software License 2.0 and I have an alpha
release.

The project can be found here:
http://sourceforge.net/projects/tuc

The only file available for release is tuc-1.0a.zip which contains the
full source, small amount of documentation, and a JAR binary for direct
use. Unit tests are also provided, and the project is buildable very
easily by simply doing ant dist.

I'd appreciate any feedback or suggestions for improvements, etc. MY
goal is to get this vetted and then used for velocity tools' test suite.

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0Oxq9CaO5/Lv0PARAkRjAJ9rPPyhZpLi1io2qh9DKJeb9hG6XACgkxvp
IxCL/7SPHt5sXRcEfCe5MbQ=
=05+H
-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: update on site issues

2007-02-13 Thread Nathan Bubna

file permissions on my key don't seem to be the issue.  i don't know a
ton about ssh perms, but it sure seems like my account just doesn't
have the karma to do '-o BatchMode yes'.  still looking into it...

On 2/9/07, Will Glass-Husain [EMAIL PROTECTED] wrote:

Stupid question, but are the file permissions right on the public key
and containing folder?  That always trips me up when logging in with
SSH keys.

WILL

On 2/9/07, Nathan Bubna [EMAIL PROTECTED] wrote:
 Don't get too excited yet.

 So, i gave up on trying to get the site plugin to generate the
 index.html page with the news macro.  Instead, i commented out the
 news macro and manually added the latest news.  So now i have the site
 building and running perfectly on machine.

 Now i'm caught up trying to deploy the site.  I've added my user/pass
 to the velocity.apache.org server in my M2 settings.xml, but the
 site:deploy target is failing rather mysteriously:

 [INFO] 

 [INFO] Building Apache Velocity Site
 [INFO]task-segment: [site:deploy]
 [INFO] 

 [INFO] [site:deploy]
 scpexe://people.apache.org/www/velocity.apache.org - Session: Opened
 Executing command: ssh -o BatchMode yes [EMAIL PROTECTED]
 mkdir -p /www/velocity.apache.org/.

 Permission denied (publickey,keyboard-interactive).

 scpexe://people.apache.org/www/velocity.apache.org - Session: Disconnecting
 scpexe://people.apache.org/www/velocity.apache.org - Session: Disconnected
 [INFO] 

 [ERROR] BUILD ERROR
 [INFO] 

 [INFO] Error uploading site

 Embedded error: Error performing commands for file transfer
 Exit code 255 - Permission denied (publickey,keyboard-interactive).

 [INFO] 

 [INFO] Total time: 16 seconds
 [INFO] Finished at: Fri Feb 09 14:54:22 PST 2007
 [INFO] Final Memory: 6M/12M
 [INFO] 


 I've tried about a dozen different things messing with rsa and dsa
 keys, adding/removing my password from settings.xml, and more, but no
 luck yet.  I've also tried running the ssh command that is failing,
 and it only works if i take out the -o BatchMode yes part.

 Anyone have any ideas?

 On 2/9/07, Will Glass-Husain [EMAIL PROTECTED] wrote:
  Good to hear!  Glad we have this as a group capability.
 
  WILL
 
  On 2/8/07, Nathan Bubna [EMAIL PROTECTED] wrote:
   I've made some progress with building the site.  I've managed to get
   maven (2.0.6-snapshot) to build the web site successfully on my local
   machine with the exception of the front page, which appears to be
   failing due to the following error:
  
   Caused by: org.apache.maven.doxia.macro.manager.MacroNotFoundException:
   Cannot find macro with id = null
  
   I'm hoping to look further into that today or tomorrow if i have time.
I haven't tried deploying the site yet.
  
   In the meantime, i've also noticed that there are a number of folders
   in /www/velocity.apache.org/ that do not have velocity group
   permissions, so i can't do anything with them.  These are the engine/,
   tools/, and dvsl/ folders.  This means i can't add the documentation
   for the Tools 1.3 release or the devel/ documentation in their current
   location unless Henning checks this and changes the group perms or
   someone else with sufficient karma changes them.
  
   Anyone out there got that karma? Geir?  Or does anyone know who i
   should talk to?  I'm guessing the infrastructure people, but i thought
   i'd ask here first.
  
   The other option would be to change all those locations, but i'd
   rather not if it can be helped.
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Forio Business Simulations
 
  Will Glass-Husain
  [EMAIL PROTECTED]
  www.forio.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]




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.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]



Re: update on site issues

2007-02-13 Thread Will Glass-Husain

Nice.


Will, are you going to roll Engine 1.5 anytime soon?  if not, i might
be up for doing it later this week.


I think so.  I've been getting about 6 hours of sleep nightly for the
last few weeks lately due to work deadlines.  When that hits 8, I'll
have a little free time to address this :-)  Give me till  this
weekend to do the right thing here...

WILL


On 2/13/07, Nathan Bubna [EMAIL PROTECTED] wrote:

finally got it working.  the updated site has been uploaded and should
be on the public servers soon.  i'll probably get an announcement out
tomorrow afternoon (too busy between now and then otherwise).

for the curious, i finally just wiped my ssh keys on both the server
and my client and re-did them following the instructions here:
http://www.atmos.albany.edu/facstaff/rmctc/ssh2/

not sure exactly what was wrong before, but it works.

Will, are you going to roll Engine 1.5 anytime soon?  if not, i might
be up for doing it later this week.

On 2/13/07, Nathan Bubna [EMAIL PROTECTED] wrote:
 file permissions on my key don't seem to be the issue.  i don't know a
 ton about ssh perms, but it sure seems like my account just doesn't
 have the karma to do '-o BatchMode yes'.  still looking into it...

 On 2/9/07, Will Glass-Husain [EMAIL PROTECTED] wrote:
  Stupid question, but are the file permissions right on the public key
  and containing folder?  That always trips me up when logging in with
  SSH keys.
 
  WILL
 
  On 2/9/07, Nathan Bubna [EMAIL PROTECTED] wrote:
   Don't get too excited yet.
  
   So, i gave up on trying to get the site plugin to generate the
   index.html page with the news macro.  Instead, i commented out the
   news macro and manually added the latest news.  So now i have the site
   building and running perfectly on machine.
  
   Now i'm caught up trying to deploy the site.  I've added my user/pass
   to the velocity.apache.org server in my M2 settings.xml, but the
   site:deploy target is failing rather mysteriously:
  
   [INFO] 

   [INFO] Building Apache Velocity Site
   [INFO]task-segment: [site:deploy]
   [INFO] 

   [INFO] [site:deploy]
   scpexe://people.apache.org/www/velocity.apache.org - Session: Opened
   Executing command: ssh -o BatchMode yes [EMAIL PROTECTED]
   mkdir -p /www/velocity.apache.org/.
  
   Permission denied (publickey,keyboard-interactive).
  
   scpexe://people.apache.org/www/velocity.apache.org - Session: 
Disconnecting
   scpexe://people.apache.org/www/velocity.apache.org - Session: Disconnected
   [INFO] 

   [ERROR] BUILD ERROR
   [INFO] 

   [INFO] Error uploading site
  
   Embedded error: Error performing commands for file transfer
   Exit code 255 - Permission denied (publickey,keyboard-interactive).
  
   [INFO] 

   [INFO] Total time: 16 seconds
   [INFO] Finished at: Fri Feb 09 14:54:22 PST 2007
   [INFO] Final Memory: 6M/12M
   [INFO] 

  
   I've tried about a dozen different things messing with rsa and dsa
   keys, adding/removing my password from settings.xml, and more, but no
   luck yet.  I've also tried running the ssh command that is failing,
   and it only works if i take out the -o BatchMode yes part.
  
   Anyone have any ideas?
  
   On 2/9/07, Will Glass-Husain [EMAIL PROTECTED] wrote:
Good to hear!  Glad we have this as a group capability.
   
WILL
   
On 2/8/07, Nathan Bubna [EMAIL PROTECTED] wrote:
 I've made some progress with building the site.  I've managed to get
 maven (2.0.6-snapshot) to build the web site successfully on my local
 machine with the exception of the front page, which appears to be
 failing due to the following error:

 Caused by: 
org.apache.maven.doxia.macro.manager.MacroNotFoundException:
 Cannot find macro with id = null

 I'm hoping to look further into that today or tomorrow if i have time.
  I haven't tried deploying the site yet.

 In the meantime, i've also noticed that there are a number of folders
 in /www/velocity.apache.org/ that do not have velocity group
 permissions, so i can't do anything with them.  These are the engine/,
 tools/, and dvsl/ folders.  This means i can't add the documentation
 for the Tools 1.3 release or the devel/ documentation in their current
 location unless Henning checks this and changes the group perms or
 someone else with sufficient karma changes them.

 Anyone out there got that karma? Geir?  Or does anyone know who i
 should talk to?  I'm guessing the infrastructure people, but i thought
 i'd ask here first.