Re: Runtime exec (again)

2004-12-02 Thread Edward Barrow
On Thursday 2 December 2004 09:12, andy wix wrote:
> Hi,
>
> Still can't get this to work.
>
> There must be some reason why this won't run under Tomcat but does work
> stand-alone.
> To recap, I am trying to execute the following code on an Xp box with
> Tomcat 5.0.27:
>
> Process proc = runtime.exec("cmd.exe /C shutdown -r -f -m \\myPC -t 50");
> int exitVal = proc.waitFor();
>
> When this runs the proc exits with a value of 0 but nothing happens (no
> re-boot) and no exceptions are thrown.

This is just an idea, it might be completely wrong, but it could be to do with 
StringTokeniser. Runtime.exec(String) uses StringTokeniser to parse the 
string into tokens, and you might find that it works better if you do it 
yourself and use Runtime.exec(String[])


-- 
Edward Barrow
Copyright Consultant (and amateur programmer)
[EMAIL PROTECTED]
***Important: see http://www.copyweb.co.uk/email.htm for important information 
about the legal status of this email

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: hide source of a page

2004-11-09 Thread Edward Barrow
On Tuesday 9 November 2004 07:36, Steven J. Owens wrote:
>  If anybody ever figures out a truly effective safeguard against
> this (which would be at least equivalent, in terms of mathematical
> creativity, to public/private key encryption), we'll see some really
> radical changes.

It's a special case of the generic strong-DRM problem, which I postulate is 
demonstrably insoluble if the (untrusted) end-user controls the code that 
runs on his machines. Rightsholder groups would like to outlaw machinery 
which affords end-users this freedom; the open-source movement protects it. 
In any case, a business model which requires that you distrust your customers 
is, in my view, fundamentally flawed.


-- 
Edward Barrow
Copyright Consultant
[EMAIL PROTECTED]
***Important: see http://www.copyweb.co.uk/email.htm for important information 
about the legal status of this email

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: Refresh Problem

2004-11-03 Thread Edward Barrow
On Wednesday 3 November 2004 18:29, [EMAIL PROTECTED] wrote:
> I am not using frames.
> they are coming from either no-ip.com or from My domain name provider
> http://www.oneandone.co.uk
>
> I wrote them an email, no-ip customer support replied me to buy their no-ip
> plus software...
>
> i dont want to buy software just for refresh problem .. instead i better
> buy a dedicated ONE -IP :)
>
> there must be a way to solve it.
>

if you are in the UK and on DSL there are a number of ISPs who provide static 
IP services without port blocking at no significant premium. But even if you 
are on a dynamic IP, with a DSL router it will only change when you reboot 
your router (and it often stays the same then). 

But the frames could also come from the web-forwarding method used by your ISP 
- you may be able to change it from their control page.


-- 
Edward Barrow

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk2 configuration

2004-10-18 Thread Edward Barrow
Thanks, John, but this isn't the problem - I already have that line, and 
anyway, it's not Apache that can't find workers2.properties but Tomcat: the 
message is reported during Tomcat startup, which takes place before Apache is 
started.

Edward

On Monday 18 October 2004 15:59, [EMAIL PROTECTED] wrote:
> Hello Edward,
>
> You need to add this link in your httpd.conf file:
>
> JkSet config.file /etc/httpd/conf/workers2.properties
>
> John
>
> > my system:
> > Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86
> >
> > my problem:
> > It doesn't work..
> >
> > probable cause:
> > In catalina.out, this message is reported at Tomcat startup:
> >
> > [jk_config_file.c (239)]  config.update(): Can't find config file
> > ${serverRoot}/conf/workers2.properties
> >
> > jk2.properties specifies:  serverRoot=/usr/lib/apache2
> >
> > /usr/lib/apache2/conf/workers2.properties exists & has appropriate
> > permissions.
> >
> > my question: why can't it find workers2.properties? Is there anywhere
> > else I
> > need to specify what ${serverRoot} is?
> >
> >
> > Edward Barrow
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Edward Barrow
Copyright Consultant
[EMAIL PROTECTED]
***Important: see http://www.copyweb.co.uk/email.htm for important information 
about the legal status of this email

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk2 configuration

2004-10-18 Thread Edward Barrow
my system:
Tomcat 5.0.27; Apache 2.0.51; mod_jk2/2.0.4; Gentoo Linux 2004.2/x86

my problem:
It doesn't work..

probable cause:
In catalina.out, this message is reported at Tomcat startup: 

[jk_config_file.c (239)]  config.update(): Can't find config file 
${serverRoot}/conf/workers2.properties

jk2.properties specifies:  serverRoot=/usr/lib/apache2

/usr/lib/apache2/conf/workers2.properties exists & has appropriate 
permissions.

my question: why can't it find workers2.properties? Is there anywhere else I 
need to specify what ${serverRoot} is?


Edward Barrow


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: using my own classes in my web-app

2004-09-07 Thread Edward Barrow
On Monday 6 September 2004 21:27, Peter Jarunek wrote:
> Hello,
>
> I'm new to Tomcat and need a help. I'd like to use my own classes in my
> JSPs, but I can not reach them from my JSPs. I added them (already compiled
> .class files) into WEB-INF/classes directory of my war file, but the JSP
> doesn't work. It shows the message of unknown class. How to use them?
>

did you import them?  put the package name in the import attribute of the 
jsps' page directive.
-- 
Edward Barrow 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]