pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PL/Java problem.
7+ messages / 4 participants
[nested] [flat]

* PL/Java problem.
@ 2006-09-06 20:03 Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Scott Petersen @ 2006-09-06 20:03 UTC (permalink / raw)
  To: pgsql-jdbc

Greetings,

Before I start I must admit that I am a newbie to Java.  This means that 
this might actually be my problem and NOT a software issue, but I need help.

I am attempting to execute the "Hello World" demo from 
http://wiki.tada.se/wiki/display/pljava/User+Guide which is part of the 
user guide for the software.  In the process I created the following 
class, and compiled (JAR) with NO errors:

   package com.mycompany.helloworld;
   public HelloWorld {    public String helloWorld() {        return 
"Hello World";    }
   }

Next I ran psql  with the following result:

#psql -U mfgadmin mlp204
Password for user mfgadmin:
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

Warning: Console code page (437) differs from Windows code page (1252)
         8-bit characters may not work correctly. See psql reference
         page "Notes for Windows users" for details.

mlp204=# select sqlj.install_jar('file:///Java source/helloworld.jar', 
'hellowor
ld_jar', false);
 install_jar
-------------

(1 row)

mlp204=# select sqlj.set_classpath('public', 'helloworld_jar');
 set_classpath
---------------

(1 row)

mlp204=# CREATE OR REPLACE FUNCTION helloworld()
mlp204-#   RETURNS "varchar" AS
mlp204-#     'com.mycompany.helloworld.HelloWorld.helloWorld'
mlp204-#   LANGUAGE 'java' VOLATILE;
CREATE FUNCTION
mlp204=# select * from helloworld();
ERROR:  java.lang.ClassNotFoundException: 
com.mycompany.helloworld.HelloWorld
mlp204=#

Everything seems to be working fine except I receive a 
"ClassNotFoundException".  Any help in understanding what I did wrong 
would be appreciated.

Thanks Scott.






^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
@ 2006-09-07 10:26 ` Markus Schaber <schabi@logix-tt.com>
  2006-09-07 17:54   ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Markus Schaber @ 2006-09-07 10:26 UTC (permalink / raw)
  To: Scott Petersen <scottpetersen@softhome.net>; +Cc: pgsql-jdbc

Hi, Scott,

Scott Petersen wrote:

> I am attempting to execute the "Hello World" demo from
> http://wiki.tada.se/wiki/display/pljava/User+Guide which is part of the
> user guide for the software.

I think that you're asking the wrong list here, this list is for the
PostgreSQL JDBC drivers, and not for PLJava.

Currently, there's no pljava support list I know of, but maybe the
people at pljava-dev@gborg.postgresql.org can help you.

(I hope that the gborg servers are working again...)

Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
@ 2006-09-07 17:54   ` Guy Rouillier <guyr@masergy.com>
  2006-09-08 12:42     ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Guy Rouillier @ 2006-09-07 17:54 UTC (permalink / raw)
  To: pgsql-jdbc

Markus Schaber wrote:
> Currently, there's no pljava support list I know of, but maybe the
> people at pljava-dev@gborg.postgresql.org can help you. 

Just got an email from Thomas right now via that mailing list, so it
appears to still be active.

-- 
Guy Rouillier




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  2006-09-07 17:54   ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
@ 2006-09-08 12:42     ` Markus Schaber <schabi@logix-tt.com>
  2006-09-08 16:46       ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
  2006-09-18 17:35       ` Re: PL/Java problem. Thomas Hallgren <thomas@tada.se>
  0 siblings, 2 replies; 7+ messages in thread

From: Markus Schaber @ 2006-09-08 12:42 UTC (permalink / raw)
  To: Guy Rouillier <guyr@masergy.com>; +Cc: pgsql-jdbc

Hi, Guy,

Guy Rouillier wrote:
> Markus Schaber wrote:
>> Currently, there's no pljava support list I know of, but maybe the
>> people at pljava-dev@gborg.postgresql.org can help you. 
> 
> Just got an email from Thomas right now via that mailing list, so it
> appears to still be active.

