g wong

Greenhorn
+ Follow
since Oct 12, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by g wong

anybody experienced that??
can anybody tell me which file should the hotfix22096 replace??
thx in advance
16 years ago
thx so much to you, william
should class file should i replace w/ the file you sent me?
here's the content in stderr:
Created catalinaLoader in: C:\Tomcat 4.1\server\lib
2003/12/8 下午 02:56:51 org.apache.commons.modeler.Registry loadRegistry
Loading registry information
2003/12/8 下午 02:56:51 org.apache.commons.modeler.Registry getRegistry
Creating new Registry instance
2003/12/8 下午 02:56:53 org.apache.commons.modeler.Registry getServer
Creating MBeanServer
2003/12/8 下午 02:56:59 org.apache.coyote.http11.Http11Protocol init
Initializing Coyote HTTP/1.1 on port 8088
2003/12/8 下午 02:57:01 org.apache.coyote.http11.Http11Protocol init
Initializing Coyote HTTP/1.1 on port 8443
16 years ago
thx so much, William
how do i get the file from you? i dunno if it's appropriate to leave my email here, but i really want it, rossiter_@hotmail.com
here's the content of the log:
2003-12-08 14:46:41 WebappLoader[/inventory]: Deploying class repositories to work directory C:\Tomcat 4.1\work\Standalone\localhost\inventory
2003-12-08 14:46:41 WebappLoader[/inventory]: Deploy class files /WEB-INF/classes to C:\Tomcat 4.1\webapps\inventory\WEB-INF\classes
2003-12-08 14:46:41 WebappLoader[/inventory]: Deploy JAR /WEB-INF/lib/rowset.jar to C:\Tomcat 4.1\webapps\inventory\WEB-INF\lib\rowset.jar
2003-12-08 14:46:44 ContextConfig[/inventory]: Added certificates -> request attribute Valve
2003-12-08 14:46:44 StandardManager[/inventory]: Seeding random number generator class java.security.SecureRandom
2003-12-08 14:46:44 StandardManager[/inventory]: Seeding of random number generator has been completed
2003-12-08 14:46:44 StandardWrapper[/inventory efault]: Loading container servlet default
2003-12-08 14:46:44 StandardWrapper[/inventory:invoker]: Loading container servlet invoker
2003-12-08 14:46:45 WebappLoader[/wroxrealms]: Deploying class repositories to work directory C:\Tomcat 4.1\work\Standalone\localhost\wroxrealms
2003-12-08 14:46:45 WebappLoader[/wroxrealms]: Deploy class files /WEB-INF/classes to C:\Tomcat 4.1\webapps\wroxrealms\WEB-INF\classes
2003-12-08 14:46:45 WebappLoader[/wroxrealms]: Reloading checks are enabled for this Context
2003-12-08 14:57:02 WebappLoader[/inventory]: Deploying class repositories to work directory C:\Tomcat 4.1\work\Standalone\localhost\inventory
2003-12-08 14:57:02 WebappLoader[/inventory]: Deploy class files /WEB-INF/classes to C:\Tomcat 4.1\webapps\inventory\WEB-INF\classes
2003-12-08 14:57:02 WebappLoader[/inventory]: Deploy JAR /WEB-INF/lib/rowset.jar to C:\Tomcat 4.1\webapps\inventory\WEB-INF\lib\rowset.jar
2003-12-08 14:57:04 ContextConfig[/inventory]: Added certificates -> request attribute Valve
2003-12-08 14:57:04 StandardManager[/inventory]: Seeding random number generator class java.security.SecureRandom
2003-12-08 14:57:04 StandardManager[/inventory]: Seeding of random number generator has been completed
2003-12-08 14:57:04 StandardWrapper[/inventory efault]: Loading container servlet default
2003-12-08 14:57:04 StandardWrapper[/inventory:invoker]: Loading container servlet invoker
2003-12-08 14:57:06 WebappLoader[/wroxrealms]: Deploying class repositories to work directory C:\Tomcat 4.1\work\Standalone\localhost\wroxrealms
2003-12-08 14:57:06 WebappLoader[/wroxrealms]: Deploy class files /WEB-INF/classes to C:\Tomcat 4.1\webapps\wroxrealms\WEB-INF\classes
2003-12-08 14:57:06 WebappLoader[/wroxrealms]: Reloading checks are enabled for this Context
i see there's anothr file called stderr, is it useful too??
16 years ago
i wonder where i can download hotfix for tomcat4.1.27 running on windows 2000
or my problems related to that hotfix?
this hotfix seems to describe the problem of reloading, but my situation is i cannot access the localhost:8080 even the tomcat is started
it keeps loading but nth shows...
pls, sombody help~
16 years ago
thx, Willian
i'm using j2sdk1.4.2
actually, the windows starts as usual. but tomcat in the services panel does not start. so i have to start it myself.
i know nothing about hotfix, pls tell me more about that
16 years ago
i'm running Tomcat4.1.27 & installed it as service
everything was fine, i could visit the index & all my webapp pages. but after i restart the tomcat server, i can't even visit the tomcat index page
the status msg of IE keeps displaying:
Opening page http://localhost:8080/...
it takes forever...
i'd tried start & stop thru the service console many times, & reboot windows as well
anyone, pls HELP
16 years ago
thx, Mike
but after i followed yr instruction, it throws
java.sql.SQLException: (JNDI) Unable to connect
at sun.jdbc.rowset.RowSetReaderImpl.connect(RowSetReaderImpl.java:222)
at sun.jdbc.rowset.RowSetReaderImpl.readData(RowSetReaderImpl.java:115)
at sun.jdbc.rowset.CachedRowSet.execute(CachedRowSet.java:712)
at sun.jdbc.rowset.CachedRowSet.execute(CachedRowSet.java:1185)
i think the original JNDI name of the data src might be correct
any idea?
16 years ago
thx, Mike
i followed yr instruction:
1) changed org.gjt.mm.mysql.Driver to com.mysql.jdbc.Driver
2) put rowset.jar in WEB-INF/lib or common/lib // i tried both
but it still throws:
java.lang.UnsupportedOperationException
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125)
any idea?
16 years ago
thx anyway~
i use JNDI to set the data src used to acquire connection, & for setting SQL command
string, as instructed by the book
here's the code i think that is used to connect the db:
try {
RowSet rs = new CachedRowSet();
rs.setDataSourceName("java:comp/env/jdbc/inventoryDB");
rs.setCommand("select * from item");
rs.execute();
req.setAttribute("rs", rs);

getServletContext().getRequestDispatcher("/List.jsp").
forward(req, res);
} catch(Exception ex) {
throw new ServletException(ex);
}
btw, i use CachedRowSet(sun.jdbc.rowset.CachedRowSet). does it matter??
16 years ago
i read the professional java servlet 2.3from wrox press & got stuck in ch.8
my configuration in server.xml:
<Context path="/inventory" docBase="inventory">
<Resource name="jdbc/inventoryDB" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/inventoryDB">
<parameter><name>username</name><value>root</value></parameter>
<parameter><name>password</name><value>******</value></parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>driverName</name>
<value>jdbc:mysql://localhost:3306/inventory</value>
</parameter>
</ResourceParams>
</Context>
but it complaint:
java.sql.SQLException: Cannot create JDBC driver of class 'org.gjt.mm.mysql.Driver' for connect URL 'null'
i tried replacing the driverName w/ url, but it throws:
java.lang.UnsupportedOperationException
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125)
what's the difference between 'driverName' & 'url'??
i'm using tomcat4.1.27, mysql 4.0.16
anybody experienced this before?
plz help
17 years ago