How was the precompiled mod_webapp.so binary built for Solaris 8
How was the precompiled binary of mod_webapp available from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/solaris8/sparc/ built? I'm trying to build it with the Sun C compiler (Forte 6.2) as follows: ./configure CFLAGS=-mr -Qn -xstrconst -xO2 -xtarget=generic -xarch=v8 \ CC=cc JAVA_HOME=/opt/java1.4 --with-apxs=[blah] --with-perl=[blah] \ --disable-docs --disable-apidoc-java --disable-apidoc-c \ --with-java=[tomcat dir] --with-ant=[path to ant] I followed the instructions at: http://archive.covalent.net/jakarta/tomcat-user/2002/03/0209.xml to fetch webapp and apr but get an error when trying to connect: $ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /examples/ HTTP/1.0 Connection closed by foreign host. Using the precompiled binary above works fine! -- albert chin ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat binding to multiple IP addresses
Hi Everyone, My original installation of Tomcat was installed on a computer with multiple IP addresses. Now my problem is that Tomcat tries to bind itself with all the IP addresses when I try starting it up. How do I change it so that it only binds to 1 IP address. I've already tried changing this in the server.xml file. My environment: Windows 2000 SP2 TOmcat 4.0.3 Any help on resolving this matter, would be greatly appreciated!!! Thank you Here is the error message I receive when starting up Tomcat from a DOS prompt: Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne ctor.java:1130) I know this is the issue because when I tested installing Tomcat on a machine with a single IP address and then adding more IP addresses to it, it would only bind itself to 1 IP address. Here is what my log file shows. - 2002-06-16 00:12:29 HttpConnector Opening server socket on all host IP addresses __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
TOMCAT is not loading my classes now =p
TOMCAT is not loading my classes =p I am placing my class files into my webapp directory: C:\Program Files\Apache Tomcat 4.0\webapps\twc\Web-inf\classes\myDomain\base Each of these class files has this package entry: package myDomain.base; I have been trying for DAYS to figure out where TOMCAT wants these files =p (I use to have them in common\classes before and THAT worked w/o the package line above of course...) all help much appreciated! Richard Diaz = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk and mod_jk2 HELP
At Saturday 6/15/02 11:25 PM, you wrote: Maybe I missed something basic, but I have not been sucessful [in] getting either of these two connectors working with Apache2. I started with Tomcat 4.0.3 and no luck, moved on to 4.04-b3 with more success and I downloaded 4.1.3 and have almost got it working (I think) I am working on Solaris 8 and 9 with jsdk 1.4.0. I downloaded the binary installation of tomcat and the source code for the connectors. I was able to build the mod_jk.so and mod_jk2.so from the source with a little modification (hardcoded the location of the log file, and remove reference to file.logger.win32, why it is a sparc machine?) Apache loads and does [not] give any error until I try running the examples. I get the handler jakarta-servlet not found error. Other than the Loadmodule line what else do I need in Apache's httpd.conf file? Mark, Let me quote from C. Aulds' book (Linux Apache web server administration), p. 134 : All [Apache] modules, even those that are statically linked into the Apache kernel, must be explicitily enabled with an AddModule directive. Only DSO modules [modules compiled as dynamic shared objects], however, require the LoadModule directive [as well] . . . . These two directives do not have to be located together. Aulds continues (p. 135): DSO modules are always processed in the reverse of the order in which they are loaded, so the first modules loaded are the last ones processed . . . . [S]ome modules must be processed in the correct order to avoid conflicts. When a module must be processed before another, make sure that its AddModule line is placed _after_ the other module in the httpd.conf file. (emphasis in original) Furthermore, according to what I have read in newsgroups, some modules (e.g., mod_java and mod_perl) did not play well together when either was compiled as a DSO, requiring that they both be compiled into Apache rather than being loaded (into memory) at run-time. --Paul B. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Cindy Ballreich wrote: At 06:53 AM 6/14/02 +0200, Nikola Milutinovic wrote: Yes, and it should work - but it doesn't. For most of us, DataSource is null and nothing apperas in the logs. Question: where is your JDBC driver currently located? I got the same result until I moved it from WEB_INF/lib/ to $CATALINA_HOME/common/lib/ I always keep it in $CATALINA_HOME/common/lib/ Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context I added doesn't load. Tomcat 4.0.3, Mac OS X, java 1.3.1, Apache
If you are getting a parse error in the web.xml, a good thing to do would be to get a decent xml editor and validate the web.xml against the dtd. It should be able to point you to exactly where the parse error is. Otherwise, if you want to post your web.xml to the list, or just send it to me, I can see if I can see where the problem lay. Jake At 09:45 PM 6/15/2002 -0400, you wrote: I checked the log file for /mine: 2002-06-15 21:36:23 StandardContext[/mine]: Error initializing naming context for context /mine 2002-06-15 21:36:50 WebappLoader[/mine]: Deploying class repositories to work directory /usr/local/jakarta-tomcat-4.0.3/work/localhost/mine 2002-06-15 21:36:50 WebappLoader[/mine]: Deploy JAR /WEB- INF/lib/datetime.jar to /usr/local/jakarta- tomcat-4.0.3/webapps/mine/WEB-INF/lib/datetime.jar 2002-06-15 21:36:50 WebappLoader[/mine]: Reloading checks are enabled for this Context 2002-06-15 21:36:50 StandardManager[/mine]: Seeding random number generator class java.security.SecureRandom 2002-06-15 21:36:50 StandardManager[/mine]: Seeding of random number generator has been completed 2002-06-15 21:36:53 ContextConfig[/mine] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type servlet is incomplete, it must match (icon?,servlet-name,display- name?,description?,(servlet-class|jsp-file),init-p$ at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError( XMLValidator.java:1851) --- /mine in server.xml: Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context Clearly there's something wrong..however I don't know what it means.. Michael On Saturday, June 15, 2002, at 06:28 PM, Jacob Kjome wrote: The servlet-name parameter inside servlet-mapping must match up *exactly* with the servlet-name inside the servlet element. So, try the follwing exactly as written: servlet servlet-nameHelloServlet/servlet-name servlet-classHi/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/Hi/url-pattern /servlet-mapping Jake At 01:39 PM 6/15/2002 -0400, you wrote: hi, I tried your suggestions and it still can't fine /mine ... I removed the space in the servlet name, and made sure the servlet mapping is called Hi, web.xml: You may define any number of servlet mappings, including zero. It is also legal to define more than one mapping for the same servlet, if you wish to. -- servlet-mapping servlet-nameHi/servlet-name url-pattern/Hi/url-pattern /servlet-mapping - The servlet name tag: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet give it a try: www.taoki.org:8080/mine/Hi -- Also, here's the context for /mine in server.xml: Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context !-- Tomcat Examples Context -- -- Sorry about this...I really want to develop webapps in Java!! Hmm maybe I should buy WebObjects ... hehe Michael On Friday, June 14, 2002, at 11:54 PM, Jacob Kjome wrote: You need to either provide a servlet mapping for your Hi servlet or access it like this: http://localhost:8080/mine/servlet/Hi Tomcat provides a default servlet mapping of /servlet/* in its web.xml in TOMCAT_HOME/conf Also, you probably want to keep your servlet-name values non-spaced. For instance, here is what you wrote: servlet servlet-nameInitial Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet You probably want to do soemthing like: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet Actually, you can also access your servlet by its servlet name like this: http://localhost:8080/mine/servlet/Initial_Servlet This efficacy of this is more apparent when your servlet is part of a package such as: org.mycompany.myproject.core.tests.servlet.Hi So, you would have: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet- classorg.mycompany.myproject.core.tests.servlet.Hi/servlet-class /servlet Which can be accesed via: http://localhost:8080/mine/servlet/org.mycompany.myproject.core.tests.servlet. Hi
Troubles with login-config with Embedded 4.1 ?
Hi, I've been running webapps fine in my software using the Embedded class in version 4.1. However, since I tried adding a login-config to my web.xml, I've been getting extremely strange behavior. Before continuing, I should add that I've tried my .war file with the same web.xml in a regular Tomcat install and it works fine. For example, if I try using BASIC auth-method, the browser never even shows the login window. Instead, I immediately get this error message in the log: HttpProcessor[8080][4] process.invokeInvalid user ID If I use FORM auth-method, the login works semi-ok, except that when the login is successful, the browser goes to an image file in one of the frames of my login page, rather than to the designated welcome-file. Also, entering the login page via the back button, and then pressing the submit button, causes an error saying that it cannot find the page j_security_check, which as we all know is not a page but the standard script name for using form logins in the servlet spec. Again, I've used this .war and web.xml in a standard Tomcat 4.1 install and all authentication worked fine. My embedded server does have access to a default web.xml. My app is in a .war file called admin.war. Finally, I should mention that I'm using my own custom Realm implementation, but I don't think this matters - all the problems seem to happen before the Realm's methods are invoked. Any help in this dept. is appreciated. Below, I'm posting my web.xml file. Thanks again for any help! -noah ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Admin Controller Servlet -- servlet servlet-nameController/servlet-name servlet-classcom.acme.admin.web.Controller/servlet-class /servlet !-- The mapping for the Admin Controller Servlet -- servlet-mapping servlet-nameController/servlet-name url-pattern*.ctrl/url-pattern /servlet-mapping !-- Session Timeout is 15 minutes -- session-config session-timeout15/session-timeout /session-config !-- Welcome file is main.html -- welcome-file-list welcome-filemain.html/welcome-file /welcome-file-list !-- LOGIN CONSTRAINTS -- security-constraint web-resource-collection web-resource-nameAdmin App/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-nameAdmin/role-name /auth-constraint /security-constraint !-- BASIC login -- login-config auth-methodBASIC/auth-method realm-nameAdmin App/realm-name /login-config !-- FORM login - commented out -- !-- login-config auth-methodFORM/auth-method form-login-config form-login-page/login.html/form-login-page form-error-page/loginfailed.html/form-error-page /form-login-config /login-config -- security-role role-nameAdmin/role-name /security-role /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]