Problem with 1.3 and J2EE1.2.1

2001-06-27 Thread Eric Richardson

Hi,
A few days ago I installed on Debian 2.2 the j2sdk1.3 from the debian
file.

$ java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.3.0-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.0-FCS, mixed mode)

I also JAVA_HOME set.
$ echo $JAVA_HOME
/usr/lib/j2sdk1.3

I was previously running 1.2.2 tarball from Sun and had no problems.

Here is the error (typed from dialog box) when I tried to deploy some
working apps.

There was a deployment error. java.rmi.ServerException: RemoteException
occured in server thread; nested exception is: java.rmi.RemoteException:
Error processing ejb jar: access denied (java.io.FilePermission
/usr/lib/j2re1.3/lib/ext read)

>From deploytool window
...
Remote message: Deploying Ejbs
Remote message: Processing beans 
Remote message: Generating wrapper code for BankAccountEJB.
Remote message: Compiling wrapper code 

No hints in server window.

I tried messing with the jre java.policy.
# cat java.policy
grant {
  permission java.security.AllPermission;
};

No luck. The server.policy and client.policy for the J2EE both have
FilePermission for the ext dir.

Any help appreciated,
Eric


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Problem with 1.3 and J2EE1.2.1(solved)

2001-06-28 Thread Eric Richardson

Eric Richardson wrote:
> 
> Hi,
> A few days ago I installed on Debian 2.2 the j2sdk1.3 from the debian
> file.
> 
> $ java -version
> java version "1.3.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> Blackdown-1.3.0-FCS)
> Java HotSpot(TM) Client VM (build Blackdown-1.3.0-FCS, mixed mode)
> 
> I also JAVA_HOME set.
> $ echo $JAVA_HOME
> /usr/lib/j2sdk1.3
> 
> I was previously running 1.2.2 tarball from Sun and had no problems.
> 
> Here is the error (typed from dialog box) when I tried to deploy some
> working apps.
> 
> There was a deployment error. java.rmi.ServerException: RemoteException
> occured in server thread; nested exception is: java.rmi.RemoteException:
> Error processing ejb jar: access denied (java.io.FilePermission
> /usr/lib/j2re1.3/lib/ext read)
> 
> >From deploytool window
> ...
> Remote message: Deploying Ejbs
> Remote message: Processing beans 
> Remote message: Generating wrapper code for BankAccountEJB.
> Remote message: Compiling wrapper code 
> 
> No hints in server window.
> 
> I tried messing with the jre java.policy.
> # cat java.policy
> grant {
>   permission java.security.AllPermission;
> };
> 
> No luck. The server.policy and client.policy for the J2EE both have
> FilePermission for the ext dir.

I added to the grant section of the server.policy for the J2EE.

grant {

   ...
   permission java.security.FilePermission "<>", "read";
 };

I tried file:${java.home)/lib/ext/- and various other variations to
narrow it down with no luck.

> 
> Any help appreciated,
> Eric
>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Linux Java IDEs

2001-07-02 Thread Eric Richardson

Amol Kulkarni wrote:
> 
> Hi,
> I am also planning to move from vi to a java editor. Can any body
> suggest it . pls give the links.
> I need this for Red Hat linux 7.1

I think emacs or xemacs with JDE is a good solution. The trick is to
have classpath set for your project before starting up so the compile
with jde will work and also having the -d for the classes output dir
set. I set an env var named CLASSES_DIR and then just set -d
$CLASSES_DIR for the javac option. I also use ant for the build as well
but ant is too slow to build one class.

JDE
http://jde.sunsite.dk/

Hope this helps,
Eric


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]