Dear Bill,

> 
> I dont like the underscore prefixing either, particularly in 
> my development environment.
>
Not to mention the rate you go through diskspace on an average working day.
:-)

>
> At present, on my development wkstation, I manually replace 
> the ear file in
> orion/applications while the server is running. This triggers 
> auto-unpack
> and redeploy without underscore renaming.  Previously, I used 
> the -deploy option of the admin.jar utility which does result in 
> underscore renaming.
>
Hmmm. I found that -deploy works only for non-root websites when I rebind
the web context after -deploy. Root contexts require an Orion restart. This
is annoying for our case (four root websites, no non-root ones, Murphy at
work?).

>
> Slamming an ear into the running server like this does avoid renaming
> behavior, but I've found that it does not work on all our development
> wkstations, for reasons I have not nailed down.  In some 
> cases, auto-unpack
> fails with a diagnostic like 'zip file format error', when the file is
> flawless.  The work-around in that case is to stop the server 
> replace the ear file in orion/applications and then startup the server.
>
The .ear auto deployment is very sensitive to clock synchronisation issues.
NTP is your friend.

I have not seen that "zip file format error", but I imagine that may be due
to Orion starting to autodeploy the file before it is fully in place. Using
mv instead of cp may help, as long as you're on the same filesystem.

>
> I intend to put the work around into our ant deployment 
> script (let it stop
> and startup orion) but have not done so yet. I've used 
> admin.jar across the
> network ok, so given a shared file system, this klunky 
> approach should work
> as a remote deployment technique for enterprise apps that 
> does not result in underscore renaming.
>
I'll probably just stick with FTP instead. These are techs, they should know
FTP.

Thanks for the tips. I'll hack at amdin.jar a little more later today.

    Kees Jan

================================================
 You are only young once,
       but you can stay immature all your life.

Reply via email to