Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Running java inside Catalyst

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


sindharta_tanuwijaya at yahoo

Jun 21, 2008, 6:36 PM

Post #1 of 9 (816 views)
Permalink
Running java inside Catalyst

Hi,

Just curious, yesterday I was playing with Java inside Catalyst, and I put a code like:

system("java");

in one of my controllers, and when I accessed the URL, the whole computer: Fedora Core 8, froze and I had to restart. I am not sure whether it is an OS problem, since I later tried the same program on Windows XP with colinux(FC 7)/cygwin and the java ran as expected.

Anyone had a similar experience before ?

Sindharta




---------------------------------
GANBARE! NIPPON! Chance to win 50,000 Yahoo! Points!


lorn.br at gmail

Jun 22, 2008, 9:44 AM

Post #2 of 9 (775 views)
Permalink
Re: Running java inside Catalyst [In reply to]

system function it's a bad idea, if you really need to run Java inside Perl,
i did not try that inside Catalyst, you can check Inline::Java
http://search.cpan.org/~patl/Inline-Java-0.52/Java.pod
I think that will not a problem to use Inline::* inside Catalyst.

Good Luck, and tell us your results.

On Sat, Jun 21, 2008 at 10:36 PM, <sindharta_tanuwijaya [at] yahoo> wrote:

> Hi,
>
> Just curious, yesterday I was playing with Java inside Catalyst, and I put
> a code like:
>
> system("java");
>
> in one of my controllers, and when I accessed the URL, the whole computer:
> Fedora Core 8, froze and I had to restart. I am not sure whether it is an OS
> problem, since I later tried the same program on Windows XP with colinux(FC
> 7)/cygwin and the java ran as expected.
>
> Anyone had a similar experience before ?
>
> Sindharta
>
>
>
> ------------------------------
> GANBARE! NIPPON! Chance to win 50,000 Yahoo! Points!<http://pr.mail.yahoo.co.jp/ganbare-nippon/>
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>
>


--
--Lindolfo "Lorn" Rodrigues
www.slackwarezine.com.br
http://lornlab.org
http://sao-paulo.pm.org
use Catalyst;


jon at jrock

Jun 22, 2008, 1:58 PM

Post #3 of 9 (786 views)
Permalink
Re: Running java inside Catalyst [In reply to]

* On Sun, Jun 22 2008, Lindolfo \"Lorn\" Rodrigues wrote:
> system function it's a bad idea, if you really need to run Java inside Perl, i
> did not try that inside Catalyst, you can check Inline::Java http://
> search.cpan.org/~patl/Inline-Java-0.52/Java.pod
> I think that will not a problem to use Inline::* inside Catalyst.

You do know that Inline::Java uses system() to call java, right?

Regards,
Jonathan Rockway

--
print just => another => perl => hacker => if $,=$"

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


lorn.br at gmail

Jun 22, 2008, 2:33 PM

Post #4 of 9 (779 views)
Permalink
Re: Running java inside Catalyst [In reply to]