Yes, it's active, albeit low traffic.

But it's a developer list, not an users / support list.

Markus


-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  2006-09-07 17:54   ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
  2006-09-08 12:42     ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
@ 2006-09-08 16:46       ` Guy Rouillier <guyr@masergy.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Guy Rouillier @ 2006-09-08 16:46 UTC (permalink / raw)
  To: pgsql-jdbc

Markus Schaber wrote:
> Hi, Guy,
> 
> Guy Rouillier wrote:
>> Markus Schaber wrote:
>>> Currently, there's no pljava support list I know of, but maybe the
>>> people at pljava-dev@gborg.postgresql.org can help you.

> But it's a developer list, not an users / support list.

Support questions are fielded there - Thomas is great about replying
quickly.  BTW, I'm looking into this issue, but work has gotten busy, so
I'm having trouble getting time to delve into it.  Thomas will know the
answer - undoubtedly a setup issue.  You'll get going much more quickly
by popping your question over there.

-- 
Guy Rouillier




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  2006-09-07 17:54   ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
  2006-09-08 12:42     ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
@ 2006-09-18 17:35       ` Thomas Hallgren <thomas@tada.se>
  2006-09-18 20:46         ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Thomas Hallgren @ 2006-09-18 17:35 UTC (permalink / raw)
  To: Markus Schaber <schabi@logix-tt.com>; +Cc: pgsql-jdbc

Markus Schaber wrote:
> Hi, Guy,
> 
> Guy Rouillier wrote:
>> Markus Schaber wrote:
>>> Currently, there's no pljava support list I know of, but maybe the
>>> people at pljava-dev@gborg.postgresql.org can help you. 
>> Just got an email from Thomas right now via that mailing list, so it
>> appears to still be active.
> 
> Yes, it's active, albeit low traffic.
> 
> But it's a developer list, not an users / support list.
> 
For what it's worth, the pljava-dev description on Gborg says "Mailing list for Pl/Java 
users and developers" but I confess that the name is somewhat suggestive and thus badly 
chosen. In any case, all questions, regardless of what relation you might have to the 
project, are very welcome on this list.

Kind Regards,
Thomas Hallgren




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: PL/Java problem.
  2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
  2006-09-07 10:26 ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  2006-09-07 17:54   ` Re: PL/Java problem. Guy Rouillier <guyr@masergy.com>
  2006-09-08 12:42     ` Re: PL/Java problem. Markus Schaber <schabi@logix-tt.com>
  2006-09-18 17:35       ` Re: PL/Java problem. Thomas Hallgren <thomas@tada.se>
@ 2006-09-18 20:46         ` Markus Schaber <schabi@logix-tt.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Markus Schaber @ 2006-09-18 20:46 UTC (permalink / raw)
  To: pgsql-jdbc

Hi, Thomas,

Thomas Hallgren wrote:

> For what it's worth, the pljava-dev description on Gborg says "Mailing
> list for Pl/Java users and developers" but I confess that the name is
> somewhat suggestive and thus badly chosen. In any case, all questions,
> regardless of what relation you might have to the project, are very
> welcome on this list.

Yes, you're right. Shame on me.

Sorry for the confusion.

Markus



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2006-09-18 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06 20:03 PL/Java problem. Scott Petersen <scottpetersen@softhome.net>
2006-09-07 10:26 ` Markus Schaber <schabi@logix-tt.com>
2006-09-07 17:54   ` Guy Rouillier <guyr@masergy.com>
2006-09-08 12:42     ` Markus Schaber <schabi@logix-tt.com>
2006-09-08 16:46       ` Guy Rouillier <guyr@masergy.com>
2006-09-18 17:35       ` Thomas Hallgren <thomas@tada.se>
2006-09-18 20:46         ` Markus Schaber <schabi@logix-tt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox