Re: An unknown error has occured (Please Help me)
Søren Berg Glasius <[email protected]> Tue, 14 Feb 2006 08:29:36 +0100
| Newsgroups | gmane.mail.jamm.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------020700030503040109040508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Hi Kishore,
here's what I wrote to a guy a short time ago:
I've just managed to set up jamm on my Fedora Core 4, but with SUN=20
jdk/jre 1.5 and Tomcat 5.0. I'm not running this in production yet, but=20
I hope I will.
I think your problem is, that gcj does not work with Jamm. A previous=20
post from Kieth T. Garner (the Jamm developer) states, that gjc has=20
previously been the problem (something about jndi not working I think).
Here's a snip from that mail:
--snip--snip--
You're in double uncharted territory for me with both gcj and tomcat5.=20
In the past, gcj has not worked, I'm willing to bet its the problem this=20
time as well. You could grab the JDK from Sun and use that, but it looks=20
like you might also have a natively compiled tomcat, which may not work=20
with it. So you could also grab the Tomcat from Jakarta/Apache.
I wish I had a better answer.
Keith
--snip--snip--
Using yum and http://www.jpackage.org/ you should be able to get it up=20
and running.
I started by removing tomcat and gcj and then I installed sun's jdk 1.5=20
(as explained on www.jpackage.org) and Tomcat 5 also from jpackage.org
Hope you'll succede.
Best regards,
S=F8ren
kishore kumar wrote:
> hi ,
>
> I am using the Fedora Core 4, the packages that i am using ar=
e ,
>
> tomcat5-5.0.30-5jpp_6fc
> jamm-0.9.6
> jdk-1.5.0_06-fcs
> openldap-2.2.23-5
>
>
> Jamm.properties file that i have built is given below,
> =20
> # The LDAP host. The default is localhost
> #
> #jamm.ldap.host =3D
>
> # The LDAP port. The default is 389
> #
> #jamm.ldap.port =3D
>
> # The search base.
> #
> jamm.ldap.search_base =3D o=3Dhosting,dc=3Dkarunya,dc=3Dnet
>
> # The DN of the "root" user
> #
> jamm.ldap.root_dn =3D cn=3DManager,dc=3Dkarunya,dc=3Dnet
>
> # The login of the "root" user. The default is root
> #
> #jamm.ldap.root_login =3D
>
> # The class used to generate random numbers. The default is
> # java.security.SecureRandom.
> #
> #jamm.random_class =3D java.util.Random
>
> # Should jamm use the Modify Password Extended Operation to set the
> # users's password? If true, it will. If false, jamm itself will
> # generate an SSHA hash and set the userPassword attribute to it.
> # The default is true
> #
> #jamm.password.exop =3D true
>
> # The directory on the server where the virtual accounts store their
> # data. Defaults to /home/vmail/domains
> #
> jamm.vmail.homedir =3D /home/vmail/domains
>
> The Base.ldif file that i have designed for my domain is ,
>
> [root@karunya openldap]# cat base.ldif
> dn: dc=3Dkarunya, dc=3Dnet
> objectClass: top
> objectClass: domain
> domainComponent: karunya
>
> dn: cn=3DManager, dc=3Dkarunya, dc=3Dnet
> objectClass: top
> objectClass: organizationalRole
> cn: Manager
>
> dn: o=3Dhosting, dc=3Dkarunya, dc=3Dnet
> objectClass: top
> objectClass: organization
> o: hosting
>
> dn: cn=3Ddovecot, dc=3Dkarunya, dc=3Dnet
> objectClass: top
> objectClass: organizationalPerson
> cn: dovecot
> sn: dovecot
>
>
> The slapd.conf file that i have set for the OpenLDAP
>
> [root@karunya openldap]# cat slapd.conf
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> include /etc/openldap/schema/core.schema
> include /etc/openldap/schema/cosine.schema
> include /etc/openldap/schema/inetorgperson.schema
> include /etc/openldap/schema/nis.schema
> include /etc/openldap/schema/jamm.schema
>
> password-hash {CRYPT}
>
> # Allow LDAPv2 client connections. This is NOT the default.
> #allow bind_v2
>
> # Do not enable referrals until AFTER you have a working directory
> # service AND an understanding of referrals.
> #referral ldap://root.openldap.org
>
> pidfile /var/run/slapd.pid
> argsfile /var/run/slapd.args
>
> # Load dynamic backend modules:
> # modulepath /usr/sbin/openldap
> # moduleload back_bdb.la
> # moduleload back_ldap.la
> # moduleload back_ldbm.la
> # moduleload back_passwd.la
> # moduleload back_shell.la
>
> # The next three lines allow use of TLS for encrypting connections usin=
g a
> # dummy test certificate which you can generate by changing to
> # /usr/share/ssl/certs, running "make slapd.pem", and fixing=20
> permissions on
> # slapd.pem so that the ldap user or group can read it. Your client=20
> software
> # may balk at self-signed certificates, however.
> # TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt
> # TLSCertificateFile /usr/share/ssl/certs/slapd.pem
> # TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem
>
> # Sample security restrictions
> # Require integrity protection (prevent hijacking)
> # Require 112-bit (3DES or better) encryption for updates
> # Require 63-bit encryption for simple bind
> # security ssf=3D1 update_ssf=3D112 simple_bind=3D64
>
> # Sample access control policy:
> # Root DSE: allow anyone to read it
> # Subschema (sub)entry DSE: allow anyone to read it
> # Other DSEs:
> # Allow self write access
> # Allow authenticated users read access
> # Allow anonymous users to authenticate
> # Directives needed to implement policy:
> # access to dn.base=3D"" by * read
> # access to dn.base=3D"cn=3DSubschema" by * read
> # access to *
> # by self write
> # by users read
> # by anonymous auth
> #
> # if no access controls are present, the default policy
> # allows anyone and everyone to read anything but restricts
> # updates to rootdn. (e.g., "access to * by * read")
> #
> # rootdn can always read and write EVERYTHING!
>
> #access to dn.base=3D"o=3Dhosting,dc=3Dkarunya,dc=3Dnet"
> # attr=3DuserPassword
> # by self write
> # by=20
> group/jammPostmaster/roleOccupant=3D"cn=3Dpostmaster,o=3Dhosting,dc=3Dk=
arunya,dc=3Dnet" =20
> write
> # by dn=3D"cn=3Ddovecot,dc=3Dkarunya,dc=3Dnet" read
> # by anonymous auth
> # by * none
> #access to dn.base=3D"o=3Dhosting,dc=3Dkarunya,dc=3Dnet"
> # by self write
> # by=20
> group/jammPostmaster/roleOccupant=3D"cn=3Dpostmaster,o=3Dhosting,dc=3Dk=
arunya,dc=3Dnet"=20
> write
> # by * read
> #access to *
> # by * read
> access to dn.regex=3D".*,jvd=3D([^,]+),o=3Dhosting,dc=3Dkarunya,dc=3Dne=
t"
> attr=3DuserPassword
> by self write
> by=20
> group/jammPostmaster/roleOccupant.expand=3D"cn=3Dpostmaster,jvd=3D$1,o=3D=
hosting,dc=3Dkarunya,dc=3Dnet"=20
> write
> by dn=3D"cn=3Ddovecot,dc=3Dkarunya,dc=3Dnet" read
> by anonymous auth
> by * none
>
> access to dn.regex=3D".*,jvd=3D([^,]+),o=3Dhosting,dc=3Dkarunya,dc=3Dne=
t"
> by self write
> by=20
> group/jammPostmaster/roleOccupant.expand=3D"cn=3Dpostmaster,jvd=3D$1,o=3D=
hosting,dc=3Dkarunya,dc=3Dnet"=20
> write
> by * read
>
> access to *
> by * read
> #######################################################################
> # ldbm and/or bdb database definitions
> #######################################################################
>
> database ldbm
> directory /var/lib/ldap
> suffix "dc=3Dkarunya,dc=3Dnet"
> rootdn "cn=3DManager,dc=3Dkarunya,dc=3Dnet"
> rootpw {SSHA}hNNS+PVwO+NjLy9sYkhi8fe2DsuwDOmz
> #database bdb
> #suffix "dc=3Dmy-domain,dc=3Dcom"
> #rootdn "cn=3DManager,dc=3Dmy-domain,dc=3Dcom"
> # Cleartext passwords, especially for the rootdn, should
> # be avoided. See slappasswd(8) and slapd.conf(5) for details.
> # Use of strong authentication encouraged.
> # rootpw secret
> # rootpw {crypt}ijFYNcSNctBYg
>
> # The database directory MUST exist prior to running slapd AND
> # should only be accessible by the slapd and slap tools.
> # Mode 700 recommended.
> #directory /var/lib/ldap
>
> # Indices to maintain for this database
> index objectClass eq,pres
> index ou,cn,mail,surname,givenname eq,pres,sub
> index uidNumber,gidNumber,loginShell eq,pres
> index uid,memberUid eq,pres,sub
> index nisMapName,nisMapEntry eq,pres,sub
>
> # Replicas of this database
> #replogfile /var/lib/ldap/openldap-master-replog
> #replica host=3Dldap-1.example.com:389 <http://ldap-1.example.com:389>=20
> starttls=3Dcritical
> # bindmethod=3Dsasl saslmech=3DGSSAPI
> # authcId=3Dhost/[email protected]=20
> <mailto:[email protected]>
>
> The ldap.conf file for the OpenLDAP Configuration is ,
>
> #
> # LDAP Defaults
> #
>
> # See ldap.conf(5) for details
> # This file should be world readable but not world writable.
>
> #BASE dc=3Dexample, dc=3Dcom
> #URI ldap://ldap.example.com ldap://ldap-master.example.com:666=20
> <http://master.example.com:666>
>
> #SIZELIMIT 12
> #TIMELIMIT 15
> #DEREF never
> HOST 127.0.0.1 <http://127.0.0.1>
> BASE dc=3Dkarunya,dc=3Dnet
>
>
>
> I am a new user to the JAMM, Just now i have configured=20
> the jamm package. The configuration details i have mentioned above. I=20
> am getting the Unknown error while trying to enter the "root" user &=20
> password is "welcome" that i have mentioned in the slapd.conf.
> But it is not entering into the jamm. while just comment the Global=20
> Exceptions "struts-config.xml" , it throws the exceptions are ,
>
>
> HTTP Status 500 -
>
> -----------------------------------------------------------------------=
-
>
> *type* Exception report
>
> *message*
>
> *description* _The server encountered an internal error () that=20
> prevented it from fulfilling this request._
>
> *exception*
>
> javax.servlet.ServletException
> org.apache.struts.action.RequestProcessor.processException(javax.servl=
et.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.=
lang.Exception, org.apache.struts.action.ActionForm
> , org.apache.struts.action.ActionMapping) (Unknown Source)
> org.apache.struts.action.RequestProcessor.processActionPerform(javax.s=
ervlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, o=
rg.apache.struts.action.Action
> , org.apache.struts.action.ActionForm, org.apache.struts.action.ActionM=
apping) (Unknown Source)
> org.apache.struts.action.RequestProcessor.process(javax.servlet.http.H=
ttpServletRequest, javax.servlet.http.HttpServletResponse
> ) (Unknown Source)
> org.apache.struts.action.ActionServlet.process(javax.servlet.http.Http=
ServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
> org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpS=
ervletRequest
> , javax.servlet.http.HttpServletResponse) (Unknown Source)
> javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletR=
equest, javax.servlet.http.HttpServletResponse) (/usr/lib/libservletapi5-
> 5.0.30.jar.so <http://5.0.30.jar.so>)
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, j=
avax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so <htt=
p://5.0.30.jar.so>)
> jamm.webapp.SetEncodingFilter.doFilter
> (javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.ser=
vlet.FilterChain) (Unknown Source)
> org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina=
.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext
> ) (/usr/lib/libcatalina-5.0.30.jar.so <http://5.0.30.jar.so>)
> org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Requ=
est, org.apache.coyote.Response) (/usr/lib/libcatalina-
> 5.0.30.jar.so <http://5.0.30.jar.so>)
> org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, =
java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so <http://ht=
tp11-5.0.30.jar.so>)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces=
sConnection
> (org.apache.tomcat.util.net.TcpConnection, java.lang.Object[]) (/usr/li=
b/libtomcat-http11-5.0.30.jar.so <http://http11-5.0.30.jar.so>)
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (=
/tmp/libtomcat-
> util-5.0.30.jar.sokvl2yc.so <http://util-5.0.30.jar.sokvl2yc.so>)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/=
libtomcat-util-5.0.30.jar.sokvl2yc.so
> <http://util-5.0.30.jar.sokvl2yc.so>)
> java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> =20
>
> *root cause*
>
> java.lang.NullPointerException
> org.apache.catalina.loader.WebappClassLoader.findResources(java.lang.S=
tring) (/usr/lib/libcatalina-5.0.30.jar.so <http://5.0.30.jar.so>)
> java.lang.ClassLoader.getResources
> (java.lang.String) (/usr/lib/libgcj.so.6.0.0)
> javax.naming.InitialContext.init(java.util.Hashtable) (/usr/lib/libgcj=
.so.6.0.0)
> javax.naming.InitialContext.InitialContext(boolean) (/usr/lib/libgcj.s=
o.6.0.0)
> javax.naming.directory.InitialDirContext.InitialDirContext
> (boolean) (/usr/lib/libgcj.so.6.0.0)
> javax.naming.ldap.InitialLdapContext.InitialLdapContext(java.util.Hash=
table, javax.naming.ldap.Control[]) (/usr/lib/libgcj.so.6.0.0)
> jamm.ldap.LdapFacade.bind() (Unknown Source)
>
> jamm.ldap.LdapFacade.simpleBind(java.lang.String, java.lang.String) (U=
nknown Source)
> jamm.backend.MailManager.getLdap() (Unknown Source)
> jamm.backend.MailManager.authenticate() (Unknown Source)
> jamm.webapp.LoginAction.execute
> (org.apache.struts.action.ActionMapping, org.apache.struts.action.Actio=
nForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServ=
letResponse) (Unknown Source)
> org.apache.struts.action.RequestProcessor.processActionPerform
> (javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletR=
esponse, org.apache.struts.action.Action, org.apache.struts.action.Action=
Form, org.apache.struts.action.ActionMapping) (Unknown Source)
> org.apache.struts.action.RequestProcessor.process
> (javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletR=
esponse) (Unknown Source)
> org.apache.struts.action.ActionServlet.process(javax.servlet.http.Http=
ServletRequest, javax.servlet.http.HttpServletResponse
> ) (Unknown Source)
> org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpS=
ervletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
> javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletR=
equest
> , javax.servlet.http.HttpServletResponse) (/usr/lib/libservletapi5-5.0.=
30.jar.so <http://5.0.30.jar.so>)
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, j=
avax.servlet.ServletResponse) (/usr/lib/libservletapi5-
> 5.0.30.jar.so <http://5.0.30.jar.so>)
> jamm.webapp.SetEncodingFilter.doFilter(javax.servlet.ServletRequest, j=
avax.servlet.ServletResponse, javax.servlet.FilterChain) (Unknown Source)
> org.apache.catalina.valves.ErrorReportValve.invoke
> (org.apache.catalina.Request, org.apache.catalina.Response, org.apache.=
catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so <http://5.0.30=
.jar.so>)
> org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Requ=
est
> , org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so <http=
://5.0.30.jar.so>)
> org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, =
java.io.OutputStream) (/usr/lib/libtomcat-
> http11-5.0.30.jar.so <http://http11-5.0.30.jar.so>)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces=
sConnection(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])=
(/usr/lib/libtomcat-
> http11-5.0.30.jar.so <http://http11-5.0.30.jar.so>)
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (=
/tmp/libtomcat-util-5.0.30.jar.sokvl2yc.so <http://util-5.0.30.jar.sokvl2=
yc.so>)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> () (/tmp/libtomcat-util-5.0.30.jar.sokvl2yc.so <http://util-5.0.30.jar.=
sokvl2yc.so>)
> java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
> =20
>
> *note* _The full stack trace of the root cause is available in the=20
> Apache Tomcat/5.0 logs._
>
> -----------------------------------------------------------------------=
-
>
> Please help me to Configure the JAMM package urgently.....Reply me as=20
> soon as possible....
>
> Regards
>
> Kishore Kumar
>
>
>
--------------020700030503040109040508
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Kishore,<br>
<br>
here's what I wrote to a guy a short time ago:<br>
<br>
I've just managed to set up jamm on my Fedora Core 4, but with SUN
jdk/jre 1.5 and Tomcat 5.0. I'm not running this in production yet, but
I hope I will.
<br>
I think your problem is, that gcj does not work with Jamm. A previous
post from Kieth T. Garner (the Jamm developer) states, that gjc has
previously been the problem (something about jndi not working I think).
<br>
Here's a snip from that mail:
<br>
--snip--snip--
<br>
You're in double uncharted territory for me with both gcj and tomcat5.
In the past, gcj has not worked, I'm willing to bet its the problem
this time as well. You could grab the JDK from Sun and use that, but it
looks like you might also have a natively compiled tomcat, which may
not work with it. So you could also grab the Tomcat from
Jakarta/Apache.
<br>
<br>
I wish I had a better answer.
<br>
Keith
<br>
--snip--snip--
<br>
<br>
Using yum and <a class="moz-txt-link-freetext"
href="http://www.jpackage.org/">http://www.jpackage.org/</a> you
should be able to get it up and running.
<br>
<br>
I started by removing tomcat and gcj and then I installed sun's jdk 1.5
(as explained on <a class="moz-txt-link-abbreviated"
href="http://www.jpackage.org">www.jpackage.org</a>) and Tomcat 5 also
from jpackage.org
<br>
<br>
Hope you'll succede.
<br>
<br>
Best regards,
<br>
Søren
<br>
<br>
<br>
<br>
kishore kumar wrote:
<blockquote
cite="[email protected]"
type="cite">hi ,<br>
<br>
I am using the Fedora Core 4, the packages that i am using
are ,<br>
<br>
tomcat5-5.0.30-5jpp_6fc<br>
jamm-0.9.6<br>
jdk-1.5.0_06-fcs<br>
openldap-2.2.23-5<br>
<br>
<br>
<span style="font-weight: bold;">Jamm.properties file that i have
built is given below,</span><br>
<br>
# The LDAP host. The default is localhost<br>
#<br>
#jamm.ldap.host =<br>
<br>
# The LDAP port. The default is 389<br>
#<br>
#jamm.ldap.port =<br>
<br>
# The search base.<br>
#<br>
jamm.ldap.search_base = o=hosting,dc=karunya,dc=net<br>
<br>
# The DN of the "root" user<br>
#<br>
jamm.ldap.root_dn = cn=Manager,dc=karunya,dc=net<br>
<br>
# The login of the "root" user. The default is root<br>
#<br>
#jamm.ldap.root_login =<br>
<br>
# The class used to generate random numbers. The default is<br>
# java.security.SecureRandom.<br>
#<br>
#jamm.random_class = java.util.Random<br>
<br>
# Should jamm use the Modify Password Extended Operation to set the<br>
# users's password? If true, it will. If false, jamm itself will<br>
# generate an SSHA hash and set the userPassword attribute to it.<br>
# The default is true<br>
#<br>
#jamm.password.exop = true<br>
<br>
# The directory on the server where the virtual accounts store their<br>
# data. Defaults to /home/vmail/domains<br>
#<br>
jamm.vmail.homedir = /home/vmail/domains<br>
<br>
<span style="font-weight: bold;">The Base.ldif file that i have
designed for my domain is , <br>
<br>
</span>[root@karunya openldap]# cat base.ldif<br>
dn: dc=karunya, dc=net<br>
objectClass: top<br>
objectClass: domain<br>
domainComponent: karunya<br>
<br>
dn: cn=Manager, dc=karunya, dc=net<br>
objectClass: top<br>
objectClass: organizationalRole<br>
cn: Manager<br>
<br>
dn: o=hosting, dc=karunya, dc=net<br>
objectClass: top<br>
objectClass: organization<br>
o: hosting<br>
<br>
dn: cn=dovecot, dc=karunya, dc=net<br>
objectClass: top<br>
objectClass: organizationalPerson<br>
cn: dovecot<br>
sn: dovecot<br>
<br>
<br>
The slapd.conf file that i have set for the OpenLDAP <br>
<br>
[root@karunya openldap]# cat slapd.conf<br>
#<br>
# See slapd.conf(5) for details on configuration options.<br>
# This file should NOT be world readable.<br>
#<br>
include /etc/openldap/schema/core.schema<br>
include /etc/openldap/schema/cosine.schema<br>
include /etc/openldap/schema/inetorgperson.schema<br>
include /etc/openldap/schema/nis.schema<br>
include /etc/openldap/schema/jamm.schema<br>
<br>
password-hash {CRYPT}<br>
<br>
# Allow LDAPv2 client connections. This is NOT the default.<br>
#allow bind_v2<br>
<br>
# Do not enable referrals until AFTER you have a working directory<br>
# service AND an understanding of referrals.<br>
#referral <a class="moz-txt-link-freetext" href="ldap://root.openldap.org">ldap://root.openldap.org</a><br>
<br>
pidfile /var/run/slapd.pid<br>
argsfile /var/run/slapd.args<br>
<br>
# Load dynamic backend modules:<br>
# modulepath /usr/sbin/openldap<br>
# moduleload back_bdb.la<br>
# moduleload back_ldap.la<br>
# moduleload back_ldbm.la<br>
# moduleload back_passwd.la<br>
# moduleload back_shell.la<br>
<br>
# The next three lines allow use of TLS for encrypting connections
using a<br>
# dummy test certificate which you can generate by changing to<br>
# /usr/share/ssl/certs, running "make slapd.pem", and fixing
permissions on<br>
# slapd.pem so that the ldap user or group can read it. Your client
software<br>
# may balk at self-signed certificates, however.<br>
# TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt<br>
# TLSCertificateFile /usr/share/ssl/certs/slapd.pem<br>
# TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem<br>
<br>
# Sample security restrictions<br>
# Require integrity protection (prevent hijacking)<br>
# Require 112-bit (3DES or better) encryption for updates<br>
# Require 63-bit encryption for simple bind<br>
# security ssf=1 update_ssf=112 simple_bind=64<br>
<br>
# Sample access control policy:<br>
# Root DSE: allow anyone to read it<br>
# Subschema (sub)entry DSE: allow anyone to read it<br>
# Other DSEs:<br>
# Allow self write access<br>
# Allow authenticated users read access<br>
# Allow anonymous users to authenticate<br>
# Directives needed to implement policy:<br>
# access to dn.base="" by * read<br>
# access to dn.base="cn=Subschema" by * read<br>
# access to *<br>
# by self write<br>
# by users read<br>
# by anonymous auth<br>
#<br>
# if no access controls are present, the default policy<br>
# allows anyone and everyone to read anything but restricts<br>
# updates to rootdn. (e.g., "access to * by * read")<br>
#<br>
# rootdn can always read and write EVERYTHING!<br>
<br>
#access to dn.base="o=hosting,dc=karunya,dc=net"<br>
# attr=userPassword<br>
# by self write<br>
# by
group/jammPostmaster/roleOccupant="cn=postmaster,o=hosting,dc=karunya,dc=net"
write<br>
# by dn="cn=dovecot,dc=karunya,dc=net" read<br>
# by anonymous auth<br>
# by * none<br>
#access to dn.base="o=hosting,dc=karunya,dc=net"<br>
# by self write<br>
# by
group/jammPostmaster/roleOccupant="cn=postmaster,o=hosting,dc=karunya,dc=net"
write<br>
# by * read<br>
#access to *<br>
# by * read<br>
access to dn.regex=".*,jvd=([^,]+),o=hosting,dc=karunya,dc=net"<br>
attr=userPassword<br>
by self write<br>
by
group/jammPostmaster/roleOccupant.expand="cn=postmaster,jvd=$1,o=hosting,dc=karunya,dc=net"
write<br>
by dn="cn=dovecot,dc=karunya,dc=net" read<br>
by anonymous auth<br>
by * none<br>
<br>
access to dn.regex=".*,jvd=([^,]+),o=hosting,dc=karunya,dc=net"<br>
by self write<br>
by
group/jammPostmaster/roleOccupant.expand="cn=postmaster,jvd=$1,o=hosting,dc=karunya,dc=net"
write<br>
by * read<br>
<br>
access to *<br>
by * read<br>
#######################################################################<br>
# ldbm and/or bdb database definitions<br>
#######################################################################<br>
<br>
database ldbm<br>
directory /var/lib/ldap<br>
suffix "dc=karunya,dc=net"<br>
rootdn "cn=Manager,dc=karunya,dc=net"<br>
rootpw {SSHA}hNNS+PVwO+NjLy9sYkhi8fe2DsuwDOmz<br>
#database bdb<br>
#suffix "dc=my-domain,dc=com"<br>
#rootdn "cn=Manager,dc=my-domain,dc=com"<br>
# Cleartext passwords, especially for the rootdn, should<br>
# be avoided. See slappasswd(8) and slapd.conf(5) for details.<br>
# Use of strong authentication encouraged.<br>
# rootpw secret<br>
# rootpw {crypt}ijFYNcSNctBYg<br>
<br>
# The database directory MUST exist prior to running slapd AND<br>
# should only be accessible by the slapd and slap tools.<br>
# Mode 700 recommended.<br>
#directory /var/lib/ldap<br>
<br>
# Indices to maintain for this database<br>
index
objectClass
eq,pres<br>
index ou,cn,mail,surname,givenname eq,pres,sub<br>
index uidNumber,gidNumber,loginShell eq,pres<br>
index
uid,memberUid
eq,pres,sub<br>
index nisMapName,nisMapEntry eq,pres,sub<br>
<br>
# Replicas of this database<br>
#replogfile /var/lib/ldap/openldap-master-replog<br>
#replica host=<a href="http://ldap-1.example.com:389">ldap-1.example.com:389</a>
starttls=critical<br>
# bindmethod=sasl saslmech=GSSAPI<br>
# authcId=host/ldap-<a href="mailto:[email protected]">[email protected]</a><br>
<span style="font-weight: bold;"><br>
The ldap.conf file for the OpenLDAP Configuration is ,<br>
<br>
</span>#<br>
# LDAP Defaults<br>
#<br>
<br>
# See ldap.conf(5) for details<br>
# This file should be world readable but not world writable.<br>
<br>
#BASE dc=example, dc=com<br>
#URI <a class="moz-txt-link-freetext" href="ldap://ldap.example.com">ldap://ldap.example.com</a> <a class="moz-txt-link-freetext" href="ldap://ldap">ldap://ldap</a>-<a
href="http://master.example.com:666">master.example.com:666</a><br>
<br>
#SIZELIMIT 12<br>
#TIMELIMIT 15<br>
#DEREF never<br>
HOST <a href="http://127.0.0.1">127.0.0.1</a><br>
BASE dc=karunya,dc=net<br>
<br>
<br>
<br>
I am
a new user to the JAMM, Just now i have configured the jamm package.
The configuration details i have mentioned above. I am getting the
Unknown error while trying to enter the "root" user & password is
"welcome" that i have mentioned in the slapd.conf.<br>
But it is not entering into the jamm. while just comment the Global
Exceptions "struts-config.xml" , it throws the exceptions are ,<br>
<br>
<h1>HTTP Status 500 - </h1>
<hr noshade="noshade" size="1">
<p><b>type</b> Exception report</p>
<p><b>message</b> </p>
<p><b>description</b> <u>The server encountered an internal error ()
that prevented it from fulfilling this request.</u></p>
<p><b>exception</b> </p>
<pre>javax.servlet.ServletException
org.apache.struts.action.RequestProcessor.processException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Exception, org.apache.struts.action.ActionForm
, org.apache.struts.action.ActionMapping) (Unknown Source)
org.apache.struts.action.RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action
, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping) (Unknown Source)
org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse
) (Unknown Source)
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse) (Unknown Source)
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libservletapi5-<a
href="http://5.0.30.jar.so">
5.0.30.jar.so</a>)
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-<a
href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
jamm.webapp.SetEncodingFilter.doFilter
(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) (Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext
) (/usr/lib/libcatalina-<a href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request, org.apache.coyote.Response) (/usr/lib/libcatalina-<a
href="http://5.0.30.jar.so">
5.0.30.jar.so</a>)
org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-<a
href="http://http11-5.0.30.jar.so">http11-5.0.30.jar.so</a>)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[]) (/usr/lib/libtomcat-<a
href="http://http11-5.0.30.jar.so">http11-5.0.30.jar.so</a>)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (/tmp/libtomcat-
<a href="http://util-5.0.30.jar.sokvl2yc.so">util-5.0.30.jar.sokvl2yc.so</a>)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/libtomcat-<a
href="http://util-5.0.30.jar.sokvl2yc.so">util-5.0.30.jar.sokvl2yc.so
</a>)
java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
</pre>
<p><b>root cause</b> </p>
<pre>java.lang.NullPointerException
org.apache.catalina.loader.WebappClassLoader.findResources(java.lang.String) (/usr/lib/libcatalina-<a
href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
java.lang.ClassLoader.getResources
(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
javax.naming.InitialContext.init(java.util.Hashtable) (/usr/lib/libgcj.so.6.0.0)
javax.naming.InitialContext.InitialContext(boolean) (/usr/lib/libgcj.so.6.0.0)
javax.naming.directory.InitialDirContext.InitialDirContext
(boolean) (/usr/lib/libgcj.so.6.0.0)
javax.naming.ldap.InitialLdapContext.InitialLdapContext(java.util.Hashtable, javax.naming.ldap.Control[]) (/usr/lib/libgcj.so.6.0.0)
jamm.ldap.LdapFacade.bind() (Unknown Source)
jamm.ldap.LdapFacade.simpleBind(java.lang.String, java.lang.String) (Unknown Source)
jamm.backend.MailManager.getLdap() (Unknown Source)
jamm.backend.MailManager.authenticate() (Unknown Source)
jamm.webapp.LoginAction.execute
(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
org.apache.struts.action.RequestProcessor.processActionPerform
(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping) (Unknown Source)
org.apache.struts.action.RequestProcessor.process
(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse
) (Unknown Source)
org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse) (/usr/lib/libservletapi5-<a
href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-
<a href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
jamm.webapp.SetEncodingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) (Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke
(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/libcatalina-<a
href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request
, org.apache.coyote.Response) (/usr/lib/libcatalina-<a
href="http://5.0.30.jar.so">5.0.30.jar.so</a>)
org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream) (/usr/lib/libtomcat-<a
href="http://http11-5.0.30.jar.so">
http11-5.0.30.jar.so</a>)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[]) (/usr/lib/libtomcat-<a
href="http://http11-5.0.30.jar.so">
http11-5.0.30.jar.so</a>)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[]) (/tmp/libtomcat-<a
href="http://util-5.0.30.jar.sokvl2yc.so">util-5.0.30.jar.sokvl2yc.so</a>)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
() (/tmp/libtomcat-<a href="http://util-5.0.30.jar.sokvl2yc.so">util-5.0.30.jar.sokvl2yc.so</a>)
java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
</pre>
<p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.0 logs.</u></p>
<hr noshade="noshade" size="1"><br>
Please help me to Configure the JAMM package urgently.....Reply me as
soon as possible....<br>
<br>
Regards<br>
<br>
Kishore Kumar<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>
--------------020700030503040109040508--
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642