Tomcat...apache...linux

like doing so that each user of a server in linux has his own folder of examples to be able to create and to compile his applications jsp without having to be root?

For each user you want to have this ability, you should add that user to the 'tomcat' group for your system, which may be 'tomcat4' depending on which version of Tomcat you run. This will allow all users to edit each other's jsps though which you may not want.
If you want to prevent that, don't add them all to the tomcat group and create a folder under $CATALINA_HOME/webapps for each user and make that user the owner and tomcat.
So if your users are fred and bob. Try this:
root@localhost:/ # mkdir /var/tomcat4/webapps/bob
root@localhost:/ # chown bob:tomcat4 /var/tomcat4/webapps/bob
root@localhost:/ # mkdir /var/tomcat4/webapps/fred
root@localhost:/ # chown fred:tomcat4 /var/tomcat4/webapps/fred
You may want to look closely at the default permissions created in order to reduce security risks.
This way your user bob can find his webapp at http://yourserver:8080/bob.
Hope that helps.

Similar Messages

  • JDBC DRIVER LINUX TOMCAT APACHE

    Hello all
    I am woking on APACHE + TOMCAT + RH LINUX
    enviorment . I have a main page which calls another JSP on clicking to a button . That JSP makes connection with oracle 7.3.4 which is running on another machine whose enviorment is AIX 4.2 .
    whenever I clicked on button it access the JSP but it could nt find the driver which is classes12.zip in
    TOMCAT_HOME/lib directory and classpath is already set
    Error I am getting is driver not found in case the statement is
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    and error is Document contain no data in case I change the above statement to
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Please help ?
    Thanks in Advance
    Avi

    Thanks for yor reply beattris
    Still it didbnt work Please have a look at the code
    <%
    System.out.println("1");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("2");
    conn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@blackadder:1521:ORCL","driver","norman");
    stmt = conn.createStatement();
    rs = stmt.executeQuery("SELECT FILE_STATUS FROM GOLFFILES WHERE GOLFFILE_ID = (SELECT MAX(GOLFFILE_ID) FROM GOLFFILES)");
    while (rs.next()) {
    varIsUpdated = rs.getString(1);
    rs.close();
    stmt.close();
    if (varIsUpdated.equals("START") && !(varIsUpdated.equals("LOADED"))) {
    conn.close();
    %>
    Above is the code it comes to JSP and it prints 1 which is above the class.forName statement but after that it wont print 2 .. which means it is able execute this statement
    One more thing do .zip files work on linux
    Please see if u can help ?
    Thanks
    KS

  • Error 500 when I'm running JSP with tomcat on Linux

    I'm using Tomcat on linux and when I'm running any JSP file I got this Error:
    Error: 500
    Location: /examples/jsp/snp/snoop.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    What I'm doing wrong?
    thank you for help, Snir

    I've got the same problem but on a Win98 platform also in Solaris OS
    By copying the file JAVA_HOME/lib/tools.jar to the following path :
    JAVA_HOME/jre/lib/ext/
    another alternative is to set your classpath so that it point to the .jar files in your environnement variaoble
    ex under Win98:
    include this line in your autoexec.bat file
    SET CLASSPATH=.;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt.jar
    under Linux:
    edit your .source that include environnment variables and add :"anOldPath:/jdk1.3/lib/tools.jar"
    run the source in your terminal window then you can run ./startup under solaris or startup.sh
    JAVA_HOME : c:\jdk1.3 or c:\jdk1.2.2 under win98
    /home/user/auser/jdk1.2.2/ on linux
    I hope that you encounter this problem.
    Hichem Hassainia.

  • XSQL : deploy On tomcat-apache

    hi Every Body
    I'm Working with jdev 3.2. The Application I developed contains
    some Xsql Pages. I want to deploy this application on the tomcat-
    apache sever , installed on LINUX.
    I added all the classes that take in charge Xsql Pages to the
    classpath.
    I modified the web.xml tomcat file to map the xsql pages with
    the oracle.xml.xsql.XSQLServlet , by adding these lines
    <servlet>
    <servlet-name>xsql</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    <load-on-startup>-2147483646</load-on-startup>
    </servlet>
    and also the servlet mapping
    <servlet-mapping>
    <servlet-name>xsql</servlet-name></servlet-mapping>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I modified also the httpd.conf file adding these lines:
    AddType text/xsql .xsql
    AddHandler jserv-servlet .xsql
    BUT when I try to open an xsql page it's displayed like it's in
    the jdeloper editor (the code source is displayed) without being
    executed.
    I don't know what to do. any suggestion.
    thanks in advance
    Ghassen

    The installation instructions in the XSQL release note do not
    mention adding lines like:
    AddType text/xsql .xsql
    AddHandler jserv-servlet .xsql If you remove these lines and restart, what happens? IF fact When I add these lines , what heppens is that the Xsql
    Page is downloaded to my PC and Opened with Jdeveloper. If I
    remove these lines The page Is Opened in the browser but with
    out being executed.
    Ghassen

  • Error while starting Tomcat Apache and Jaguar services in AW webview server

    hi,
    I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error.
    "Could not start Apache Tomcat service on Local Computer. Error 1069. The service could not start due to log on failure"
    The below account has been verified in the Domain controller and confirmed that the account is not Locked out or disabled.
    I have AW , HDS and Webview running on the same server.
    Can someone advice ...

    What OS version?  This might be a windows problem and not a Apache/Jaguar problem.
    david

  • Tomcat, Apache, mod_webapp and reloadable

    Hi, I'm not sure if this is the best spot to post this, if you know of another group that might be more helpful I'd appreciate the link...
    We are currently running Apache and using mod_webapp to connect Tomcat4 to it. We are defining a few applications in mod_webapp.conf, like so:
    WebAppConnection conn warp localhost:8008
    WebAppDeploy appname conn /appname
    Then in the server.xml we define the connector like this:
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/dirname"
    acceptCount="10" debug="0"/>
    The problem is that new class files are not picked up by Tomcat. There does not seem to be a good place to set the customary "reloadable=true" flag for our development application. Does anybody know how I could accomplish this with our setup?
    Thanks!
    -Eric

    Did you create a context for the webapp in the tomcat
    conf/server.xml
    <Context path="/myApp" docBase="myApp"
    reloadable="true" debug="0">
    </Context>No, we are just using the "appBase" attribute of the Connector element in the server.xml file to reference each application. It seems to me that we should be defining a Context for each application also, though I'm not sure how we would then use those with the WarpConnector to attach to Apache.
    In case it will help, here are the server.xml and mod_webapp.conf contents:
    ===========
    server.xml
    ===========
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="/app03/pactsecm"
    acceptCount="10" debug="0"/>
    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0">
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    </server>
    ============
    mod_webapp.conf
    ============
    <IfModule mod_webapp.c>
    # Define the connection to Tomcat
    WebAppConnection conn warp localhost:8008
    WebAppDeploy     app     conn     /app
    WebAppInfo /stronghold/webapp-info
    </IfModule>

  • How to setup Tomcat in Linux

    I want clear steps to setup Tomcat in Linux for running JSP and Servlet.
    Thanks in advance!

    [sigh]
    Is your Google broken?
    http://www.google.com/search?q=Install+Tomcat+on+Linux

  • From Tomcat-Apache to OC4J

    I4m migrating an application from Tomcat-Apache to OC4J. I have a problem whith a taglib in a Servlet call a JSP that use a taglib.
    In the JSP call a taglib whith:
    <%@ taglib uri="/oficios" prefix="portalOficios"%>
    <jsp:useBean id="resultado" scope="session" class="com.npevolution.util.SQLResult" />
    <portalOficios:iteracion nombres="codigo" tipo="String" group="<%= resultado%>">
    <% String campoCodProv = (String)pageContext.getAttribute("campo0");%>
    <%String campoNombProv =(String)pageContext.getAttribute("campo1");%>
    </portalOficios:iteracion>
    thank you;
    Esther

    I looked at the code after a jsp compiled to a servlet. The
    jspService method of "EditTmpForm.jsp" is about 801 KB. But for another jsp "EditOperation.jsp", the  jspService method is about 236 KB.
    Both are much greater than 64 K, but why it runs okay for "EditOperation.jsp" but gives me error for "EditTmpForm.jsp"?
    Furthermore, since the HTML form is long, so the HTML code itself is bigger than 64 K, how can you prevent your _jspService method so that is is shorter than 64K?
    Thanks for your help!
    James

  • I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:

    I am working on Security scan(to avoid cross site forgery) with the CSRF approach of tomcat(apache-tomcat-6.0.32) but I am getting following issue with firefox:
    1. Firefox is not supporting CSRF provided by tomcat in a proper way firefox creating multiple sessions.
    2. Whenever any exception (like JSP exception) comes on page. Firefox redirects it to CSRFPreventionFilter and this filter creates new session.
    3. Sometimes while traversing through application also CSRFPreventionFilter filter creates new session.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • Tomcat on Linux with10g using OCI Client UnsatisfiedLinkError: no ocijdbc10

    I'm having some issues configuring Tomcat with a 10g JDBC driver under Linux using the OCI thick client. When I attempt to get a database connection I get the following:
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
         java.lang.ClassLoader.loadLibrary(Unknown Source)
         java.lang.Runtime.loadLibrary0(Unknown Source)
         java.lang.System.loadLibrary(Unknown Source)
         oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2854)
         oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:343)
         oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:135)
         oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
         org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
         org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
         org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
         org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
         org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
         org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:107)
         org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
         org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:446)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:512)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:543)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:564)
         org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:114)
         org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:201)
    Now I've seen other instances of the above and they basically come down to making sure that the ojdbc14.jar file is in my classpath, and I thought I had that covered.
    Here's everything I've done:
    added ojdbc14.jar to $TOMCAT_HOME/common/endorsed
    added ojdbc14.jar to $TOMCAT_HOME/common/lib
    verified that ORACLE_HOME is defined: /app/oracle/product/10.1.0/client_1
    verified that LD_LIBRARY_PATH is defined: /app/oracle/product/10.1.0/client_1/lib
    added the following to the java commandline for Tomcat:
    -Djava.library.path="$ORACLE_HOME"
    the above -Djava.library.path didn't work so made the following change (which still didn't work)
    -Djava.library.path="$ORACLE_HOME"/lib
    my PATH variable includes both $ORACLE_HOME and $ORACLE_HOME/lib
    echo $PATH:
    /app/oracle/product/10.1.0/client_1:/app/oracle/product/10.1.0/client_1/lib
    I have no idea what else I am missing or if my Oracle client installation is just hosed.
    Any assistance would be appreciated.

    Use the thin driver.
    no ocijdbc10 in java.library.path

  • Problem in project using Eclipse+Tomcat+Apache Beehive

    Hi,
    Software used
    Operating System : Red Hat Linux
    IDE : eclipse 3.1 M7
    Server : Tomcat 5.5.10
    Webservice Package : Apache Beehive Build 20050505
    Plugin for integrating Apache Beehive with eclipse is POLLINATE
    My Problem: when I created my first webservice project . In all the log4j.xml files in the project. It gave an error saying that log4j.dtd file not found inside /root/workspace/SampleProject1/webcontent/WEB-INF/src/log4j.dtd
    Please provide me some suggestions to clean this error
    Thank you
    Mike

    didi you set the right path to the jre?
    there's a goog mailing llist for tomcat issues. go to the jakarta/tomcat website to subscribe. they might help you.

  • Content-type problems while using struts+tomcat+apache+mod_jk

    Hi!
    Could anyone tell me how to solve the following problem.
    Struts-application works under apache + mod_jk + tomcat 3.3.1. Operating system is Linux.
    It's impossible to me to make tomcat to send HTTP-answers in UTF-8.
    I was trying the following:
    1. Set <DecodeInterceptor defaultEncoding="UTF-8" /> in server.xml
    (Has no effect. Tomcat responds with Content-Type: text/html; charset=iso-8859-1)
    2. Insert <%@ page contentType="text/html; charset=utf-8"%> into each page header.
    (Works fine but when struts-application gets GET/POST-data the two-bytes national characters
    are comverted into "?"-symbols)
    Is there any way to make tomcat 3.3.1 to send HTTP-answers in UTF-8?

    I don't know what the DecodeInterceptor does... but....
    If you use number 2, you are only telling the browser what that page's output is. When you process the data, Tomcat for some reason always reads it as ISO8895-1, so you need to tell Tomcat to change it to UTF-8. You can do that by calling request.setCharacterEncoding("UTF-8"), either in the JSP page, or if you need it in a servlet, you can do that in a filter...
    It's somewhat described here how to set it up...
    http://www.mail-archive.com/[email protected]/msg01193.html

  • HTTP2302 error  with tomcat and linux environment

    We are using Sun Java(TM) System Web Server 7.0 with Tomcat 6.0.14 in Linux environment. We are frequently facing "Service Unavailable error" in the frontend . while verifying the logs we found the details as below :
    could you guinde what could be issue here ?
    In Webserver log the following error thrown many times
    func_exec reports: HTTP2302: Function jk_service aborted the request without setting the status code
    We are using the tomcat connector nsapi_redirector-1.2.26-sjsws6.1sp11.so in our environment
    nsapi.log
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] jk_open_socket::jk_connect.c (548): trying to connect socket 30 to 160.254.92.190:8051
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] jk_open_socket::jk_connect.c (566): connect to 160.254.92.190:8051 failed (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (160.254.92.190:8051) (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] ajp_service::jk_ajp_common.c (2204): (ajp13) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] jk_service::jk_nsapi_plugin.c (398): service() failed with http error 503
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (ajp13) resetting endpoint with sd = 4294967295 (socket shutdown)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] ajp_done::jk_ajp_common.c (2522): recycling connection pool slot=0 for worker ajp13
    h1. Obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    <If $uri =~ '^/$'>
    NameTrans fn="redirect" from="/" url="http://wikitest.pershing.com/confluence/" code="301"
    </If>
    NameTrans fn="assign-name" from="/confluence/*" name="servlet"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="servlet">
    ObjectType fn="force-type" type="text/html"
    Service fn="jk_service" worker="ajp13"
    </Object>

    Hi, The reason tomcat had to be used is that the software is bundled with tomcat. Hence we are in the following configuration:
    -Sun Web Server 7.0 update 5
    -Tomcat 6, Using JRE1.6
    -The server runs Linux.
    -As for the tomcat web server plugin, the 32-bit tomcat connector is downloaded from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.26/sparc/
    With this configuration. seems when we refresh a page quickly, we get "service unavailable error". But if we only put web contents, the issue does not exist. Looks like the issue resides in the plugin....
    Any help is greatly appreciated

  • How to Authenticate a J2EE application running on Tomcat & Apache with OAM

    Hi All,
    Can somebody point me to docs which states how to integrate a J2EE software deployed on Tomcat(AppServer) & Apache(WebServer).
    I have Oracle Access Manager installed I need to enable SSO for that software.
    Thanks,
    RK

    HI ,
    Apart from the installation webgate and protection of the resource through OAM policies, you also need to modify your Java based application.
    As a part of integration what OAM do is, it weill pass the user information(eg user id etc) to the Java application as the header variables. And now you have to modify this application so that it will accept the user information send by OAM, also login page if any of the application is disabled.
    Also if you are going for cookie based approach, your landing jsp of java application should be capable of reading and validating obssocookie set by OAM.
    Hope this will help you.
    Thanks,
    Ankit

  • Character encoding problem using XSLT and Tomcat on Linux

    Hi,
    I have an application running on a Tomcat 4.1.18 application server that applies XSLT transformations to DOM objects using standard calls to javax.xml.transform API. The JDK is J2SE 1.4.1_01.
    It is all OK while running on a development enviroment (which is Windows NT 4.0 work station), but when I put it in the production enviroment (which is a red hat linux 8.0), it comes up with some kind of encoding problem: the extended characters (in spanish) are not shown as they should.
    The XSL stylesheets are using the ISO-8859-1 encoding, but I have also tried with UTF-8.
    These stylesheets are dynamicly generated from a JSP:
    // opens a connection to a JSP that generates the XSL
    URLConnection urlConn = (new URL( xxxxxx )).openConnection();
    Reader readerJsp = new BufferedReader(new InputStreamReader( urlConn.getInputStream() ));
    // Gets the object that represents the XSL
    Templates translet = tFactory.newTemplates( new StreamSource( readerJsp ));
    Transformer transformer = translet.newTransformer();
    // applies transformations
    // the output is sent to the HttpServletResponse's outputStream object
    transformer.transform(myDOMObject, new StreamResult(response.getOutputStream()) );Any help would be appreciated.

    Probably you need to set your LANG OS especific environment variable to spanish.
    Try adding this line:
    export LANG=es_ES
    to your tomcat/bin/catalina.sh, and restart tomcat.
    It should look like this:
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    esac
    export LANG=es_ES
    # resolve links - $0 may be a softlink
    PRG="$0"
    .(BTW, keep using ISO-8859-1 encoding for your XSL)
    HTH
    Un Saludo!

  • Servlets and Tomcat/Apache

    Okay,
    Tomcat 4.1 running with Apache.
    Installed mod_jk, piece of cake.
    JSPs run through Apache like a dream.
    Tomcat examples ( jsp and servlets) run through Apache perfectly ( that is no :8080 business).
    My JSP's run through Apache no problem. Works great.
    My SERVLETS WILL NOT RUN THROUGH APACHE FOR ANYTHING.
    My context looks like this in server.xml:
    <Context path="/nuweb" docBase="/home/shared/nuweb" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="nuweb" suffix=".log"
    timestamp="true"/>
    </Context>
    Note: that I am not under <TOMCAT_HOME>/webapps.
    The reason is that I will, in production not be the Unix admin on the server. I will only have priviledges within my directory. I will not be able to drop war files in the webapps directory. I will not be able
    to start and stop tomcat or apache ( there are 100 diffrent apache contexts on that machine and someday many of them will be going through tomcat for jsp and servlet support).
    My servlets will only run if I put :8080/nuweb/servlet/HelloServlet in the URL. Take off the 8080 and I get Page not found. Not the tomcat 404 page, the Browswer 404 errror.
    Here is my web.xml which lives in the WEB-INF directory of of /home/shared/nuweb
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>org.nu.servlet.HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/hello</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    </web-app>
    In devlopment I am on a system that is very close to what the production server will look like ( Tomcat 4.1 same version of Apache, same Unix ). In development I can restart all the servers edit server.xml etc. On the production I would have to schedule that stuff. I want to be able to compile classes and drop them in the WEB-INF/classes... directory and have them run. Is that too much to ask?

    Hi,
    I am also facing same error.
    I am not able to view my servlets via apache web server.
    ie when i do "http://localhost/enlighta/logon"
    I get http 404 page not found error
    but when I do http://localhost:8080/enlighta/logon
    all works fine
    I am using apache 2 and tomcat 4.5
    This is I have done:
    1.I have http server running on port 80
    2. appserver on port 8080
    3. I have a war file enlighta.war deployed on webserevr
    4. The static content like images and html page I have moved to webserver
    5. The servlet context of the app on the app server is /enlighta
    6. In the web.xml I have defined all the servlet maping.
    the port 8009 has the connecter is running/listening.
    the configuration
    sever.xml on tomcat
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    httpd.conf on apache
    # Load mod_jk
    LoadModule jk_module modules/mod_jk.so
    # Configure mod_jk
    JkWorkersFile conf/workers.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel info
    # First Virtual Host.
    <VirtualHost 192.168.1.2:8080>
    ServerAdmin [email protected]
    DocumentRoot /enlighta/
    ServerName localhost
    ErrorLog logs/enlighta_error_log
    TransferLog logs/enlighta_access_log
    JkMount /enlighta/* ajp13
    </VirtualHost>
    workers.properties
    worker.list=ajp13
    # Defining a worker named ajp13w and of type ajp13
    # Note that the name and the type do not have to match.
    worker.ajp13.type=ajp13
    worker.ajp13.host=localhost
    worker.ajp13.port=8009
    Now I feel I am doing something wrong on defining virtual host.
    Or may be something else is wrong.
    I have gone thru the previous thread but I dont have mod_jk.conf file.
    Please help!!!
    Thanks
    Sachin

Maybe you are looking for

  • Why can't I open pdfs in Firefox any more? I'm using a Mac with OS10.5

    When I open a pdf, I just get a blank window

  • Mouse gestures in X

    i use mouse gestures in mozilla since mozilla 0.9.9 - very usefull!! (optimoz) shortly i ran over an app for windows, that enables gestures for all apps available in windows: http://www.tcbmi.com/strokeit/ funny, but since i installed it, i start to

  • I want to convert number to hours in oracle 10 like this.

    Dear All Some can help me I want to convert below MS-SQL query in oracle 10g. please help me. for eg: Select numasdate, Cast(numasdate / 60 as Varchar) + ' hours ' + Cast(numasdate % 60 as Varchar) + ' minutes' as [TotalHoursAndMinutes] From #SampleT

  • Installing Dreamweaver Extension

    Hi, I can´t install a Dreamweaver Extension, because DW is not in the Extension Manager, but i have DW already installed:

  • Error 3234

    Hi When i'm using Itunes it telles me that thre is at update for my Ipod 30 GB. But when im trying to update the ipod software i get a error message (-3234) Can anyone help me ?