List Info

Thread: The requested URL /pebble/j_acegi_security_check was not found on this server.




The requested URL /pebble/j_acegi_security_check was not found on this server.
user name
2006-08-18 20:59:16
Hi John.

Comments inline

Cheers
Simon

On 8/18/06, John B. Moore <esonicspider.com">jbmesonicspider.com> wrote:
Simon,

Don't know if you got these but in my installation I encountered the
following issues that should be considered for correction..

1) Missing context for mod_jk.conf

Currently (at least in my setup as documented previously in this thread)
ApacheConfig generates the following JKMounts

 &nbsp; &nbsp; JkMount /pebble/*.xml &nbsp;ajp13
&nbsp;   ; JkMount /pebble/jcaptcha ; ajp13
 &nbsp; &nbsp; JkMount /pebble/xmlrpc/* ; ajp13
 &nbsp; &nbsp; JkMount /pebble/*.jspx &nbsp;ajp13
  ; &nbsp; JkMount /pebble/*.jsp &nbsp;ajp13
&nbsp;   ; JkMount /pebble/*.action ; ajp13
 &nbsp; &nbsp; JkMount /pebble/index.html&nbsp; ajp13
 &nbsp;   JkMount /pebble/*.secureaction &nbsp;ajp13

..as a result I get the error of this thread title..

Adding this JKMount manually fixes that problem.. (it may be necessary
to fix this differently but that is up to you..)

&nbsp; &nbsp; JkMount /pebble/*&nbsp; ajp13

Pebble does all sorts of things with URLs, so I wouldn't rely on auto-generated mod_jk config. I recommend forwarding /pebble/* to Tomcat.
&nbsp;

2) In the encode-password.sh the following classpath is missing..

$PEBBLE_HOME/WEB-INF/lib/spring- 1.2.6.jar

..and should be added..


I still don't understand why this is needed, since it works locally for me on both WinXP and Mac OS X. What OS and JVM are you using?
&nbsp;

Lastly I'm very impressed with Pebble and plan to integrate it into
number of my client's websites.

I will be testing in the next few weeks and will report any issues as I
explore the software..

I hope to become a regular contributor..

John Moore
SonicSpider LLC


The requested URL /pebble/j_acegi_security_check was not found on this server.
user name
2006-08-18 23:11:25
Simon Brown wrote:

>     Adding this JKMount manually fixes that problem..
(it may be necessary
>     to fix this differently but that is up to you..)
> 
>         JkMount /pebble/*  ajp13
> 
> 
> Pebble does all sorts of things with URLs, so I
wouldn't rely on 
> auto-generated mod_jk config. I recommend forwarding
/pebble/* to Tomcat.
>

No problem.. But.. you should have that included that info
the install..

  Based on my read of your install it appears to be assuming
that Pebble 
is expecting the "auto-generation" of mod-jk
based on your web.xml

Since you want it to be manual, I would guess you should
suggest that 
the installer create a conf file with..

#################### YOUR_DOMAIN:/pebble ##################

<VirtualHost YOUR_DOMAIN_OR_MACHINE_IP
     ServerName YOUR_DOMAIN_HERE

     # Static files
     Alias /pebble "DOMAIN_DIRECTORY/pebble"

     <Directory "DOMAIN_DIRECTORY/pebble">
         Options Indexes FollowSymLinks
         DirectoryIndex index.jsp index.html
     </Directory>


     # Deny direct access to WEB-INF and META-INF
     #
     <Location "/pebble/WEB-INF/*">
         AllowOverride None
         deny from all
     </Location>

     <Location "/pebble/META-INF/*">
         AllowOverride None
         deny from all
     </Location>

     JkMount /pebble/*  ajp13

</VirtualHost>
#################################################

and then add the include..

include /usr/local/tomcat/conf/pebble.conf

into the Apache httpd.conf file..


>     2) In the encode-password.sh the following
classpath is missing..
> 
>     $PEBBLE_HOME/WEB-INF/lib/spring- 1.2.6.jar
> 
>     ..and should be added..
> 
> 
> 
> I still don't understand why this is needed, since it
works locally for 
> me on both WinXP and Mac OS X. What OS and JVM are you
using?


As noted in my first email of this thread...

OS: CentOS 4.3 (Independent community version of RedHat
Enterprise 4.3)
Apache - Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7a
mod_jk/1.2.15
Tomcat - apache-tomcat-5512tar.gz
JDK - jdk-1_5_0_05-linux-i586.bin


My guess is that you ran encode-password.sh such that the
lib directory 
was "on the system classpath".. possible same
directory..???

In my case encode-password.sh was at

/usr/local/installs/pebble-2.0.0-RC1/bin

and the website is at

/usr/local/tomcat/webapps/esonicspider/blog/pebble

therefore the error

Exception in thread "main"
java.lang.ClassNotFoundException: 
org.springframework.dao.DataAccessException not found in 
[file:/usr/local/tomcat/webapps/esonicspider/blog/pebble/WEB
-INF/lib/pebble-2.0.0-RC1.jar, 
file:/usr/local/tomcat/webapps/esonicspider/blog/pebble/WEB-
INF/lib/commons-logging.jar, 
file:/usr/local/tomcat/webapps/esonicspider/blog/pebble/WEB-
INF/lib/acegi-security-1.0.1.jar, 
file:/usr/local/tomcat/webapps/esonicspider/blog/pebble/WEB-
INF/lib/commons-codec-1.3.jar, 
file:/usr/share/java/libgcj-3.4.5.jar, file:./, core:/]

tells me that

$PEBBLE_HOME/WEB-INF/lib/spring- 1.2.6.jar

needs to be added because the class 
org.springframework.dao.DataAccessException

is found in the spring jar which is not on the path or the
local 
directory.. but in the same place as the other listed jars
in the 
encode-password.sh file.

I never have a system classpath.. IMO it can cause
"mysterious" problems 
with different java apps..


John...










------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user

The requested URL /pebble/j_acegi_security_check was not found on this server.
user name
2006-08-19 06:39:46
On 8/19/06, John B. Moore <jbmesonicspider.com> wrote:
> Simon Brown wrote:
>
> No problem.. But.. you should have that included that
info the install..
>
>   Based on my read of your install it appears to be
assuming that Pebble
> is expecting the "auto-generation" of
mod-jk based on your web.xml

I don't actually mention anything about Apache at the
moment, but I'll
add what you have into the docs. Thanks.

> Since you want it to be manual, I would guess you
should suggest that
> the installer create a conf file with..
>

> >     2) In the encode-password.sh the following
classpath is missing..
> >
> >     $PEBBLE_HOME/WEB-INF/lib/spring- 1.2.6.jar
> >
> >     ..and should be added..
>
> My guess is that you ran encode-password.sh such that
the lib directory
> was "on the system classpath".. possible
same directory..???

I'll add the Spring JAR to the script, but I still don't
understand
why nobody else has reported this before. Here's a dump on
my terminal
window, just to show that I'm not using a system classpath!
 It
uses RC2, but I've just downloaded RC1 and tried that too,
with the
same results.

Last login: Sat Aug 19 07:18:12 on ttyp2
Welcome to Darwin!
imac:~ simon$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode,
sharing)
imac:~ simon$ set CLASSPATH=
imac:~ simon$ echo $CLASSPATH

imac:~ simon$ cd svn/pebble/trunk
imac:~/svn/pebble/trunk simon$ cat bin/encode-password.sh
# Utility to encode a password using a specific algorithm,
using the
username as the salt.
# Usage : [md5|sha|plaintext] username password
#
# Set PEBBLE_HOME to the location of your exploded web
application root
export PEBBLE_HOME=web

export
LOCAL_CLASSPATH=$PEBBLE_HOME/WEB-INF/lib/pebble-2.0.0-RC2.ja
r:$PEBBLE_HOME/WEB-INF/lib/commons-logging-1.0.4.jar:$PEBBLE
_HOME/WEB-INF/lib/acegi-security-1.0.1.jar:$PEBBLE_HOME/WEB-
INF/lib/commons-codec-1.3.jar

java -classpath $LOCAL_CLASSPATH
net.sourceforge.pebble.util.SecurityUtils $1 $2 $3
imac:~/svn/pebble/trunk simon$ bin/encode-password.sh sha
username password
1d26806da123dd76cdc52fc3daa9ad6777522935
imac:~/svn/pebble/trunk simon$

I've even run this with the -verbose:class flag and
DataAccessException is never loaded. Something specific to
your JVM/OS
combination perhaps?

Cheers
Simon

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user

The requested URL /pebble/j_acegi_security_check was not found on this server.
user name
2006-08-19 18:08:27
Simon Brown wrote:
th".. possible same directory..???
 >
 > I'll add the Spring JAR to the script, but I still
don't understand
 > why nobody else has reported this before. Here's a
dump on my terminal
 > window, just to show that I'm not using a system
classpath!  It
 > uses RC2, but I've just downloaded RC1 and tried that
too, with the
 > same results.

So when will RC2 be ready...<G>

 >
 > I've even run this with the -verbose:class flag and
 > DataAccessException is never loaded. Something
specific to your JVM/OS
 > combination perhaps?

Mysterious I know..   I had assume that others would have
stumbled over 
the problem before me so I was surprised as you..

Later..

John..


------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )