JK Connector with IIS
We're are successfully using the JK connector between IIS 6.0 and Tomcat 5.0.28 to forward on requests. We starting to run into some configuration issues that I haven't seen any documentation for. I guess I don't truly know what is possible so I thought I would ask. Is there a way to configure the connector so that www.somewebsite.com can only redirect to a specific tomcat web application and have www.someotherwebsite.com only point to a different tomcat web application all together. It appears that once a web site on IIS is setup with the redirector filter it will pass through to what ever tomcat application is there. So, for example www.somewebsite.com/tomcatapp1 would pass on, but www.somewebsite.com/tomcatapp2 would not. Next, is it possible to setup the connector so www.somewebsite.com would go straight into an application. As an example, I could use www.somewebsite.com and not have to type in www.somewebsite.com/tomcatappcontext. Finally, IIS is where the SSL certificates are located. What I would like to do for some applications is force http traffic to https. In IIS I can shut down http access, but in some instances I don't want to do that and would like to redirect it into it. If I were to use a security-constraint and set the redirect to the secure port on IIS would it redirect to IIS or would it choke? Thanks for any help, Joe Plautz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Server Faces
Where I work we've been using JSF for a large project and it has been working well. Although, it can be a bit heavy on the session usage. The official Sun group can be found here. http://forum.java.sun.com/forum.jspa?forumID=427 Most of the reference implementation developers answer questions there and are usually very quick. Plus they will try their best to answer questions on all implementations. Sue Roe wrote: I don't know if this is the correct User Group. Has anyone done any development with Java Server Faces to create richer UI experiences? Is it any good? TIA Sue ***Disclaimer*** The contents of this Email may be privileged and are confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Should you wish to use Email as a mode of communication, CMi plc and its subsidiaries are unable to guarantee the security of Email content outside of our own computer systems. This footnote also confirms that this Email message has been checked by MIMESweeper for the presence of computer viruses. Whilst we run anti-virus software, you are solely responsible for ensuring that any Email or attachment you receive is virus free. We disclaim any liability for any damage you suffer as a consequence of receiving any virus. Checkmate International plc (CMi) Registered in England No: 1899857 Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: JSTL and JSF book recommendations
Starting out, I suggest the Core Servlets and JavaServer Pages by Marty Hall to gain an understanding of the Java EE web technologies. It's about as good of a book as I've seen on any technical subject matter, particularly for a beginner. I still reference it after several years. For JSF I have both the O'Reilly book and the Core JSF books. I wouldn't say one is particularly better than the other, but both need a working knowledge of underlying technologies to make total sense. I have the first editions of them both though, so they are a bit behind the game on the latest and I believe second editions on each are available. I also suggest going here http://forum.java.sun.com/forum.jspa?forumID=427 it's the official JSF forum, you'll get lots of information from it. David Boyer wrote: We're using Tomcat 5.5.9, and I'm looking for good books (or other resources) for learning JSTL and JSF. These will be for a person with a novice-level understanding of Java and Tomcat, so I'd like something that will take him from beginner to intermediate (or better). He'll be learning Java at the same time. Any suggestions you have are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection Pools
Hello, I'm running into an issue when using connection pools in a default context for all applications to share defined in the server.xml in 5.0.28. If for some reason the database needs to be restarted, the connection pool becomes invalid and tomcat needs to be restarted because every attempt afterward throws an error. Is there some way around having to restart tomcat? Some way to reset the pool? Thanks in advance, Joe Plautz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI DataSource configuration
I'm not sure about 5.5.x, but in 5.0.x and earlier it was put in META-INF. Joe [EMAIL PROTECTED] wrote: Hi! I am trying to connect my web-app running under tomcat 5.5.9 to connect to a postgresql database. I read the JNDI Datasource HOW-TO on http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-h owto.html. I would like to have an application-specific resource configuration, but the how-to says: Create a resource definition file for your application defining the datasource. This file must have the same name as your application, so if your application deploys as someApp.war, this filename must be someApp.xml.This file should look something like the following Context path=/someApp docBase=someApp crossContext=true reloadable=true debug=1 Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/mydb username=myuser password=mypasswd maxActive=20 maxIdle=10 maxWait=-1/ /Context My two questions: - I have a web-app called TestWebApp, so my file ist TestWebApp.xml, but where do I have to put it in? WEB-INF directory? - is the above example complete or do I have to put something more into it? I tried the shared resource configuration as it is described on the same page, and it worked very well, but then i have great problems to undeploy my web-app and to deploy it again, so i would like to use the application-specific resource configuration. Please help Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
Simple, test with IE as well. sudip shrestha wrote: I have a struts-hibernate powered webapp running off a debian box, jdk 1.5 and tomcat 5.5.7 I have IE users complaining about page not found problems from time to time where as Firefox users never. I myselft have never encountered this problem as I use FirefoxThis led me to thinking that this might be a IE problem...Any suggestions on how to move ahead on the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
Sorry for not including the smiley face but, dude, you're informing of a problem that exists within a browser that is used by the vast majority of web users and for some reason refused to test with it. Works on my box is not a valid excuse. Here's a link to a html validator, http://validator.w3.org/ Here's a link that explains a lot of the known issues, http://www.howtocreate.co.uk/wrongWithIE/ sudip shrestha wrote: Dude: Read the email first... I am informing of the problem after we experienced with IE... On 6/6/05, Joe Plautz [EMAIL PROTECTED] wrote: Simple, test with IE as well. sudip shrestha wrote: I have a struts-hibernate powered webapp running off a debian box, jdk 1.5 and tomcat 5.5.7 I have IE users complaining about page not found problems from time to time where as Firefox users never. I myselft have never encountered this problem as I use FirefoxThis led me to thinking that this might be a IE problem...Any suggestions on how to move ahead on the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE-Page not found problem
If it was only that simple. Rafa Krupiski wrote: Joe Plautz wrote: Simple, test with IE as well. yet simpler, tell your users it's IE problem and to use firefox instead :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP too big to compile?
You are actually limited by Java. I can't recall the actual size off hand, but a method can only be so big. From what I remember, it has something to do with server side includes vs jsp includes. We ended up doing some pretty nasty stuff by conditionally doing a server side include. I can't really remember much more than that it was several years ago. David Wall wrote: We have a web page that contains many business documents laid out one after the other so a user can just click print and have all of them print together (with a stylesheet that starts each contract on its own printed page). But we seem to be having an error that the generated servlet code is too big because of service method's try block is too long. Is there anything I can tweak to allow this to be bigger for the java compiler, or is this just a limit of Java in general? Thanks, David Generated servlet error: [javac] Compiling 1 source file [javac] /home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:8946: compiler message file broken: key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt arguments=null, null, null, null, null, null, null [javac] } catch (Throwable t) { [javac] ^ [javac] /home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/app/application_jsp.java:1118: compiler message file broken: key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt arguments=null, null, null, null, null, null, null [javac] try { [javac] ^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic load balancing
From what I understand load balancing is done at the router, where clustering is a tomcat setup issue. Joe Faine, Mark wrote: Tomcat 5.0.28 We seem to often have to make minor changes that cause us to have to restart our tomcat server (the whole server, not just a web application) and this has lead me to decide to research load balancing. The idea would be to have two servers that would be exact duplicates. One of the servers would only become available when the other was not running. This way we could make the change on server2 (and restart it) and then bring server1 down and make the change to it as well. This would prevent any real downtime for our users. Where should I look for info on how to implement this type of failover? Thanks for your help -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
Sorry I'm late to the party. I've been working with jasperreports from sourceforge the last couple of weeks to create reports in PDF. It also has the ability to create an excel spreadsheet as well, although I haven't used it yet. Using it in conjunction with iReports, also from sourceforge, you can have a report in minutes. I would recommend using it to anyone. Joe Mike Curwen wrote: you should consider using POI, if you need Excel-only features like footer repeated on every page. Specifically: http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 9:53 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Free reporting s/w that works with apache+tomcat Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Discover Yahoo! Find restaurants, movies, travel and more
Re: port number
Just user the jk connector. The work famously together. Obviously you're not running tomcat on port 80, but you don't need to. Here's the link on setting it up. http://jakarta.apache.org/tomcat/connectors-doc/index.html t.n.a. wrote: Hi everyone, I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? I ask because of firewall issues: port 80 seems to be the Holy Grail of accessibility: everything else depends on the local firewall configuration. Tomislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: port number
No, they're not both listening on port 80, Apache is listening on port 80 and forwards requests to tomcat as needed. Joe Magnotta, Salvatore wrote: So then it is possible to have both on port 80? G says no way... No that's not possible. Only one server for one port... You could try to forward incomming connections from apache to tomcat. For that there is a plug in on tomcats web site... G -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 11:10 AM To: Tomcat Users List Subject: RE: port number From: t.n.a. [mailto:[EMAIL PROTECTED] I host applications on a machine where both apache and tomcat are running. I access apache at port 80 and tomcat at 8080. Is it possible (using the tomcat apache connection, or some other way) to access both at port 80? Yes, but you'll have to decide under which part of your Apache site you'll show your Tomcat pages. The trick is to install mod_jk to connect from Apache to Tomcat (and make sure you've got a JK connector enabled in Tomcat). Then you can map part or all of the Tomcat URL space into a virtual directory under Apache. JK is independent of Tomcat's HTTP connector so, if you wish, you can even remove Tomcat's connector on port 8080 once you've done this - the Apache = JK = Tomcat route becomes the only route through which you can access Tomcat. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bootclasspath
I'm using Tomcat 5.0.28 on Windows Server 2003 to run some web services that will use CORBA to communicate with a telephone switch. The CORBA code requires it's jar files to be in the the bootclasspath. When I run tomcat as a stand alone using startup.bat I set the -Xbootclasspath option in catalina.bat and everything works fine. On the other hand when tomcat is installed as a service nothing seems to work. I've tried setting the bootclasspath in the Java Options using the Configure Tomcat client as well as trying to set it in various bat files to no avail. Any help would be most appreciated. Thanks, Joe Plautz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]