TomCat 4.0 Directory problem

Whenever i want to run a jsp page i store it in
C:\jakarta-tomcat-4.0\webapps\examples\jsp\MyJsp
(MyJsp is the directory i 've created ) and have to type very long url as:
http://localhost:8080/examples/jsp/MyJsp/somePage.jsp
Is there any way so the i can just type a small url like
http://localhost:8080/MyJsp/SomePage.jsp
I also looked at server.xml but i did'nt get it.
Please solve my problem

For example if your jsp's are in c:\project\myjsp
Add the code below in server.xml in config directory.
<Context path="" docBase="c:\project" debug="9" reloadable="false">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="my_log." suffix=".txt" timestamp="true"/>
                    </Context>
if a page hello.jsp exist in myjsp folder , You can access the page
http://localhost:8080/myjsp/hello.jsp

Similar Messages

  • FAM 8.0, Tomcat J2EE agent installation problem

    Hello:
    I was able to install FAM 8.0 in Tomcat 6.0.14 on Ubuntu (7.04) Linux. Everything seems fine. In the end, the applications I want to use with OpenSSO also make use of Tomcat 6.0.14. I noticed on the opensso users email list that the Tomcat 3.0 agent won't be available until early next year; but that the 2.2 agents should work with FAM 8.0. So, I got the the J2EE agent for Tomcat - SJS_Tomcat_Server_55_agent_2.2-01.tar.gz. The documentation makes no references to Tomcat 6, and I'm hoping this is due to the fact that Tomcat 6 was not available when the documentation was written.
    Does this agent work with Tomcat 6? I have this problem when installing the agent (agentadmin --install):
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Invalid directory specified for the $CATALINA_HOME environment variable
    Invalid CATALINA_HOME directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14I can see in debug/agentadmin.log the following:
    [05/24/2008 13:06:37:684 PDT] FileSystemValidator : Is directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? true
    [05/24/2008 13:06:37:686 PDT] HomeDirValidator : Is $CATALINA_HOME directory /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? false
    [05/24/2008 13:06:37:686 PDT] Invalid CATALINA_HOME directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14This directory does indeed exist, and is accessible by the user I'm logged in as. It appears FileSystemValidator agrees with me, but HomeDirValidator has a problem. I tried this on both Ubuntu 6.04 and Mac OS X 10.5.2. Does this indicate that Tomcat 6 is not supported? Or is it indicative that neither OS on which I've tried to install the agent is officially supported?
    Thanks!
    Jeff

    Hi Denis:
    Before being redirected to another short term task, I did indeed get the Tomcat 6 agent to work. I probably won't be able to look at OpenSSO again seriously for another couple of months. :(
    I have the OpenSSO server running on Tomcat 6.0.14 on Ubuntu 6.x Linux running in a virtual machine on my Mac. I was not able to get the server to run directly on the Mac, and I cannot remember the reason at this time.
    But, as far as the agent goes, I run it again using Tomcat 6.0.14 on my Mac (Mac OS X 10.5.2), using the 1.5 JRE. I do have the agentapp war deployed as well as the agentsample web application to play with. In my catalina.out file:
    Jun 18, 2008 10:07:20 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Jun 18, 2008 10:07:20 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentapp.war
    Jun 18, 2008 10:07:21 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentsample.war
    Jun 18, 2008 10:07:22 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8090
    Jun 18, 2008 10:07:22 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8011
    Jun 18, 2008 10:07:22 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16  config=nullI have no error messages is any Tomcat log file.
    I checked out the source code for the Tomcat v6 agent (2.2) on May 27, so I don't know how that compares to yours or what's been checked into CVS since my build. I also don't know what the OpenSSO NamingService is.
    I assume you used fully qualified domain names to specify the web application to be protected by agent as well as the OpenSSO server itself. The following is the output of the conversation when I run the agent installer script on my system. It has been redacted a bit (domain name and encryption key) to protect my client, but otherwise this is what I supplied to the installer:
    Enter the complete path to the directory which is used by Tomcat Server to
    store its configuration Files. This directory uniquely identifies the
    Tomcat Server instance that is secured by this Agent.
    [ ? : Help, ! : Exit ]
    Enter the Tomcat Server Config Directory Path
    [/opt/apache-tomcat-6.0.14/conf]: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Enter the fully qualified host name of the server where Access Manager
    Services are installed.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Host: login.opensso.example.com
    Enter the port number of the Server that runs Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services port [80]: 8080
    Enter http/https to specify the protocol used by the Server that runs Access
    Manager services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Protocol [http]:
    Enter the Deployment URI for Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Deployment URI [/amserver]: /opensso
    Enter the fully qualified host name on which the Application Server
    protected by the agent is installed.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Host name: analysis.opensso.example.com
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Choose yes to deploy the policy agent in the global web.xml file.
    [ ? : Help, < : Back, ! : Exit ]
    Install agent filter in global web.xml ? [true]:
    Enter the preferred port number on which the application server provides its
    services.                          
    [ ? : Help, < : Back, ! : Exit ]
    Enter the port number for Application Server instance [80]: 8090
    Select http or https to specify the protocol used by the Application server
    instance that will be protected by Access Manager Policy Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Preferred Protocol for Application Server instance [http]:
    Enter the deployment URI for the Agent Application. This Application is used
    by the agent for internal housekeeping.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Deployment URI for the Agent Application [/agentapp]:
    Enter a valid Encryption Key.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Encryption Key [XXmyencryptionkeyXX]:
    Enter a valid Agent profile name. Before proceeding with the agent
    installation, please ensure that a valid Agent profile exists in Access
    Manager.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Profile name: testagent1
    Enter the path to a file that contains the password to be used for identifying
    the Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the path to the password file: /Users/jas/Development/opensso/tryout/agent_password
    SUMMARY OF YOUR RESPONSES
    Tomcat Server Config Directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Access Manager Services Host : login.opensso.example.com
    Access Manager Services Port : 8080
    Access Manager Services Protocol : http
    Access Manager Services Deployment URI : /opensso
    Agent Host name : analysis.opensso.example.com
    $CATALINA_HOME environment variable :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Tomcat global web.xml filter install : true
    Application Server Instance Port number : 8090
    Protocol for Application Server instance : http
    Deployment URI for the Agent Application : /agentapp
    Encryption Key : XXmyencryptionkeyXX
    Agent Profile name : testagent1
    Agent Profile Password file name :
    /Users/jas/Development/opensso/tryout/agent_password
    Verify your settings above and decide from the choices below.
    1. Continue with Installation
    2. Back to the last interaction
    3. Start Over
    4. Exit
    Please make your selection [1]: 1
    Updating the
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/bin/setclasspath.sh
    script with the Agent classpath ...DONE.
    Creating directory layout and configuring Agent file for Agent_001
    instance ...DONE.
    Reading data from file
    /Users/jas/Development/opensso/tryout/agent_password and encrypting
    it ...DONE.
    Generating audit log file name ...DONE.
    Creating tag swapped AMAgent.properties file for instance Agent_001 ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Realm to Server XML file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Adding filter to Global deployment descriptor file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Filter and Form login authentication to selected Web
    applications ...DONE.
    SUMMARY OF AGENT INSTALLATION
    Agent instance name: Agent_001
    Agent Configuration file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/config/AMAgent.properties
    Agent Audit directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/audit
    Agent Debug directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/debug
    Install log file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/logs/audit/install.log
    Thank you for using Access Manager Policy Agent
    [jaslap:tryout/tomcat_v6_agent/bin] jas% Can you post the exception details you're getting. That might help someone diagnose the problem.
    Take it easy,
    Jeff

  • ITunes Directory Problem

    I recently installed Windows Vista Service Pack 1 on to my laptop. After the install I can't open itunes. Now, I uninstalled service pack 1 and uninstalled Quicktime and iTunes. Now, after downloading the newest version of iTunes...it seems I have a directory problem.
    The error msg reads: An error occurred while attempting to create the directory: C:\ProgramData\Apple Computer\Installer Cache\QuickTime 7.50.61.0
    It was also saying the same thing about iTunes directory. I talked to people from apple and microsoft...nobody has an answer. I need help!
    Thanks in Advance,
    Adam

    I agree that this is a huge problem. If the network directory isn't immediately found, iTunes reverts to its default. There may be other conditions under which this happens as well because it sometimes seems to occur even when the network drive should be visible. It causes huge headaches. My wife wants me to nix the network drive and just put all our music on our laptop--which is not something we should have to do in this year of 2007. They need to fix this. iTunes made my wife cry.

  • Unable to locate Tomcat's "conf" directory

    Hi all,
    I would preciate your help on it:
    I have installed Tomcat 3.3.1. When I trued to start Tomcat
    from MSDos Prompt I got message:unable to locate Tomcat's "conf" directory, check the value of TOMCAT_HOME:
    This is my TOMCAT_HOME but I dont' see what is the mistake:
    c:\jakarta\jakarta-tomcat-3.3.1;c:\jakarta\jakarta-tomcat-3.3.1\conf;c:\jakarta\jakarta-tomcat-3.3.1\lib\tomcat.jar;
    This is Path:
    c:\j2sdk1.4.0\bin;c:\j2sdk1.4.0\lib;c:\j2sdk1.4.0\jre;c:\%JAVA_HOME%\bin;;%JAVA_HOME%\lib;c:\jakarta\jakarta-tomcat-3.3.1\bin;
    Regards,
    Kovac

    Hi,
    I think u have to set ur TOMCAT_HOME to c:\jakarta\jakarta-tomcat-3.3.1
    Also i dont understand the need of giving multiple values 4 the env var TOMCAT_HOME.
    This should help

  • Applet default directory problem

    Hi,
    I have a directory problem when my applet write a file on client box (permissions OK),
    the directory is always the window desktop!!!!
    Is there a method to change the default directory??
    Thanks for your time,
    JC2001

    Hi,
    Applets loaded into a Java-enabled browser can't write files.
    Sun's appletviewer allows applets to write files that are named on the
    access control list for writing. The access control list for writing is
    empty by default.
    You can allow applets to write to your /tmp directory by setting the
    acl.write property in your ~/.hotjava/properties file:
    acl.write=/tmp
    You can allow applets to write to a particular file by naming it
    explicitly:
    acl.write=/home/me/somedir/somefile
    Use : to separate entries:
    acl.write=/tmp:/home/me/somedir/somefile
    Bear in mind that if you open up your file system for writing by
    applets, there is no way to limit the amount of disk space an applet
    might use.
    I hope this will help you.
    Thanks
    Bakrudeen

  • Directory problem with tomcat

    Hi, i face a problem when trying to deploy my apps in tomcat4. Because my URL that point to my servlet is very long e.g.:
    http://222.222.222.222/abc/def/ghi/jkl/myServlet
    because of some constraint i need to put the myServlet in /jkl folder instead of /abc folder under webapps..... but in tomcat server.xml and web.xml for the apps i can't find the correct tag to set so that this is enabled..... is there any method to configure this??
    Thanx in advance for the help. :)

    http://222.222.222.222/abc/def/ghi/jkl/myServlet
    because of some constraint i need to put the
    myServlet in /jkl folder instead of /abc folder underI don't understand what kinda constraint would make someone tie to a long URL? Okay if abc is the web-app root directory, then you could place the servlet in the def.ghi.jkl package and configure the web.xml accordingly.
    ***Annie***

  • Compatible tomcat version for Directory server 6.3

    Dear All,
    Could someone please tell me which version of Tomcat will be the compatible for Directory Server 6.3. And i am new to this directory server environment, here i need to install tomcat too so kindly send me the steps for installing tomcat. Thanks!
    Regards,
    Karthik

    Hi Karthik,
    Directory Server 6.3 Control Center has been released many years ago, so it has been certified (so this means that IT IS OFFICIALLY SUPPORTED) on the most common application servers at that time, so Tomcat 5.5 and Sun App Server 8.2.
    Personally I've run the DSCC also on the latest releases of Tomcat (6.0.35 at the time of writing) and Glassfish (2.1.1 series) for test deployments absolutely fine; but in case of issues, if you want your solution to be 'officially supported' by Oracle, you've got to reproduce the problem on the supported app servers in the compatibility matrix.
    HTH,
    marco
    P.S.: also Directory Server 6.3 is getting older and older... at least try to get the latest patch: 6.3.1.1.1
    http://docs.oracle.com/cd/E19261-01/E26994/html/index.html
    The latest release is now 11.1.1.5.0 if you don't have any architectural/sw compatibility constraint, try to move/migrate to a more recent release

  • Tomcat 4.1 class problem. Doesn't identify the class.

    Hi
    I just installed J2SDK and tomcat in windows xp. I've made jsp files and beans. The first page is customerlogin.jsp which takes user id and password in a form. It sends the request to authenticate.jsp. Would you please give me a few important steps that need to be done?
    My directory structure is as follows:
    C:\Tomcat 4.1\Webapps\Log -> jsps
    c:\Tomcat 4.1\Webapps\Log\WEB-INF\classes\Log -> java beans
    The jsp doesn't find AuthenBean class. It complains about it.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /authenticate.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 4.1\work\Standalone\localhost\Log\authenticate_jsp.java:43: package Log does not exist
    Log.AuthenBean Authen = null;
    ^
    ******** AuthenBean is : *********
    package Log;
    public class AuthenBean{
         String userid;
         String password;
         public void setUserid (String tuserid) {
                   userid = tuserid;
         public void setPassword (String tpassword) {
                   password = tpassword;
         public String getUserid() { return userid; }
         public String getPassword() { return password; }
    ******** Authenticate.jsp ***********
    <jsp:useBean id="Authen" class="Log.AuthenBean" scope="session"/>
    <jsp:useBean id="select" class="Log.ExecuteQuery"/>
    <jsp:setProperty name="Authen" property="*"/>
    <%
    String id = Authen.getUserid();
    String passwd = Authen.getPassword();
    out.print("User id is " + id);
    out.print("Password is " + passwd);
    %>
    <%@ page import="java.util.Vector" %>
    <% Vector aResult = select.getResult();
    select.connect();
    boolean idCheck = false;
    String query = new String();
    query = "SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, PASSWORD, COUNTY, AREA FROM EMPLOYEE, LOCATION WHERE EMPLOYEE_ID = '" + id + "' AND PASSWORD = '" + passwd + "' AND (EMPLOYEE.LOCATION_ID = LOCATION.LOCATION_ID)";
    select.select(query, 6);
    select.disconn();
    int size = aResult.size();
    if(size > 0){
    idCheck = true;
    if(idCheck)
         session.setAttribute("loginId",id);
         session.setAttribute("firstName",(String)aResult.elementAt(1));
         session.setAttribute("lastName",(String)aResult.elementAt(2));
         session.setAttribute("county",(String)aResult.elementAt(4));
         session.setAttribute("area",(String)aResult.elementAt(5));
    %>
    <jsp:forward page="customer.jsp"/>
    <%
    else
    String error_msg = "Error: User Authentication Failed!";
    String link = "customerlogin.jsp";
    session.setAttribute("prevPage", link);
    session.setAttribute("errorMsg", error_msg);
    }%>
    ****** web.xml in Log\WEB-INF is **********
    <?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>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    Your help would be appreciated
    Thanks!

    Your problem is in web.xml. Only servlet classes need to be mapped. Your bean class should not be.
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    If you have only jsps, u mau use
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    Hope it works.
    Hafizur Rahman
    SCJP

  • Tomcat and JavaMail Sessions problem

    I'm using Tomcat (with struts). I've configured my web application in server.xml to manage JavaMail Sessions:
              <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
              <ResourceParams name="mail/Session">
                   <parameter>
                        <name>mail.smtp.host</name>
                        <value>gandalf</value>
                   </parameter>
              </ResourceParams>
    Also, I've configured my web application deployment descriptor (web.xml) to use this resource:
    <resource-ref>
         <description>JavaMail Resource</description>
         <res-ref-name>mail/Session</res-ref-name>
         <res-type>javax.mail.Session</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    Now in the Java code I try to get the JavaMail session in this way:
    private Context devuelveContexto() throws javax.naming.NamingException
    initContext = new InitialContext();
    return (Context) initContext.lookup("java:/comp/env");
    public javax.mail.Session devuelveSesionMail()
    throws javax.naming.NamingException
    Context envContext = devuelveContexto();
    javax.mail.Session mailSesion = (javax.mail.Session) envContext.lookup("mail/Session"); <--- this throws an exception
    I'm doing all like is explained in Tomcat help web page 'JNDI Resources HOW-TO' but it doesn' work for me.
    The exception raised is this:
    java.lang.reflect.InvocationTargetException: java.lang.ClassCastException: javax.mail.Session
         at com.aplicacionesweb.evaluaciones.ddbb.CargadorRecursos.devuelveSesionMail(CargadorRecursos.java:76)
         at com.aplicacionesweb.evaluaciones.fases.actions.ConcertacionAction.enviarCorreo(ConcertacionAction.java:562)
         at com.aplicacionesweb.evaluaciones.fases.actions.ConcertacionAction.grabarConcertacion(ConcertacionAction.java:510)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.struts.actions.DispatchAction.perform(DispatchAction.java:236)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
    Please help.

    Problem solved. I had 'mail.jar' and 'activation.jar' in 'WEB-INF/lib' directory, causing a classes conflict.

  • SharePoint Foundation Active Directory Problem

    Hey,
    I have a problem with the Active Directory connection to SharePoint Foundation.
    My Situation looks like this:
    I'm working on a kind of project controlling plattform. Each of our customers has its own site. Also each customer has an account in our Active Directory. For the administrative part, we have a list which contains some infos of the customer, the url to its
    site and the contact person.
    I wrote an import-script which creates a site and a new item in the list. To put the contact person in the list-item, I use a code-snippet like this:
    try
    user = web.EnsureUser(loginName);
    catch (Exception ex)
    throw new Exception("LoginName " + loginName + " not found");
    Now the problem is, that the try/catch block fails too often which means: SharePoint doesn't know the loginNames of some of our customers.
    Why does SharePoint not know maybe 1/5 of all our customers? All of them have an account in our active directory, none of them ever logged in the SharePoint (at the time they even doesn't know, that they have a SharePoint site for this project).
    I searched the internet for the problem but all I found where questions related to the synchronization of ad-properties to SharePoint Foundation. But I don't want to sync the phone-number or something like that - I want SharePoint only to know all the loginNames
    of our customers, not only 1/5 of them.
    How do I achive this, what am I doing wrong?
    Thank you!

    web.EnsureUser has nothing to do with the UPS at all. This has nothing to do with synchronisation (it does have a role but it's a maintenance one and nothing to do with authentication.
    The simplest answer is that the login names are being entered wrongly. Having said that there are a few areas you can look at to try to identify the problem:
    Does it fail repeatedly for the same username? Can you add that user to the site manually using a people picker control and if so will the script work afterwards? Are there any trends in the user accounts that SharePoint cannot find?

  • 10.4.6 and Active Directory Problem - Volume cannot be found??

    I have bound six 10.4.6 to active directory. All went sweet with no problems. I have "force local home folder" off in Directory Access for AD. I can login to the Mac no problem using any user account from AD. If I login with a user the first time all goes well. The desktop icons show and the home directory is that of the users network home folder and can browse it. All good until I log out and login again. I get the desktop icons but the users home directory give the error "The Volume for %username% Cannot be found" when trying to access. I can browse the network to the user home folder without having to authenticate. The server (2003) shows no login errors, all looks fine. I have upgraded one Mac to 10.4.7 but made no differnce.
    I have installed "services for Mac and Appletalk" on the server but from what I have been told this shouldn't need to be installed but I did as I was getting no where anyway.
    Any ideas?
    PowerPC   Mac OS X (10.4.6)  

    Hi Chris!
    Before I comment, I want to define a couple of things. A "Mac home folder" stores a user's files (Documents, Library, etc.). This home folder can be stored locally on the workstation or it can be stored on a server. A "Windows home folder" is defined in a user's Active Directory account and can be used as the Mac home folder or simply as a network user folder for storage.
    While the idea of a network-based Mac home folder is nice, it can be clunky simply because the entire user experience is dependent on network speed and/or good file synchronization between your server and workstation. As someone who works in a group supporting about 300 Macs, I suggest enabling local home folders and not using a network-based Mac home folder.
    Next, File Services for Macintosh (AFP protocol) built into Windows Server will not support network-based Mac home folders. This is a dead end. You can install a third party product from Group Logic called ExtremeZ-IP, which does support network-based home folders over AFP.
    Therefore, what's happening in your network is that the network-based Mac home folders are being mounted via the SMB protocol, which uses Windows style file sharing. SMB in Mac OS X is good for limited use but I wouldn't recommend it for extensive use, which would include network-based Mac home folders.
    Here's what I suggest for your AD settings: 1.) Enable local home folders. 2.) Connect via SMB. This will keep your users' Mac home folders local to the machine but if their Windows network home folder is properly defined in their AD account settings then these should automatically mount on the Desktop via SMB at login.
    If you can get your Windows home folders to mount automtically on the users' Desktops then you can experiment with synchronization. After logging in, each user can visit Apple menu --> System Preferences... --> Accounts and the synchronization options will be available. A user can synchronize all or part of his local Mac home folder to his mounted Windows home folder.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • 10.5.5 Active directory problem for mobile users

    I an running 10.5.5 on a MBP 2.4. The computer is attached to Active Directory for authentication. The accounted is setup as a mobile user with automatic home sync. Below is the problem I'm experiencing after 10.5.5.
    Upgrade worked fine, everything went through as expected. When I got home with computer, couldn't login. I did eventually get logged in, computer became extremely unresponsive at intermittent times.
    At work next day, everything worked fine.
    I believe this is a problem with 10.5.5 computers that are bound to AD, when AD is not available (but internet is.) Some type of weird priority locking or timeout setting? It seems to fail immediately if no network is available, but if the internet is available it is like it gets "hung" waiting for a response.
    Anybody else having similar problems?
    Below are the details on the specific tests that brought me to this conclusion.
    1) Boot with work network cable connected - Works fine
    2) Boot with work wifi network enabled - works fine
    3) Boot with public wifi network enabled and work cable - works fine.
    4) Boot with only public wifi - appears "frozen" (turned off after 5 minutes of trying to login)
    5) Boot without network or wifi - works fine using cached mobile account info
    6) Boot with network cable and public wifi, remove network cable after login- works fine for a period becomes periodically frozen. attempts to do anything become queued, when computer starts responding queue emptys out (can see menus / applications switch around to correspond with clicks.)
    7) Change account to Manual sync of mobile account, again boot with network cable and public wifi, remove network cable- no freezing responds normaly.
    All steps repeated after rebinding computer to AD - same results.

    First rule of installing an upgrade, run permissions repair both before & after. Did you do that?
    I'm using a Mac dual bound to AD & OD, works perfectly. I can't speak for the exact setup of your network but I personally would be suspicious of AD. I had a similar issue some time back where my processor would go crazy with the net directory authentication running like crazy. Turned out AD had somehow forgotten my computer. It only happened away from work where my Mac couldn't contact the AD server (not exactly sure why). I'd try the following.
    1. While at work create a local administrative account on your Mac (you should always have a backup account anyway).
    2. Login as local admin account.
    3. open Directory Utility from the Applications/Utilities folder & remove the AD server (you'll need an account that can bind machines to AD).
    4. re-add your Mac to AD.
    This may resolve your issue & shouldn't hurt anything in the least.

  • Binding to Active Directory Problem. I am a Newb! probably something stupid

    Hey All,
    Trying to get my apple xsever to join our windows domain. I got it to bind and the user accounts show up on the machine but then it askes me to join it to the Active Directory Kerberos realm. I am confused.
    what i am trying to do is joint it to the windows domain for my admin account on the actual server and then set up local user accounts on the machine so when my mac users log in they authenticate using the local mac account and not the windows domain account. Does this make sense? From what i read macs authenticate using the local account before going to the windows account which is what i want. I am a total newb to this so forgive me for the stupid questions.
    cheers all,
    jess

    Hi
    set up the xserve as an Open directory Master
    will it place nice on the network
    with the rest of the windows servers that we have.
    There should be no problem in doing this. All you need to do is decide whether you want your Mac Server to run its own DNS Service or to use the existing DNS service being provided by the AD Server. Open Directory Master requires DNS Services running somewhere.
    i just want to have a mac studio of about 35 people be
    kind of an island within a sea of windows users. If
    there can be cross over there then fine.. but really
    i want the mac to work well with the apple server and
    if i can get the windows clients hooked up also then
    fine.
    There should be no problem with this.
    When you say studio do you mean a graphics design studio? Or are you talking about a video production studio? If the answer is yes to either one or both then perhaps a simple file server would do. An Open Directory Master is OK in this environment but your network needs to be up to job. Ideally gigabit ethernet certainly for video production and also if your studio are heavy photoshop users. You could get away with 100Base-T but with 35 heavy users editing files stored on the server as well as Home folders it may be a bit too much. If this is the situation in your studio you would be better placed working locally and saving the files back to the server at the end of the day. You would set up your users with names and passwords in the OD directory node. Your studio can use those account details to log on to the server to access share points but still work locally if they need to. If you start windows services on the mac server then there should be no reason for windows clients to access share points on the mac server as well. Be careful how you configure windows services as you already have existing PC servers on the network.
    As you have already stated your aim is to keep the macs completely separate from the PCs then consider connecting all your macs to a separate switch and have them running of a different IP address range and subnet mask. You could then use an intervening router to handle traffic between the two networks, this way you control cross platform access to shared resources. If you understand networks, routers etc then you should be able to accomplish this without too much trouble. Again searching the Server forums should give you plenty of ideas and advice on the best way to achieve what you want. As ever defining and deciding what you want you want the server to do is half the problem.

  • Java/Active Directory problem

    I have a strange problem. We have an application that we login to through a website. The application requires Java 1.42_9 to run properly. These workstations came from Dell with java 1.50_6 preloaded which I removed infavor of the required 1,42_9. Everything works normally when a user logs into the the workstation (WinXP SP2) as the local adminstrator. The problem arises when a user logs into the machine with an Active Directory account. We trying to run the website to login to our application and all we get is the Red X in the upper left hand corner of the screen. There is nothing in the Java console, it seems like java does not even attempt to start. I am not sure what Active Directory has to do with this but as long as we log in as a local admin everything works great. If I load Java 1.50_6 back on the workstation it works but it takes over two minutes for Java to load which is unacceptable. I have also tried 1.50_7 but it too take too long to load.
    Sorry for the long winded post, but Im hoping someone has suggestions on why logging into Active directory causes 1.42_9 to fail.

    Your problem is your use of these two combinations
    constrains.setSearchScope(SearchControls.SUBTREE_SCOPE);
    ctx.search("", "(objectclass=*)", constrains); Many LDAP servers, including Active Directory, do not permit subtree searches from the root.

  • LDAP Active Directory Problem

    Hi,
    i have a win 2003 server (german) and apex 3.x. I (hope i ) have read all postings to this topic. Read the Apex Book, tried the Oracle Examples but all examples i have found won´t work for me. After three hours i found one solution that works:
    (Domain: marco.de)
    create or replace FUNCTION check_ldap_user(
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    ) RETURN boolean IS
    l_session DBMS_LDAP.session;
    l_ret binary_integer;
    BEGIN
    l_session := DBMS_LDAP.init (
    hostname => '192.168.178.100',
    portnum => '389');
    IF (DBMS_LDAP.simple_bind_s (
    ld => l_session,
    --dn => 'cn='||upper(p_username)||',cn=user,dc=marco,dc=de', /* <= This line does not work */
    dn => upper(p_username), /* <= This Version work */
    passwd => p_password)) = 0 AND p_password IS NOT NULL THEN
    l_ret:=DBMS_LDAP.UNBIND_S(ld=> l_session);
    RETURN True;
    ELSE
    RETURN False;
    END IF;
    EXCEPTION WHEN OTHERS THEN
    dbms_output.put_line(sqlerrm);
    RETURN FALSE;
    END;
    The Question is, if there any problems with a german Active Directory Server (Mayby the groups like "Domänen-Admins" are the problem)
    Thanks
    Marco

    Hi,
    Any help?

Maybe you are looking for