Directory Editor and Tomcat

Hey all,
I am installing Directory Editor 6.0, and following the install documentation, I added some lines to the 'catalina.policy' file in the Tomcat configuration to allow DE to work properly.
grant codeBase "file:${catalina.home}/webapps/de/-" {
  permission java.security.AllPermission;
grant codeBase "file:${catalina.home}/webapps/de/-" {
  permission javax.security.auth.AuthPermission "getLoginConfiguration";
  permission javax.security.auth.AuthPermission "setLoginConfiguration";
  permission javax.security.auth.AuthPermission "createLoginContext.SunDirectoryLogin";
  permission javax.security.auth.AuthPermission "modifyPrincipals";
  permission java.util.PropertyPermission "*", "read,write";
  permission java.net.SocketPermission "*", "connect,resolve";
  permission java.io.FilePermission "*", "read, write";
  permission java.util.PropertyPermission "Debug.enable", "read";
grant {
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  permission java.lang.RuntimePermission "accessClassInPackage.sun.beans.*";
  permission java.lang.RuntimePermission "accessClassInPackage.sun.io";
  permission java.lang.RuntimePermission "accessDeclaredMembers";
};I deployed the WAR file, and was able to perform the initial configuration of DE (location of the config directory, what suffix to configure, what credentials to connect to the DS as...). Once those steps finish, I can see data in the DS under the newly created "Services" OU for DE, but when I try to login to DE as either a regular user or as an administrative user, I get an error. The catalina.out log show the following:
2007-06-25 16:00:14,398 [TP-Processor11] WARN  org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.lang.SecurityException
2007-06-25 16:00:14,398 [TP-Processor11] ERROR com.sun.dml.web.DmlRequestProcessor - No exception handler for java.lang.SecurityException: Unable to locate a login configuration.  Forwarding to error page.
java.lang.SecurityException: Unable to locate a login configuration
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
        at com.sun.dml.web.LoginAction.execute(LoginAction.java:113)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at com.sun.dml.web.DmlRequestProcessor.processActionPerform(DmlRequestProcessor.java:180)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Unable to locate a login configuration
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
        ... 32 moreIs there anything else that needs to be done to allow access for DE when using Tomcat?
TIA, Mark

here is the info re: Directory Editor and Tomcat 5.5:
http://docs.sun.com/app/docs/doc/820-2487/de-bugs-fixed-known
6397929
When deploying on Tomcat 5.5, login fails due to a missing JAAS configuration file
To work around this issue, first create tomcat-install-path/bin/setenv.sh containing the following line:
JAVA_OPTS="-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.conf"
Next create tomcat-install-path/conf/jaas.conf. Edit the file to contain the following lines:
SunDirectoryLogin {
com.sun.dml.auth.SunDirectoryLoginModule required;
};

Similar Messages

  • Eclipse and Tomcat questions

    Hi everyone,
    Lastnight I setup Eclipse to work with Tomcat, which works very good, but there are something I don't understand.
    1. My files are put in my workspace in (C:\Documents and Settings\...etc)
    How does Tomcat (which is installed in C:\Tomcat) know that it should get the files from my workspace directory?
    Because in the C:\Tomcat directory I can't find any .XML file that refers to my workspace directory.
    2. How I developed my servlets till now, I had some other free editor, I needed to compile my servlets then restart Tomcat and then test it.
    With Eclipse + Tomcat plugin, all I need to do save the servlet and apparently the source code is compiled automatically. All I need to do is refresh the servlet in my browsers (very handy and easy to develop like this). But my question is, does Eclipse compile the servlet automatically after saving? And why doesn't tomcat have to be restarted?
    Just a few questions to understand it a bit better, I'm really happy with this setup as it makes everything a lot easier.
    Regards,
    Steven.

    I believe you will need to become familiar with and install:
    http://www.eclipse.org/webtools/
    HTH
    Darins
    "raul" <[email protected]> wrote in message
    news:b894c367f9750f367a2e8336f8fe93b1$[email protected]..
    > Hi, I downloaded the latest version of eclipse 3.1 and I've installed
    > apache tomcat in mi PC.
    > Eclipse has a plugin : org.eclipse.tomcat_4.1.30.1
    > My problem is that I don't know how to use the tomcat server with eclipse.
    > I readed some tutorials and they say that I have to configure using menu
    > Window > Preferences and then I will see the tomcat option. But that
    > option doesn't appears or I couldn't see it.
    > Another tutorial say that I have to activate a plugin in the following
    > menu location: Window > Customize Perspective > Commands and select the
    > checkbox for tomcat , but that option doesn't appears either.
    > What can I do, I want to use eclipse and tomcat together...
    > Can someone help me with this questions?
    >
    > Thanks so much.
    > Raul Torres
    >
    >
    >

  • Problem with jsp and tomcat

    Hi ,
    I am trying to retrieve data from mysql server using Tomcat webserver of java web services developers pack. i wrote an html page that sends the account_no and password of my program to a JSP page which retrieve data from MySQL server to check whether the account no and password is valid or not . but when i start tomcat and run the html page and submit the onformation the Tomcat gives an error. i am attaching my full programs here. please someone help me.
    mybank.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> My Bank </TITLE>
    </HEAD>
    <BODY>
    <h1>Please Enter Your Account Number and Password</h1>
    <form action="mybank.jsp" method="post">
    <h2>Account Number:</h2>
    <input type="text" name="accno" maxlength="10" size="10"></br>
    <h2>Password:</h2>
    <input type="text" name="pass" maxlength="8" size="8"></br>
    <input type="submit" value="SUBMIT YOUR INFO">
    </form>
    </body>
    </html>
    mybank.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <%@ page import="java.sql.*" %>
    <HTML>
    <HEAD>
    <TITLE> My Bank JSP </TITLE>
    </HEAD>
    <BODY>
    <% int acc_no = request.getParameter("accno");
    String password=request.getParameter("pass");
    class.forName(com.mysql.jdbc.Driver);
    Connection con= DriveManager.getConnection("jdbc:mysql:///password","root", "firehouse" );
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT account_no, password FROM pass WHERE password ='password' && account_no='acc_no' ");
    while(rs.next())
    int account=rs.getInt(1);
              String passw=rs.getString(2);
    if(rs!=null)
    rs.close();
    if(stmt!=null)
    stmt.close();
    if(con!=null)
    con.close();
    %>
    <h2>Accountno:<%= account %></h2>
    <h2>Password:<%= passw %></h2>
    </BODY>
    </HTML>
    i am getting this error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:455)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    but i already set up the java compiler though i m getting this error. please help me.

    You say you have set up the environment variables, but it is not working. You may have them set to the wrong thing. One common mistake is to point JAVA_HOME at the java/bin directory rather than just the /java directory.
    Another set of eyes finds small mistakes in the variables that you might not spot yourself.
    So please, post:
    The values of these environment variables
    The path to where the products are installed on your system (ie is it c:\java or c:\j2se1_4_2 or c:\program files?
    I would take another close look at that JAVA_HOME variable to make sure of it :-)
    Good luck,
    evnafets

  • Again problem with servlet and Tomcat

    My files are:
    webapps\greeting\src\GreetingServlet.java
    ................\index.html
    ................\WEB-INF\classes\GreetingServlet.class
    ........................\web.xml
    Url:http//:localhost:8080/greeting/ shows index.html but when i submit
    it showing
    HTTP Status 404 - /greeting/servlet/GreetingServlet
    type: Status report
    message: /greeting/servlet/GreetingServlet
    description: The requested resource (/greeting/servlet/GreetingServlet) is not available.
    Source code:
    1.index.html:
    <HTML>
         <HEAD>
              <TITLE>ProJava Registration</TITLE>
         </HEAD>
         <BODY>
              <H1>Welcome</H1>
              <FORM ACTION ="/greeting/servlet/GreetingServlet" METHOD= "POST">
                   <p>Your Name <INPUT TYPE= "text" SIZE= "40" NAME= "name" ></p>
                   <p>Your Email <INPUT TYPE= "text" SIZE= "40" NAME="email">
                   <INPUT TYPE= "submit" VALUE= "Submit" ></p>
              </FORM>
         </BODY>
    </HTML>
    2.GreetingServlet.java:
    import javax.servlet.* ;
    import javax.servlet.http.* ;
    import java.io.* ;
    import java.util.* ;
    public class GreetingServlet extends HttpServlet{
    protected void doPost (HttpServletRequest request,
                   HttpServletResponse response)
                        throws ServletException, IOException {
         String name = request.getParameter ("name");
         String email = request.getParameter ("email");
         String message = null;
         GregorianCalendar calendar = new GregorianCalendar();
         if (calendar.get(Calendar.AM_PM) == Calendar.AM) {
              message =" Good Morning";
         else {
              message = " Good Afternoon";
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
         out .println("<HTML>");
         out .println("<BODY>");
         out .println("<p>"+message +","+name+"</p>");
         out .println("<p> Thanks ("+email+")</p>");
         out .println("<p> -The Pro Java Team.</p>");
         out .println("</BODY>");
         out .println("</HTML>");
         out .close();
    Please help me
    Thanks in advance Also thanks to st.

    Hi,
    I think you have to change server.xml, which is in conf directory of your tomcat root directory.
    search context in server.xml
    and alter like this
    <Context path="/greetings" docBase="greetings" debug="0"
    reloadable="true" crossContext="true">
    Hope this will help
    Regards
    Sekhar

  • NetBeans 5.0 and Tomcat 4.1

    Hello,
    I'm using NetBeans 5.0 and I have been using the Bundled Tomcat version 5.5.9 for my servlet container and everything's been great. Now that I'm ready to push my application up to a web host, I found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet container. Tomcat 5.5 uses servlet container 2.4.
    So I downloaded Tomcat 4.1 (which has 2.3) and I don't know how to properly tell Netbeans to use it. When I open Server Manager and select 'Add Server', I can't just tell NetBeans to point to my Tomcat 4.1 directory. It wants me to select from a dropdown list of servers and Tomcat 4.1 isn't in the list.
    I tried to fake NetBeans out by selecting the 'Tomcat 5' server and pointing to my Tomcat 4.1 directory but I'm getting the following message when I try to run:
    FAIL - Unknown command /deploy
    C:\workspace\myApp\nbproject\build-impl.xml:425: Deployment error:
    Can anyone point me in the right direction on how to get Tomcat 4.1 running with NetBeans 5.0?
    Thanks,
    Eric

    I found that my host (lunarpages) runs with Tomcat 4.1 which uses version 2.3 of the servlet containerPlease read the post before answering, the reasoning is crystal clear.
    I don't have a concrete answer to this problem, but I do have a suggestion.
    1) You can add your own tomcat server to netbeans. Under the runtime tab you will find servers, if you right click this you can add a server. Use this to manually configure your own server
    2) as for the servlet spec problem, when creating a web project setting the java EE version to 1.3 might solve the problem... I can't tell this for sure because I've never done it.

  • Sun Directory Editor - errors on edit form

    I've installed directory editor, which seems to run fine except for the edit form.
    I've got the following errors in the server.log (running Sun Java System Application Server Platform Edition 8.2) and can't find any doc on how to solve this.
    [#|2009-01-20T10:23:32.903+0100|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=15;|2009-01-20 10:23:32,902 [httpWorkerThread-8080-1] ERROR com.sun.dml.web.taglib.GenerateFormTitleTag - Error generating title and buttons
    java.lang.NullPointerException
    [#|2009-01-20T10:23:33.092+0100|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=15;|2009-01-20 10:23:33,090 [httpWorkerThread-8080-1] ERROR com.sun.dml.resource.LDAPLighthouseContext - Error during 'checkoutView' operation
    java.lang.NullPointerException
    [#|2009-01-20T10:23:33.093+0100|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=15;|re.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]

    Mind explaining what actions you performed before the error showed up? One bug that might match your description is that the session has timed out and you clicked the "edit" button.
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-6259096-1
    idle session timeout causes null pointer exception

  • Setting up eclipse and tomcat

    Does anyone here have any expertise configuring these two products?(eclipse and tomcat)
    I have my tomcat server running and it process them jsp pages just fine. I have also installed the plugin to get tomcat configured with eclispe.
    I am just having problems running a jsp file directly from tomcat. it always points to a file on the hd and not to the webapps area like it's supposed to......

    Sure - we use that combo for development all the time.
    What's the problem specifically? Did you create a new Tomcat project in Eclipse? If you did, then it will automatically add the project's web path as a context to Tomcat, and you can browse directly to it using your browser.
    FYI - note that the context that is created is going to point to the eclipse workspace directory - NOT the default webapps directory that you might have configured for Tomcat. That's OK.
    - K

  • Apache HTTP server and Tomcat integration using mod_jk

    Hi, I'm trying to get Apache version 2 Server running with Tomcat 7 as the Java Servlet container (I'll be using Solr as the webapp next). Followed the instructions in the wiki articles Tomcat and Apache and Tomcat.
    The applications work fine separately. It's only when I modify the httpd.conf files as instructed that I get this error when I restart httpd and tomcat. This problem seems identical to this topic although the user that posted it does't know how he fixed the problem.
    Terminal wrote::: Starting Apache Web Server                                                                        [BUSY]
                               /usr/sbin/apachectl: line 84:  8640 Bus error               $HTTPD -k $ARGV       [FAIL]
    The only bit that I didn't follow to the letter is the part where it says to set TOMCAT_JAVA_HOME=/opt/java \. I have it as
    TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk. No idea why it repeats that the java home is in the /opt directory.
    I installed mod_jk from the AUR version 1.2.37-1.
    Any idea what the problem is?

    download the binary version of TomCat from
    http://jakarta.apache.org/
    and install it. but your need to set the environment variable...pls refer to
    http://www.amazon.com/exec/obidos/tg/stores/detail/-/books/1861002092/reader/18/ref=lib_dp_TT01/103-9996294-0061449#reader-link
    JSP hava some similarity of ASP. ASP is using Personal Web Server.
    heng

  • Apache 2.0 and Tomcat 4.1 (help)

    I have spent the last few days trying to serve JSP's using Apache 2.0 in conjunction with Tomcat 4.1 with zero results. I am rather frazzled and am about to abandon the thought of using anything Java for a long time.
    I have found several resources that have spun me around in circles and provided little to no help at all. I am using a Win98 box by the way...
    My installations are as follows:
    Apache 2.0 - C:\Java\Apache
    Tomcat 4.1 - C:\Java\Apache\Tomcat_4.1
    mod_jk.conf - C:\Java\Apache\Tomcat_4.1\conf\auto\
    workers.properties - C:\Java\Apache\Tomcat_4.1\conf\jk\
    httpd.conf - C:\Java\Apache\Apache2\conf\
    mod_jk.dll - C:\Java\Apache\Apache2\bin
    The files in question are as follows:
    #========================================================
    C:\Java\Apache\Tomcat_4.1\conf\auto\mod_jk.conf
    #========================================================
    ########## Auto generated on Fri Sep 13 18:46:55 EDT 2002##########
    <VirtualHost localhost>
        ServerName localhost
        JkMount /manager ajp13
        JkMount /manager/* ajp13
        JkMount /examples ajp13
        JkMount /examples/* ajp13
        JkMount /tomcat-docs ajp13
        JkMount /tomcat-docs/* ajp13
        JkMount /webdav ajp13
        JkMount /webdav/* ajp13
        JkMount /admin ajp13
        JkMount /admin/* ajp13
    </VirtualHost>#========================================================
    C:\Java\Apache\Tomcat_4.1\conf\jk\workers.properties
    #========================================================
    # Start setup file
    #==========================================================
    workers.tomcat_home=C:/Java/Apache/Tomcat_4.1
    workers.java_home=C:/Java/j2sdk1.4.0
    ps=/
    worker.list=MyWorker
    #==========================================================
    # Definition for MyWorker worker
    #==========================================================
    worker.MyWorker.port=8009
    worker.MyWorker.host=192.168.0.2
    worker.MyWorker.type=ajp13
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/bin
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/common/lib
    worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/server/lib
    worker.MyWorker.class_path=C:/Java/j2sdk1.4.0/lib/tools.jar
    #==========================================================
    # End setup file#==========================================================
    C:\Java\Apache\Apache2\conf\httpd.conf
    #==========================================================
    about line# 212:
    ServerName 192.168.0.2  # my internal ipat bottom of file:
    LoadModule jk_module "C:/Java/Apache/Tomcat_4.1/module/mod_jk.dll"
    Include C:/Java/Apache/Tomcat_4.1/conf/auto/mod_jk.conf
    JkWorkersFile "C:/Java/Apache/Tomcat_4.1/conf/jk/workers.properties"
    JkLogFile "C:/Java/Apache/Tomcat_4.1/logs/mod_jk.log"
    JkLogLevel emerg
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkMount /examples/*.jsp MyWorker
    JkMount /examples/jsp/* MyWorkerWhen I put this URL in my browser:
    http://192.168.0.2/examples/jsp/
    I get a 404 error...
    Apache keeps trying to serve the *.jsp's and it fails every time it trys to do so. I know this b/c the Tomcat logs are virtually empty while the Apache logs keep being added to like so:
    192.168.0.2 - - [14/Sep/2002:19:04:57 - 0400] "GET /examples/jsp/snp/snoop.jsp HTTP/1.1" 404 294
    Any help is greatly appreciated....

    I am running into a similar problem on Linux. Can you let me know if you ever fgured it out?
    My conf files are as follows:
    mod_jk.conf
    ########## Auto generated on Tue Nov 12 16:12:05 EST 2002##########
    <IfModule !mod_jk.c>
    LoadModule jk_module /usr/lib/apache/mod_jk.so
    </IfModule>
    JkWorkersFile "/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties"
    JkLogFile "/install/jakarta-tomcat-4.1.12/logs/mod_jk.log"
    JkLogLevel emerg
    <VirtualHost localhost>
    ServerName localhost
    #################### localhost:/admin ####################
    # Static files
    Alias /admin "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin"
    <Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin">
    Options Indexes FollowSymLinks
    DirectoryIndex index.html index.htm index.jsp
    </Directory>
    # Deny direct access to WEB-INF and META-INF
    <Location "/admin/WEB-INF/*">
    AllowOverride None
    deny from all
    </Location>
    <Location "/admin/META-INF/*">
    AllowOverride None
    deny from all
    </Location>
    JkMount /admin/j_security_check ajp13
    JkMount /admin/*.do ajp13
    JkMount /admin/*.jsp ajp13
    #################### localhost:/webdav ####################
    # Static files
    Alias /webdav "/install/jakarta-tomcat-4.1.12/webapps/webdav"
    <Directory "/install/jakarta-tomcat-4.1.12/webapps/webdav">
    Options Indexes FollowSymLinks
    DirectoryIndex index.jsp index.html index.htm
    </Directory>
    # Deny direct access to WEB-INF and META-INF
    <Location "/webdav/WEB-INF/*">
    AllowOverride None
    deny from all
    </Location>
    <Location "/webdav/META-INF/*">
    AllowOverride None
    deny from all
    </Location>
    JkMount /webdav/*.jsp ajp13
    #################### localhost:/examples ####################
    # Static files
    Alias /examples "/install/jakarta-tomcat-4.1.12/webapps/examples"
    <Directory "/install/jakarta-tomcat-4.1.12/webapps/examples">
    Options Indexes FollowSymLinks
    DirectoryIndex index.html index.htm index.jsp
    </Directory>
    # Deny direct access to WEB-INF and META-INF
    <Location "/examples/WEB-INF/*">
    AllowOverride None
    deny from all
    </Location>
    <Location "/examples/META-INF/*">
    AllowOverride None
    deny from all
    </Location>
    JkMount /examples/jsp/security/protected/j_security_check ajp13
    JkMount /examples/snoop ajp13
    JkMount /examples/servlet/* ajp13
    JkMount /examples/CompressionTest ajp13
    JkMount /examples/*.jsp ajp13
    JkMount /examples/servletToJsp ajp13
    JkMount /examples/SendMailServlet ajp13
    #################### localhost:/tomcat-docs ####################
    # Static files
    Alias /tomcat-docs "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs"
    <Directory "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs">
    Options Indexes FollowSymLinks
    DirectoryIndex index.html index.htm index.jsp
    </Directory>
    # Deny direct access to WEB-INF and META-INF
    <Location "/tomcat-docs/WEB-INF/*">
    AllowOverride None
    deny from all
    </Location>
    <Location "/tomcat-docs/META-INF/*">
    AllowOverride None
    deny from all
    </Location>
    JkMount /tomcat-docs/*.jsp ajp13
    #################### localhost:/manager ####################
    # Static files
    Alias /manager "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager"
    <Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager">
    Options Indexes FollowSymLinks
    DirectoryIndex index.html index.htm index.jsp
    </Directory>
    # Deny direct access to WEB-INF and META-INF
    <Location "/manager/WEB-INF/*">
    AllowOverride None
    deny from all
    </Location>
    <Location "/manager/META-INF/*">
    AllowOverride None
    deny from all
    </Location>
    JkMount /manager/html/* ajp13
    JkMount /manager/* ajp13
    JkMount /manager/*.jsp ajp13
    </VirtualHost>
    # BEGIN workers.properties
    # Setup for apache system
    # (optional) make this equal to CATALINA_HOME
    workers.tomcat_home=/install/jakarta-tomcat-4.1.12
    # (optional) make this equal to JAVA_HOME
    workers.java_home=/usr/java/j2sdk1.4.1_01
    ps=/
    worker.list=ajp13
    worker.ajp13.type=ajp13
    # Definition for Ajp13 worker
    worker.ajp13.port=8009
    # change this line to match apache ServerName and Host name in server.xml
    worker.ajp13.host=localhost
    # END workers.properties
    httpd.conf Excerpts
    ServerName localhost
    ServerAdmin root@localhost
    Listen *:80
    Port 80
    ScoreBoardFile /var/run/httpd.scoreboard
    NameVirtualHost 128.2.140.19
    # Where do we put the lock and pif files?
    LockFile /var/lock/httpd.lock
    PidFile /var/run/httpd.pid
    CoreDumpDirectory "/etc/httpd"
    # Documents
    DocumentRoot /var/www/html
    UserDir public_html
    IndexOptions FancyIndexing
    Include /install/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf
    I have really been stumped by this problem for the last two weeks and could do with some help before I give up entirely.
    Thanks,
    Rudolph

  • 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

  • Directory Editor Advanced Search Page

    Hi All,
    i tried to search for some user using the advanced search page in the Directory Editor. I added two search criteria and i thought that these criterias are logical And'ed like decribed in the sun manual. But it lokks like that the criteria are Or'ed.
    What is going wrong?
    THX
    Frank

    The advanced search control unfortunately hasn't seen any updates in years.  Your best bet is to develop your own app to handle this.
    Corey Roth - SharePoint Server MVP blog:
    www.dotnetmafia.com twitter: @coreyroth |
    SP2 Apps

  • Directory Editor adding object classes to the Extensions Tab

    I'm using Sun's Directory Editor web based product. Under the extensions tab lists the object classes you can add (obviously there are only a select few there). I would like to have shadowAccount available there. I have went through the installation and configuration guide but can't find how to do this. Just wondering if anyone knows how to add custom object classes to this tab.

    I'm using Sun's Directory Editor web based product.
    Under the extensions tab lists the object classes you
    can add (obviously there are only a select few
    there). I would like to have shadowAccount available
    there. I have went through the installation and
    configuration guide but can't find how to do this.
    Just wondering if anyone knows how to add custom
    object classes to this tab.this link has such an example:
    http://blogs.sun.com/kevlar/entry/directory_editor_tips
    Disclaimer: that's my feedback under the blog post. I'm trying to figure out how to use DE to maintain an extended schema that includes migrated NIS maps. The overall goal is to migrate from NIS to LDAP as a naming service AND create realistically easy method for day-to-day administration (constantly using the console is out of the question). I believe DE might provide a solution, if custom forms can be figured out. It's been very slow going.
    Does anyone else have examples of modifying Directory Editor forms? Any help would be appreciated.
    Thanks,
    Ron

  • Directory Editor problems

    I deployed Directory Editor (de.war) on my Solaris 10 x86 server with Sun Java Application Server Platform Edition 8.2. I can access the application through a browser for the initial Startup Properties. I add my Configruation Director Server information (another Solaris 10 server running Sun Java System Directory Server 5.2 Patch 6). I can see that ou=DML,ou=services is added to the root suffix. But the next screen should be Managed Directory and all I see is a blank page. Anyone know why this is? Thank you.
    -Swetal

    Can't find an issue related to this, please log a support case if you can.

  • Install jDK and  Tomcat on Solaris64

    1. hi all, before I always run JDK and tomcat on Win ,righ now I want to try them on Solaris64, I just wonder do I need to set path and classpath ? where and how to set it?
    2.on asp.net we can use free toollike WinMerge to comapre which part of code be change, in java or jsp , is there any this kind of free compare tool.
    thank you

    If you drop the /bin portion it should work. JAVA_HOME is the directory that the SDK installed in.

  • Simple setup problems with JSTL and Tomcat

    Hi all, I'm having some problems getting JSTL to work the 1st time. JSTL setup seems to be a common problem for relative newbies, but having read previous threads, I still haven't been able to solve my problem so hopefully someone can help:
    the jstl.jar and standard.jar are in my WEB-INF/lib directory, so I don't think it's a classpath problem.
    My jsp page has the following at the top:
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>Later, I reference a bean var with :
    <c:out value="My var is : ${var.property}"/>In my web.xml I have:
      <taglib>
       <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
       <taglib-location>/WEB-INF/lib/jstl.jar</taglib-location>
      </taglib>And I've placed the actual tld (c.tld) in the WEB-INF directory.
    On startup I get the error when compiling the JSP:
    No such tag out in the tag library imported with prefix c
    Can anyone help here?
    Thanks in advance,
    Mike

    I think this note from the JSTL mailing list by Shawn Bayern, one of the lead developers of Jakarta JSTL and the author of "JSTL In Action", will clarify it:
    http://www.mail-archive.com/[email protected]/msg04587.html
    Don't put that <taglib> in your web.xml. All the books tell you to do it, but Shawn Bayern has the right answer. The URI should be the one that's in the TLD JAR .tld files.
    I use JSTL and Tomcat 4.1.24 without the <taglib>, and it works fine. - MOD

Maybe you are looking for

  • I can´t use my creative cloud plan, that I paid, because haven´t the serial number?

    I can´t use my creative cloud plan, because haven´t the serial number? I have a mac pro. I paid the plan 2 months ago.

  • JCo Connection Not Proper!

    Hi, I am getting this warning message in the web dynpro screen while I am trying to run a particular method; Could not create JCOClientConnection for logical System: WD_MODELDATA_DEST - Model: class com.dow.dc.model.Model. Please assure that you have

  • Mac Pro 8 core Nehalem RAM upgrade

    Hi All, I own a 8 core 2.26 mac pro. Its Ram configuration is the most basic, 6G. I am looking to do some upgrade, and would love some pointers to do so. I work mainly with music, and I have been getting out of memory message from Logic Pro so I assu

  • Mysql Recordset help

    Can anyone help me sort this out. This code should spit out only the records that match a URK parameter $courscode but whatever I do it returns every record. I just can't figure out why? $query_rs_dates = sprintf("SELECT * FROM dates09 UNION SELECT *

  • SSHR - Termination

    Hi, We are working on SSHR, On Termination function everything is working fine as expected. After final approval by the supervisor ; termination details writing to database. I have question/clarification on termination process; Example an individual