Hi Stefan I also tried that url http://localhost:8080/ApacheDS/RootDse but the error is still this *description* *The requested resource (/ApacheDS/RootDse) is not available.*
My RootDseServlet class is in the path ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDseServlet, so I typed also this in the browser.And the error is > *description* _The requested resource
(/ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDseServlet)
is not available. as I said in previous mail.
Could you send me a running war file of this example, if it is available? May be the problem is about my classes which eclipse produced? Thanks.. On 5/22/07, Stefan Seelmann <[EMAIL PROTECTED]> wrote:
Hi Ceren, please check the web.xml, there you could find the URL pattern which is mapped to the RootDseServlet: ---------------------------------------------- <servlet-mapping> <servlet-name>RootDseServlet</servlet-name> <url-pattern>/RootDse</url-pattern> </servlet-mapping> ---------------------------------------------- So could you please try the URL http://localhost:8080/ApacheDS/RootDse ? Regards, Stefan Seelmann Ceren KOKSAL schrieb: > Hi > > When I type in the browser http://localhost:8080/ApacheDS/, I get the > message, > > *description* _The requested resource (/ApacheDS/) is not available ._ > > But according to Stefan's advice, I typed > http://localhost:8080/ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDseServlet > > and > http://localhost:8080/ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDse > < http://localhost:8080/ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDse > > > but I get similar messages > > *description* _The requested resource > (/ApacheDS/WebContent/WEB-INF/classes/org/apache/directory/samples/embed/webapp/RootDseServlet) > is not available. _ > > I'm sending the screen shot of project directory as attachment.Thanks.. > > On 5/22/07, *Emmanuel Lecharny* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Ceren, > > can you give us more information about the problem you get? Any kind > of tomcat logs could help a lot ! > > Thanks > > > Emmanuel > > On 5/22/07, *Ceren KOKSAL* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi > > Actually my first problem is to embed Apache Ds in my web > application.I read that article > http://directory.apache.org/apacheds/1.0/embedding-apacheds-as-a-web-application.html > < http://directory.apache.org/apacheds/1.0/embedding-apacheds-as-a-web-application.html> , > and I put it to practice but it didn't work. > I didn't compile the application by the build.xml. I used > Eclipse and set up a new project with the files in the > ApacheDSWebApp.zip^ > < http://directory.apache.org/apacheds/1.0/embedding-apacheds-as-a-web-application.data/ApacheDSWebApp.zip > > . > After Eclipse created the classes automatically, I created a war > file and deployed it to Tomcat 5.5 server. > I m taking the error, http 404, the requested resource is not > available. I couldn't find the problem.What can it be? Thanks.. > > > On 5/22/07, *Emmanuel Lecharny* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Ceren, > > in the code you pasted at the end of you rmail, you are > using the administrator to connect to the server. Even if > this is perfectly legal, I would not recommand to allow > users to do so, as they will gain full control over the > server, and then delete some vital information. > > The best solution would be to create a place in the DIT > where you store the users, with their password, and ask them > to authenticate with those informations. > > I will recommend you read the following page : > http://directory.apache.org/apacheds/1.0/31-authentication-options.html > < http://directory.apache.org/apacheds/1.0/31-authentication-options.html> > > where this authentication is described. > > I hope this is enough for your need, otherwise, please feel > free to post a new mail for more accurate informations. > > Thanks for using Apache Directory Server ! > > Emmanuel > > > On 5/22/07, *Ceren KOKSAL* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > > ---------- Forwarded message ---------- > From: * Ceren KOKSAL* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > Date: May 22, 2007 1:05 AM > Subject: Using Apache ds in a web application - user > names, passwords > To: [email protected] > <mailto:[email protected]> > > Hi > > I m using Apache ds 1.5 and trying to develop a web > application.I imported a uddi schema to Apache ds, I > created this schema, based on rfc 4403. > My problem about the application is that, users will > log on the apache ds by a web application using a web > browser.Then they will add and search web services > definitions, it will work as a web services registry.In > java code, while connecting to the server, I'm using > below code sample.Users will have user names and > passwords.How they will connect to the apache ds, using > their own user names and passwords? Will it be like > that, I'll connect to apache ds using the sample code > below.And then I'll take the user's password and user > name , I'll check if they are right or not.If right, > I'll give permission to make operations on directory.If > not, I will not .Or will the users connect to the > directory server with their own user names and passwords > without using the below code and the below security > options?I hope my question is clear:) Thanks a lot.. > > env.put(Context. > > /INITIAL_CONTEXT_FACTORY/, > "com.sun.jndi.ldap.LdapCtxFactory" ); > > env.put(Context. > > /PROVIDER_URL/, "ldap://localhost:10389/ou=system" ); > > env.put(Context. > > /SECURITY_AUTHENTICATION/, "simple"); > > env.put(Context. > > /SECURITY_PRINCIPAL/, "uid=admin,ou=system"); > > env.put(Context. > > /SECURITY_CREDENTIALS/, "secret"); > > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com <http://www.iktek.com/> > > > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com <http://www.iktek.com/> > > > > ------------------------------------------------------------------------ >
