Skip to main content



      Home
Home » Archived » BIRT » Using request in setAppContext of jdbcbridge
Using request in setAppContext of jdbcbridge [message #179019] Thu, 20 July 2006 04:23
Eclipse UserFriend
Hello all,
I used the jdbcbridge (old subOdaJdbcBridge).
The appContext method have to be done, if i launch the report thru a webApp or thru eclipse.

My problem is that the launcher can be from another webapp (could also be an executable that launch IE).
So I have to take connection parameters into the parameters/attributes of the request.

So my jdbcbridge has into the method setAppContext :
Object req = ((HashMap)context).get(EngineConstants.APPCONTEXT_BIRT_VIEWE R_HTTPSERVET_REQUEST);
HttpServletRequest request = (HttpServletRequest)req;

The classpath of myjdbcbridge has an entry for an external servlet.jar.
If i add the plugin to platform/plugins of my webapp, it works fine.

But if i add this plugin to eclipse and run it, the class loader doen't know any servlet.jar.
Bingo ... ClassCastException : NoClassDefFoundError on the line that cast req to request.

So in the manifest of my plugin, I add an entry for a dependency with org.eclipse.tomcat
but i still need servlet.jar because org.eclipse.tomcat is restricted, so the execution fails in the same way.

In fact, if someone can told me how to know that i'm running into eclipse with the reportContext,
I wouldn't have the need to acces to HttpServletRequest ...

Thanks a lot for any suggestions !!!

Thibaud
Previous Topic:Problem with ODA-Plugin in Version 2.1
Next Topic:Round to 2nd decimal
Goto Forum:
  


Current Time: Wed Apr 30 14:44:14 EDT 2025

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

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

Back to the top