[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Sun Cobalt Developer Kit and MySQL on Raq3



Hello,

I put some my jar's include mysql jar to /usr/java/lib and add it to
tomcat.policy.master:
grant codeBase "file:/usr/java/lib/-" {
        permission java.security.AllPermission;
};
and add this to /etc/profile.d/tomcat.sh:
CLASSPATH=$CLASSPATH:/usr/java/lib/mm.mysql-2.0.4-bin.jar:...(another
jar's)......
All is working. Hope it may help to you.
Regards,
Alex

>
> Hello Developers,
>
> I installed the Sun Cobalt Developer Kit on a Raq 3. It serves up
> pages fine but I
> am having trouble connecting to the mysql db I have on the
> machine. I keep running
> into the following error:
>
> SQLException: Cannot connect to MySQL server on localhost:3306.
> Is there a MySQL
> server running on the machine/port you are trying to connect to?
> (java.security.AccessControlException)
>
> I am able to access the db fine from a command line Java program.
> I am assuming the
> Java security sandbox under Tomcat is trying to protect my
> server. I have tried
> adding various CodeBase permissions to the tomcat.policy.custom
> file. I usually end
> up having to reboot the server. I thought about opening up the
> permissions to
> everything but I figure I would eventually regret it. Has anybody
> gotten this to
> work? If so could you please give me some hints or a snippet?
>
> Thanks for any help,
> Don Atkins
> datkins23@xxxxxxxxx
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
>