Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] grouper-ws and tomcat5.5/java6

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] grouper-ws and tomcat5.5/java6


Chronological Thread 
  • From: Scott Koranda <>
  • To: "Cramton, James" <>,
  • Cc: Martin van Es <>
  • Subject: Re: [grouper-users] grouper-ws and tomcat5.5/java6
  • Date: Fri, 30 Jan 2009 09:28:45 -0600

> Last I heard, Grouper has only been tested against jdk 1.4 and 1.5. See
> if using jdk 1.5 makes a difference; that's what we're using at Brown.
>
>
> James Cramton
> Lead Programmer/Analyst
> Brown University
>
>

Hi,

I can add that we are successfully running Grouper 1.4 API,
UI, and WS on this platform:

[root@oregano
~]# cat /etc/issue
CentOS release 5.2 (Final)
Kernel \r on an \m

[root@oregano
~]# java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-Fedora-EPEL-5) Runtime Environment (build
1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
[root@oregano
~]# rpm -qa | grep tomcat
tomcat5-server-lib-5.5.23-0jpp.7.el5.x86_64
tomcat5-webapps-5.5.23-0jpp.7.el5.x86_64
tomcat5-jasper-5.5.23-0jpp.7.el5.x86_64
tomcat5-common-lib-5.5.23-0jpp.7.el5.x86_64
tomcat5-5.5.23-0jpp.7.el5.x86_64
tomcat5-servlet-2.4-api-5.5.23-0jpp.7.el5.x86_64
tomcat5-jsp-2.0-api-5.5.23-0jpp.7.el5.x86_64
tomcat5-admin-webapps-5.5.23-0jpp.7.el5.x86_64

The class HooksContext is definitely found in the grouper.jar
that Grouper WS is using:

[root@oregano
grouper-ws]# jar -tf WEB-INF/lib/grouper.jar | grep HooksContext
edu/internet2/middleware/grouper/hooks/beans/HooksContext$1.class
edu/internet2/middleware/grouper/hooks/beans/HooksContext.class
edu/internet2/middleware/grouper/hooks/beans/HooksContext.java

Not being a Java/Tomcat expert, here are my instructions for
how I deployed Grouper WS. These are probably not clever or a
best practice, but it worked:

* su - tomcat
* cd /opt/grouper
* wget
http://middleware.internet2.edu/dir/groups/grouper/grouper/1.4.0/grouper-ws-1.4.0.tar.gz
* tar -zxf grouper-ws-1.4.0.tar.gz
* ln -s grouper-ws-1.4.0 grouper-ws
* cd grouper-ws/grouper-ws
* ant dist
* Change to the directory
/opt/grouper/grouper-ws/grouper-ws/build/dist/grouper-ws/WEB-INF/classes and
do the following:
o copy the file
/opt/grouper/grouper/conf/grouper.hibernate.properties into the directory,
replacing the default. Do not symlink as it will not be followed by Tomcat.
o copy the file /opt/grouper/grouper/conf/grouper.properties into
the directory, replacing the default. Do not symlink as it will not be
followed by Tomcat.
o copy the file /opt/grouper/grouper/conf/sources.xml into the
directory, replacing the default. Do not symlink as it will not be followed
by Tomcat.
o Edit the file log4j.properties and replace ${grouper.home} with
/opt/grouper/grouper-ws/grouper-ws/build/dist/grouper-ws/WEB-INF/classes/.
* Change to the directory
/opt/grouper/grouper-ws/grouper-ws/build/dist/grouper-ws/WEB-INF/lib and do
the following:
o Delete the file mysql-connector-java-5.1.5-bin.jar.
o copy the file
/opt/grouper/grouper/lib/custom/mysql-connector-java-5.1.7-bin.jar into the
directory.
* Create the file /etc/tomcat5/Catalina/localhost/grouper-ws.xml with
contents

<Context path="/grouper-ws"
docBase="/opt/grouper/grouper-ws/grouper-ws/build/dist/grouper-ws"
debug="0" privileged="false" reloadable="false"
swallowOutput="true" />

* Edit the file /etc/httpd/conf.d/proxy_ajp.conf and add the line

ProxyPass /grouper-ws/ ajp://localhost:8009/grouper-ws/

* Edit the file /etc/tomcat5/tomcat-users.xml and add these two lines:

<role rolename="grouper_user"/>
<user username="GrouperSystem" password="XXXXXXXX"
roles="grouper_user"/>

* Restart both tomcat5 and Apache httpd.
* Test the Grouper WS by opening up your web browser and browsing to
https://FQDN/grouper-ws/services/GrouperService?wsdl.

When prompted for a login and password enter
GrouperSystem and the password you set above. You should
see the XML document that describes the Grouper WS
interface in WSDL (web services description language).

HTH,

Scott

>
>
>
> > -----Original Message-----
> > From: Martin van Es
> > [mailto:]
> > Sent: Friday, January 30, 2009 9:17 AM
> > To:
> >
> > Subject: Re: [grouper-users] grouper-ws and tomcat5.5/java6
> >
> > Hi Loris,
> >
> > I never played around with pre-1.4 Grouper installations, but pointed
> > the
> > grouper.jar.name parameter to the grouper-qs-1.4.0 version of the jar
> > file
> > nevertheless, but it doesn't help. And by the way: how would you
> > explain
> > grouper-ws working flawless under tomcat4.1 if I used the same .war
> > file?
> >
> > Thanks for your input anyway! grouper-ws build.properties is a little
> > step
> > closer to perfection now ;)
> >
> > Martin
> >
> > On Friday 30 January 2009 13:18:17 Dr. Loris Bennett wrote:
> > > Hello Martin,
> > >
> > > The class HooksContext should be in grouper.jar, so either that
> isn't
> > on
> > > your classpath or the build of the web service is referencing an
> pre-
> > 1.4
> > > version of grouper.jar which does not have support for hooks. Check
> > what
> > > grouper.folder in build.properties is pointing to.
> > >
> > > HTH
> > >
> > > Loris
> > >
> > > On Fri, 2009-01-30 at 12:44 +0100, Martin van Es wrote:
> > > > Hi,
> > > >
> > > > So far grouper and grouper-ui runs well, but now I stumble upon a
> > problem
> > > > in grouper-ws: in tomcat4.1 (java6) the generated war file deploys
> > and
> > > > runs succesfully, but in 5.5 (java6) it throws this error:
> > > >
> > > > HTTP Status 500 -
> > > > type Exception report
> > > >
> > > > message
> > > >
> > > > description The server encountered an internal error () that
> > prevented it
> > > > from fulfilling this request.
> > > >
> > > > exception
> > > > javax.servlet.ServletException: Filter execution threw an
> exception
> > > >
> > > > root cause
> > > > java.lang.NoClassDefFoundError: Could not initialize class
> > > > edu.internet2.middleware.grouper.hooks.beans.HooksContext
> > > > ????????
> > > >
> >
> edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(Grouper
> > Se
> > > >rviceJ2ee.java:534)
> > > >
> > > >
> > > > Any ideas?
> > > >
> > > > Regards,
> > > > Martin van Es



Archive powered by MHonArc 2.6.16.

Top of Page