on 5/31/2000 9:12 AM, Sasan, Hement at [EMAIL PROTECTED] wrote:
> I have the user/ password in place, in MySQL database. I've one
> userid/password combination as turbine/turbine. I have also run the nicely
> written "DBTest" program (by Erik). It works fine (it connects using
> turbine/turbine). But when I try to connect from the login screen it gives
> me the following exception:
> ----------------------------------------------------------------------------
> ----------------------------
> Exception: java.lang.Error: Error in BasePeer.initTableSchema(Visitor):
> 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)
Oh...it looks like your JWS settings are not allowing you to communicate
outside of the JVM via sockets (because that is what the MM drivers are
trying to do and your error is stating that the connection isn't being
made). Notice the ACE exception. I suggest that you dump JWS and switch to
Tomcat/Apache. Your life will be much happier.
> One strange thing, I'm getting is: When I get the upper exception, and then
> if I retry to login with the same userid/password (without restarting the
> JavaWebServer2.0), I get the following exception:
>
> ----------------------------------------------------------------------------
> ----------------------------
> Exception: java.lang.NoClassDefFoundError:
> org/apache/turbine/om/user/peer/TurbineUserPeer
> at
Right, this is because some static fields were not able to initialize
properly because of the fact that the first stuff didn't work.
-jon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]