Hello,
I am trying to run a servlet in JBuilder4 that connects to MySQL server with
JDBC. The data abstracted from the database is then output using Apache
Tomcat! However when i try to run the servlet I get this fatal error, any
ideas?
Starting tomcat install="C:/jakarta-tomcat" home="C:\jakarta-tomcat"
classPath="C:\WINNT\Profiles\atollin\jbproject\JDBCServletEx1\classes;C:\jak
arta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\servlet.jar;C:\jakarta-tomc
at\lib\xml.jar;C:\jakarta-tomcat\lib\webserver.jar;C:\mm.mysql.jdbc-1.2b\mys
ql_comp.jar;C:\mm.mysql.jdbc-1.2b\mysql_uncomp.jar;C:\mm.mysql.jdbc-1.2b;C:\
Jbuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\Jbuilder4\jdk1.3\jre\lib\i
18n.jar;C:\Jbuilder4\jdk1.3\jre\lib\jaws.jar;C:\Jbuilder4\jdk1.3\jre\lib\rt.
jar;C:\Jbuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\Jbuilder4\jdk1.3\lib\dt.ja
r;C:\Jbuilder4\jdk1.3\lib\tools.jar"
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.<init>(ServerSocket.java:170)
at java.net.ServerSocket.<init>(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
java:186)
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
42)
at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
----- Original Message -----
From: "Rohit Dhiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 4:28 PM
Subject: Instantiate a bean in a servlet
> Dear all,
>
> can anybody tell me how to instantiate a bean in a servlet.I have made
some
> java bean classes and i want to use the methods of these bean classes
inside
> my servlet which further connects to a database using JDBC.
>
>
> thanks
>
> Rohit
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html