No, i didn't know, i looked at the source and it's true :(
at least Inline::Java it's better than a simple system("java ... ") ?


On Sun, Jun 22, 2008 at 5:58 PM, Jonathan Rockway <jon [at] jrock> wrote:

> * On Sun, Jun 22 2008, Lindolfo \"Lorn\" Rodrigues wrote:
> > system function it's a bad idea, if you really need to run Java inside
> Perl, i
> > did not try that inside Catalyst, you can check Inline::Java http://
> > search.cpan.org/~patl/Inline-Java-0.52/Java.pod<http://search.cpan.org/%7Epatl/Inline-Java-0.52/Java.pod>
> > I think that will not a problem to use Inline::* inside Catalyst.
>
> You do know that Inline::Java uses system() to call java, right?
>
> Regards,
> Jonathan Rockway
>
> --
> print just => another => perl => hacker => if $,=$"
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>



--
--Lindolfo "Lorn" Rodrigues
www.slackwarezine.com.br
http://lornlab.org
http://sao-paulo.pm.org
use Catalyst;


mark at zzo

Jun 22, 2008, 2:48 PM

Post #5 of 9 (778 views)
Permalink
Re: Running java inside Catalyst [In reply to]

You can use Java.pm & there are no system calls...
Mark

Lindolfo "Lorn" Rodrigues wrote:
> No, i didn't know, i looked at the source and it's true :(
> at least Inline::Java it's better than a simple system("java ... ") ?
>
>
> On Sun, Jun 22, 2008 at 5:58 PM, Jonathan Rockway <jon [at] jrock
> <mailto:jon [at] jrock>> wrote:
>
> * On Sun, Jun 22 2008, Lindolfo \"Lorn\" Rodrigues wrote:
> > system function it's a bad idea, if you really need to run Java
> inside Perl, i
> > did not try that inside Catalyst, you can check Inline::Java http://
> > search.cpan.org/~patl/Inline-Java-0.52/Java.pod
> <http://search.cpan.org/%7Epatl/Inline-Java-0.52/Java.pod>
> > I think that will not a problem to use Inline::* inside Catalyst.
>
> You do know that Inline::Java uses system() to call java, right?
>
> Regards,
> Jonathan Rockway
>
> --
> print just => another => perl => hacker => if $,=$"
>
> _______________________________________________
> List: Catalyst [at] lists <mailto:Catalyst [at] lists>
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
>
> --
> --Lindolfo "Lorn" Rodrigues
> www.slackwarezine.com.br <http://www.slackwarezine.com.br>
> http://lornlab.org
> http://sao-paulo.pm.org
> use Catalyst;
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


robertkrimen at gmail

Jun 22, 2008, 3:24 PM

Post #6 of 9 (783 views)
Permalink
Re: Running java inside Catalyst [In reply to]

On Sat, Jun 21, 2008 at 6:36 PM, <sindharta_tanuwijaya [at] yahoo> wrote:
> Hi,
>
> Just curious, yesterday I was playing with Java inside Catalyst, and I put a
> code like:
>
> system("java");
>
> in one of my controllers, and when I accessed the URL, the whole computer:
> Fedora Core 8, froze and I had to restart. I am not sure whether it is an OS
> problem, since I later tried the same program on Windows XP with colinux(FC
> 7)/cygwin and the java ran as expected.
>
> Anyone had a similar experience before ?

What engine were you running when this happened?

Rob

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


sindharta_tanuwijaya at yahoo

Jun 22, 2008, 7:44 PM

Post #7 of 9 (777 views)
Permalink
Re: Running java inside Catalyst [In reply to]

Hi,

Not sure which specific engine you asked, but I'll just put all of them.

---
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

Linux version 2.6.25.4-10.fc8 (mockbuild [at] xenbuilder2) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Thu May 22 23:34:09 EDT 2008

This is perl, v5.8.8 built for i386-linux-thread-multi

Catalyst 5.7014
---

Sindharta

Robert Krimen <robertkrimen [at] gmail> wrote: On Sat, Jun 21, 2008 at 6:36 PM, wrote:
> Hi,
>
> Just curious, yesterday I was playing with Java inside Catalyst, and I put a
> code like:
>
> system("java");
>
> in one of my controllers, and when I accessed the URL, the whole computer:
> Fedora Core 8, froze and I had to restart. I am not sure whether it is an OS
> problem, since I later tried the same program on Windows XP with colinux(FC
> 7)/cygwin and the java ran as expected.
>
> Anyone had a similar experience before ?

What engine were you running when this happened?

Rob

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/




---------------------------------
GANBARE! NIPPON! Chance to win 50,000 Yahoo! Points!


catalyst at fadetoblack

Jun 24, 2008, 1:14 AM

Post #8 of 9 (748 views)
Permalink
Re: Running java inside Catalyst [In reply to]

> Not sure which specific engine you asked, but I'll just put all of them.

He meant Catalyst engine... Catalyst::Engine::?????

Were you using the server script that comes with Catalyst? FastCGI?
mod_perl?

Carl


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


sindharta_tanuwijaya at yahoo

Jun 30, 2008, 7:08 PM

Post #9 of 9 (651 views)
Permalink
Re: Running java inside Catalyst [In reply to]

Hi,

I suppose that would be Catalyst 5.7014 ? I checked Engine.pm and there is no "VERSION" there.

I was using the server script that comes with Catalyst. Actually, I wanted to set up my app with Apache(FastCGI), but at that time I just would like to test if my app can call Java apps.

Sindharta

Carl Johnstone <catalyst [at] fadetoblack> wrote: > Not sure which specific engine you asked, but I'll just put all of them.

He meant Catalyst engine... Catalyst::Engine::?????

Were you using the server script that comes with Catalyst? FastCGI?
mod_perl?

Carl


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/




---------------------------------
Power up the Internet with Yahoo! Toolbar.

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.