[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Java app + webapp packaging Qs



[Cc'ing to debian-java@lists.debian.org as mentioned by the original author
at the end of the mail, thanks to everyone who can help solving questions
from Luboš]

On 5/20/07, Ľuboš Koščo <tarzanek@gmail.com> wrote:
Hi Arnaud,

Hi Ľuboš,

I'd like to get opengrok (
http://www.opensolaris.org/os/project/opengrok/ ) into
Debian, but I am struggling a little bit.
Can you help me with some of my Qs ?

The best thing is 1st to file an ITP (intent to package) against
package wnpp (work needed and prospective packages): see some examples
here: http://bugs.debian.org/wnpp

Also, you'd better ask the list <debian-java@lists.debian.org> see
http://lists.debian.org/debian-java to subscribe.

[...]

- I have no clue what ant version/package and java version/package to target
it against (hence create dependencies) , should I go ONLY for what's written
in it's build docs, shouldn't I be complaint with the rest of JDKs? Also
since it's a webapp it hugely depends if I target against
glassfish/tomcat/other containers & THEIR java version.

To build (build-dep-indep) on ant and ant-optional if needed, about
the jdk, the best choice would be java-gcj-compat-dev if you can build
with free jdk; if you can't, the other best choice is the latest jdk.

To run, you'll have to depend on the particular container: tomcat5.5
at the moment is the best choice. Well, if you want to package JonAS,
JBoss or Glassfish, you are welcome ;-)

- I don't know what to do with some libraries. Some of them can be found in
/usr/share/java , but majority NOT. If I decide to bundle my own libraries I
will face the classpath problem (is there a precedence for standard
classpaths, or what to use as classpaths? Can you point me to it? ), so I
will have hardcoded paths to e.g. /usr/share/java/opengrok , which is not
the best way, but ...

The Debian way is to package *every* libs! Is it a webapp or a command
line, standalone application? in the latest, you just create a bash
script and set the classpath; in the first case, you'll have to link
libs from /usr/share/java to /usr/share/yourwebapp/WEB-INF/lib/

I'm not sure if it's a standard way of doing it so maybe a question on
the list is a good alternative to my answer ;-)

- third one is a Q on how to integrate with existing webapp containers.
Opengrok webapps are very dependent on configuration and one needs to
generate metadata before you can use the webapp. So the deployment needs Qs
to be answered, config to be generated and maybe security settings ( e.g.
for newer tomcat) for directory access. So I was thinking whether should I
split webapp from original application and create a separate self
configurable package for it ... Any hints or advices are welcome! ;)

About the configuration, you could use "debconf" but I don't know how
it works, I've never used it at the moment. Also, you can explain to
the admin how to set-up the webapp in a README.Debian file. The webapp
is targeted to admins that are able to configure web servers.

 I didn't cc pkg-java-maintainers , if you think answers to my questions are
not obvious cc it with your answer pls. IF on the other hand I really missed
something, please point me to info, or explain me how to solve problems I am
having ;)

Discussions are better to take place on debian-java@lists.debian.org,
not on pkg-java which is the central point for bug reports and
"maintainer" address of the packages.

Cheers,

--
Arnaud Vandyck

Reply to: