Code Comments
Programming Forum and web based access to our favorite programming groups.Hello!!
I have this problem:
[perl][1] killed by natural death.
[perl][1] exiting with 0
[Tue Mar 18 13:22:34 2008] [notice] Apache/2.2.4 (Ubuntu) mod_perl/2.0.2 Perl/v5.8.8
configured -- resuming normal operations
[perl][1] validate done.
[perl][1] Starting load.
[perl][4] portable: ENV_VAR_PATH_SEP_CP for linux is ':'
[perl][4] portable: SUB_FIX_JAVA_PATH => /usr/local/share/perl/5.8.8/Inline/Jav
a/InlineJavaServer.jar for linux is default '/usr/local/share/perl/5.8.8/Inl
ine/Java/InlineJavaServer.jar'
[perl][2] classpath: /usr/local/share/perl/5.8.8/Inline/Java/InlineJavaServer.jar
[perl][1] starting JVM...
[perl][1] client/server mode
[perl][4] portable: GOT_ALARM for linux is 'define'
[perl][4] portable: J2SDK_BIN for linux is 'bin'
[perl][4] portable: EXE_EXTENSION for linux is ''
[perl][4] portable: SUB_FIX_CMD_QUOTES => "/usr/lib/jvm/java-1.5.0-sun-1.5.0.13
/bin/java" org.perl.inline.java.InlineJavaServer 5 localhost 7891 true fals
e false for linux is default '"/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/java
" org.perl.inline.java.InlineJavaServer 5 localhost 7891 true false false'
[perl][2] "/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/java" org.perl.inline.java.I
nlineJavaServer 5 localhost 7891 true false false
[perl][4] portable: DEV_NULL for linux is '/dev/null'
[perl][4] portable: GOT_ALARM for linux is 'define'
Exception in thread "main" java.lang.NoClassDefFoundError: org/perl/inline/j
ava/InlineJavaServer
I am using mod_perl2 , apache2 , inline::java 0.52, jdk 1.5.0 and ubuntu 7.1
0
I not using JNI while building with perl Makefile.PL.
Anyone know what's going wrong and how I can fix it?
In console I don't have problem. My .pm is:
package modulos::prueba;
use Exporter;
@ISA = "Exporter";
@EXPORT = qw(consultaPrueba);
use Inline( Java => <<'END',
class Pod_1 {
String data = "data" ;
static String sdata = "static data" ;
public Pod_1(){
}
public String get_data(){
return data ;
}
public static String get_static_data(){
return sdata ;
}
public void set_data(String d){
data = d ;
}
private void priv(){
}
}
END
DEBUG => 1,
SHARED_JVM => 1,
START_JVM => 1,
AUTOSTUDY => 1,
DIRECTORY => '/opt/rt3/share/html/clases',
);
sub consultaPrueba{
my $obj = modulos::prueba::Pod_1->new() ;
return $obj->get_data();
}
Post Follow-up to this messageWilliam,
Does the file /usr/local/share/perl/5.8.8/Inline/Java/InlineJavaServer.jar
exist?
If so, try unzipping it and see if it contains
org/perl/inline/java/InlineJavaServer.class
Patrick
On Tue, Mar 18, 2008 at 4:16 PM, William Giannino
<williamgiannino@gmail.com> wrote:
> Hello!!
>
> I have this problem:
>
> [perl][1] killed by natural death.
> [perl][1] exiting with 0
> [Tue Mar 18 13:22:34 2008] [notice] Apache/2.2.4 (Ubuntu) mod_perl/2.0.2=
Perl/v5.8.8 configured -- resuming normal operations
> [perl][1] validate done.
> [perl][1] Starting load.
> [perl][4] portable: ENV_VAR_PATH_SEP_CP for linux is ':'
> [perl][4] portable: SUB_FIX_JAVA_PATH =3D> /usr/local/share/perl/5.8.=
8/Inline/Java/InlineJavaServer.jar for linux is default '/usr/local/share/p=
erl/5.8.8/Inline/Java/InlineJavaServer.jar'
> [perl][2] classpath: /usr/local/share/perl/5.8.8/Inline/Java/InlineJava=
Server.jar
> [perl][1] starting JVM...
> [perl][1] client/server mode
> [perl][4] portable: GOT_ALARM for linux is 'define'
> [perl][4] portable: J2SDK_BIN for linux is 'bin'
> [perl][4] portable: EXE_EXTENSION for linux is ''
> [perl][4] portable: SUB_FIX_CMD_QUOTES =3D> "/usr/lib/jvm/java-1.5.0-=
sun-1.5.0.13/bin/java" org.perl.inline.java.InlineJavaServer 5 localhost 7=
891 true false false for linux is default '"/usr/lib/jvm/java-1.5.0-sun-1.5=
.0.13/bin/java" org.perl.inline.java.InlineJavaServer 5 localhost 7891 tru
=
e false false'
> [perl][2] "/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/bin/java" org.perl.inl=
ine.java.InlineJavaServer 5 localhost 7891 true false false
> [perl][4] portable: DEV_NULL for linux is '/dev/null'
> [perl][4] portable: GOT_ALARM for linux is 'define'
> Exception in thread "main" java.lang.NoClassDefFoundError: org/perl/inli=
ne/java/InlineJavaServer
>
> I am using mod_perl2 , apache2 , inline::java 0.52, jdk 1.5.0 and ubuntu=
7.10
> I not using JNI while building with perl Makefile.PL.
>
> Anyone know what's going wrong and how I can fix it?
>
> In console I don't have problem. My .pm is:
>
> package modulos::prueba;
>
> use Exporter;
>
> @ISA =3D "Exporter";
>
> @EXPORT =3D qw(consultaPrueba);
>
> use Inline( Java =3D> <<'END',
>
> class Pod_1 {
>
> String data =3D "data" ;
>
> static String sdata =3D "static data" ;
>
> public Pod_1(){
>
> }
>
> public String get_data(){
>
> return data ;
>
> }
>
> public static String get_static_data(){
>
> return sdata ;
>
> }
>
> public void set_data(String d){
>
> data =3D d ;
>
> }
>
> private void priv(){
>
> }
>
> }
>
> END
>
> DEBUG =3D> 1,
>
> SHARED_JVM =3D> 1,
>
> START_JVM =3D> 1,
>
> AUTOSTUDY =3D> 1,
>
> DIRECTORY =3D> '/opt/rt3/share/html/clases',
>
> );
>
> sub consultaPrueba{
>
> my $obj =3D modulos::prueba::Pod_1->new() ;
>
>
> return $obj->get_data();
>
> }
>
--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D
Patrick LeBoutillier
Laval, Qu=E9bec, Canada
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.