David Dyer wrote:
These look mighty familiar. If I remember right it's a value in the jetspeed context file (tomcat root>conf>catalina>localhost>yourportalname.xml). When we moved a jetspeed 2.1.3 installation from tomcat 5.5. something to 5.5.27 we got a very similar error on deployment/startup. The culprit ended up being the useContextClassLoader attribute of the Realm tag being set to "false" instead of "true".
The file contains
 <Realm className="org.apache.catalina.realm.JAASRealm"
        appName="Jetspeed"

userClassNames="org.apache.jetspeed.security.impl.UserImpl,org.apache.jetspeed.security.impl.TransientUser,org.apache.jetspeed.security.UserSubjectPrincipalImpl"
roleClassNames="org.apache.jetspeed.security.impl.RoleImpl,org.apache.jetspeed.security.impl.TransientRole"
        useContextClassLoader="true"
        debug="0"/>

where the class names (UserImpl etc) are the ones that Tomcat is complaining about. I have manually moved the jar files that maven downloaded to the tomcat lib directory, now Tomcat.... is starting normally, and jetexpress..... also :-) Maven is a cool tool but the problem with it is that it uses pom files that it downloads from elsewhere which may contain errors or version differences that you can't change.

Thanks for the help, I really appreciate :-)

dagdag
Christine



Although if you're using a 2.2.x jetspeed I think true is the default.

Hope this is useful and not leading you in the wrong direction,

David Dyer

Christine wrote:
David Dyer wrote:
For the UserImpl class, when are you seeing the error? On the build or when you try to start tomcat?
When starting tomcat, like so:

Aug 24, 2009 6:03:37 PM org.apache.catalina.realm.JAASRealm parseClassNames SEVERE: Class org.apache.jetspeed.security.impl.TransientUser not found! Class not added. Aug 24, 2009 6:03:37 PM org.apache.catalina.realm.JAASRealm parseClassNames SEVERE: Class org.apache.jetspeed.security.impl.TransientRole not found! Class not added.

I have added the jetspeed.security jar, now I get new errors. jarfinder can't help me find the jar I need for these classes. What's strange is that the first time I ran the maven script, everything worked fine. Just to see if the artifact that I added worked, I deleted the jars, and I haven't been able to get the system back to where I was. I must say that the dsl I'm on is really bad, causing checksum errors and failed downloads.

Christine

I remember seeing an error on both UserImpl and RoleImpl when we upgraded the tomcat container we were running Jetspeed under.

If your error is at startup, which version of Tomcat are you running?

David Dyer

Christine wrote:
Randy Watler wrote:
Christine,

Please try to delete the offending pom files in your local repo and try the build again.
yes, thanks, I did that, then it works. Maybe the pom files were created during a network glitch, our office dsl is not that reliable. Also, I found that the cause is the local poms, I first thought that a pom on some server was broken.

The next thing I find is that org.apache.jetspeed.security.impl.UserImpl is missing. I located the jar and installed it, now I'm trying to find the artifactid so I can add it to the pom.

Christine

I know, not exactly scientific...

Randy

Christine wrote:
Hi,
I am using the tutorial to get familiar with Jetspeed. I like what I see. However, maven complains about a number of dependencies, it says that the pom version is wrong:

[WARNING] POM for 'commons-io:commons-io:pom:1.4:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project commons-io:commons-io at /home/christine/JetspeedTraining/maven/repository/commons-io/commons-io/1.4/commons-io-1.4.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.5:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at /home/christine/JetspeedTraining/maven/repository/org/apache/maven/maven-artifact/2.0.5/maven-artifact-2.0.5.pom [WARNING] POM for 'org.apache.maven:maven-plugin-registry:pom:2.0.9:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-registry at /home/christine/JetspeedTraining/maven/repository/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.pom

I do have the right jar files, so I copied these to my maven repository and all's well. Is there anything I can change in the pom file to make it work properly?

dagdag
Christine



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org



------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.408 / Virus Database: 270.13.65/2323 - Release Date: 08/24/09 06:05:00



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org



------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.408 / Virus Database: 270.13.65/2323 - Release Date: 08/24/09 06:05:00



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org



--
dagdag is just a two-character rotation of byebye.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to