[Jpivot-users] Re: Using Jpivot as a library

No, war files can not be nested. You will have to extract the jpivot.war
(its zip format) and take out what you need.
- build your own web app
- add all jar files from JPivot WEB-INF/lib to your WEB-INF/lib
- copy the resources (images etc) from the directories wcf, jpivot,
WEB-INF/wcf and WEB-INF/jpivot
- merge the entries from JPivot deployment descriptor (web.xml) with the
ones of your webapp
- I have added jpivot-0.9-bin.zip to the sourceforge distribution which
contains the jpivot class files packed into a jar file. So you dont have to
copy all the class files from WEB-INF/classes, put the jpivot-0.9.jar to
WEB-INF/lib of your web app instead.
The intended use of JPivot is that you write your own jsp instead of using
the testpage.jsp. So JPivot is more a tag library than a complete
application.
Andreas
> I would like to use JPivot as a library within my own WAR
> file, rather than as a standalone web application. I would
> need to supply my own mondrian connect string, schema.xml,
> and set of queries; embed jpivot.war in my own jar file, but
> still be able to use images from it; and to be able supply my
> own version of mondrian.jar.
>
> I suspect that my WAR file would look something like this:
>
> joogle.war:
> WEB-INF/lib/jpivot.war
> WEB-INF/lib/mondrian.jar
> WEB-INF/queries/JoogleSchema.xml
> WEB-INF/queries/joogleQuery1.jsp
> WEB-INF/queries/joogleQuery2.jsp
> WEB-INF/web.xml
>
> Is such a configuration possible, or sensible? If so, could
> you add jpivot-demo.war in a similar format in future
> releases?
>
>

Thread view

No, war files can not be nested. You will have to extract the jpivot.war
(its zip format) and take out what you need.
- build your own web app
- add all jar files from JPivot WEB-INF/lib to your WEB-INF/lib
- copy the resources (images etc) from the directories wcf, jpivot,
WEB-INF/wcf and WEB-INF/jpivot
- merge the entries from JPivot deployment descriptor (web.xml) with the
ones of your webapp
- I have added jpivot-0.9-bin.zip to the sourceforge distribution which
contains the jpivot class files packed into a jar file. So you dont have to
copy all the class files from WEB-INF/classes, put the jpivot-0.9.jar to
WEB-INF/lib of your web app instead.
The intended use of JPivot is that you write your own jsp instead of using
the testpage.jsp. So JPivot is more a tag library than a complete
application.
Andreas
> I would like to use JPivot as a library within my own WAR
> file, rather than as a standalone web application. I would
> need to supply my own mondrian connect string, schema.xml,
> and set of queries; embed jpivot.war in my own jar file, but
> still be able to use images from it; and to be able supply my
> own version of mondrian.jar.
>
> I suspect that my WAR file would look something like this:
>
> joogle.war:
> WEB-INF/lib/jpivot.war
> WEB-INF/lib/mondrian.jar
> WEB-INF/queries/JoogleSchema.xml
> WEB-INF/queries/joogleQuery1.jsp
> WEB-INF/queries/joogleQuery2.jsp
> WEB-INF/web.xml
>
> Is such a configuration possible, or sensible? If so, could
> you add jpivot-demo.war in a similar format in future
> releases?
>
>

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

CountryState

JavaScript is required for this form.

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details