Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Jboss + servletbridge + equinox + jsp samples
Jboss + servletbridge + equinox + jsp samples [message #125126] Sun, 25 January 2009 23:43 Go to next message
Scott Hamilton is currently offline Scott HamiltonFriend
Messages: 3
Registered: July 2009
Junior Member
Hello,

Really new to osgi/equinox, and trying to get a prototype web application
working on jboss 4.2.1.

I'm trying to get the jsp sample project working against jboss 4.2.1 using
the servletbridge. After piecing together the dependencies (hopefully
correctly) one by one to get the bundle to start, I have finally achieved
the following, but have some problems still that are as yet still baffling
me:

1. Log4j throws an exception on startup that does not prevent bundle
starting.

At first, the problem was a class not found exception on the
org.apache.log4j.Category. I resolved this by creating a fragment to
attach to the org.apache.commons.logging bundle to import
org.apache.log4j. This cleared up that exception quite nicely. (I also
included the log4j bundle in the deployment.)

However, that just led me to the next problem: a ClassNotFoundException
looking for org.jboss.logging.appender.FileAppender.

This seems odd to me - why would log4j be looking for a jboss FileAppender
in the equinox platform? Since I am loading my own log4j bundle and none
of the jboss stuff is being exported using the extendedFrameworkExports
web.xml setting, shouldn't all of jboss's logging (classes + config) be
invisible to the osgi platform?

2. The JSPs show almost correctly but all scriptlet and JSP tag stuff
doesn't get processed at all. In other words, the sample JSPs (a) compile
and (b) render as HTML but anywhere there is something "JSP-ish" I just
get nothing. No errors on the console, and no output on in the HTML
stream.

What might I be missing here?

Really grateful for any help or direction!

Thanks,
Scott
Re: Jboss + servletbridge + equinox + jsp samples [message #125130 is a reply to message #125126] Mon, 26 January 2009 12:32 Go to previous message
Scott Hamilton is currently offline Scott HamiltonFriend
Messages: 3
Registered: July 2009
Junior Member
Quick follow-up. The issue of the ClassNotFoundException for the jboss
FileAppender still occurs, but the other issue - that of the JSP
tag/scriptlets not working - has been resolved, tho I'm still trying to
figure out exactly why or how.

In trying to solve another goal for the prototype, I inadvertently solved
the issue. It *might* be the order in which the various bundles are
starting up. In the approach where I saw it fail, I was manually adding
bundles one by one through the console until I had everything RESOLVED or
ACTIVE that was needed. In the scenario where this just works, I put
everything into the bridge.war's WEB-INF/eclipse/plugins folder and made
some of the bundles forced to start at load time. So the only difference
I can see is the load/start order of the bundles.

I want to be sure about this, however, so will try and recreate both
scenarios manually and see.

Any help on the 1st issue again, however, would be most welcome!

Thanks,
Scott
Previous Topic:Specifying initial repositories for an installed product
Next Topic:"The type org.slf4j.Logger cannot be resolved. It is indirectly referenced from
Goto Forum:
  


Current Time: Thu Apr 25 21:43:35 GMT 2024

Powered by FUDForum. Page generated in 0.02758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top