Using ADF with Tomcat - A total beginner, lost

Hi all,
I am a complete beginner in Java using jDevaloper and java for web. I have being a desktop programmer. So I followed the jdeveloper tutorial Developing Rich Web Applications With Oracle ADF up to here . The small deference in my project is that it uses a mySQL database. When I tried to Run the project the Java SE crashed and the weblogic domain was not built. I tried many methods mentioned in the web but the Java keeps on crashing. I tried using both bundled JDK and JDK avilable in my machine but the crash continuous. So I decided to use tomcat.
So I have came up to creating the .war file. But when I started the tomcat I got this error;
SEVERE: Error configuring application listener of class oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack
I have gone out of choices. How should I correct this.
Thanks [Dana Singleterry|https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1] , [Terry Cho|http://javamaster.wordpress.com/category/java-programming/] and many others for their knowledge sharing.

hi manjulapra
manjulapra wrote:
... So I decided to use tomcat. ...The "Application Servers " section of the "Certification and Support Matrix " for "Oracle JDeveloper and Application Development Framework 11g Release 2 "
at http://www.oracle.com/technetwork/developer-tools/jdev/jdev11gr2-cert-405181.html#Application_Servers
currently has for "Tomcat 6 " and "ADF " the value "Not Supported ".
regards
Jan Vervecken

Similar Messages

  • Adv. of using apache with tomcat??

    can anyone pl tell me the advantages of using Apache with Tomcat in comarison to other web servers?
    Thanks

    The biggest advantages are that they are open source, so you don't have to pay a huge licence fee, and they are very stable. I don't know how they compare for speed - I know Apache is lightning when it comes to serving flat pages, there are no benchmarks yet for the new Tomcat because it was only released last monday. You can run them on linux or another unix variant, so they are more likely to be secure (windows servers are horrendously open to attack) and stable.

  • How to use ADF with weblogic Portal 10.3.2

    Hello All,
    I want to use ADF with Weblogic Portal 10.3.2. Can anyone guide me ?
    Thanks,
    *(' ')sman*

    Hello,
    To use ADF with WLP 10.3.2 you will need a WebCenter WSRP producer running the portlet, which you can then consume as a remote portlet in WLP. The documentation on how to do that is here:
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14235/chap_webcenter_interop.htm#BABDBJBD
    Kevin

  • How to use JMS with tomcat and Axis

    Hello
    I'm new in ii, so i'm still a little bit lost. I have been implementing web services with tomcat and Axis. However, these services are synchronous and I would like that some services were asynchronous.
    I've been reading about the topic and I've found that JMS is a good solution for it. I have already downloaded JMS in my computer but now I don't know what else to do. I've been trying to run the SimpleQueueSender.java example but I get the error:
    JNDI API lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    But I have attached all .jar from F:\Sun\MessageQueue\lib
    In addition to this, for my first webservices I used the Java2WSDL, WSDL2Java and AdminClient (axis tool) to create my web services bindings, stubs and skeletons and to deploy the web service on the server. Do I have to use them now with JMS? or now the deployment must be performed in a different way?
    Thank you in advanced,

    The error means that you have to specify the type and location of your jndi store. You could create a jndi.properties file and put two properties in it:
    java.naming.provider.url=file\\\:////var/jndi
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    for a file based jndi store. Then you have to make sure your jndi.properties file is in your CLASSPATH. Then you have to use something like imqadmin to create your jndi store and store in it your administrative objects like Queues and QueueConnectionFactories.

  • Using ADFS with SharePoint Foundation 2013?

    We have a WSS 3.0 web site used primarily for sharing documents with business partners who do not work for our company.  We plan on doing the 2 step upgrade to SharePoint Foundation 2013
    Our internal users also use it but normally just use internal network file shares if they aren't planning to share the documents with external users.
    Each business partner's company has a sub site within our main WSS site and documents are uploaded to that section of the site if we want to share documents with employees of that company. 
    Since we use AD for authentication, to make this work, we create AD user accounts for each external user and add them to a security group that gives them access to only their company's subsite on the main site.  
    We have to maintain their passwords, reset them and delete/disable them when that person no longer needs access.  Each business partner has a limit on the number of users who can get one of our AD accounts due to limits on the number of CALs available
    to them.  It is messy because these users often forget their passwords since they aren't using these accounts every day.  
    Is there a better way to do this so that we no longer have create and maintain user accounts for external users other than having to do a domain trust with all these other domains?
    I have heard of ADFS, but will it allow us to still control which sites and documents the external company users can access if we are not creating and managing the accounts and adding them to the correct security groups ourselves?
    We don't want every user from the partner's domains to be able to access the site.  If we use ADFS, how do we keep control of which external users have access to the site?

    Yes, you would add permissions just the same way you do with users from your local Active Directory. And yes, if you chose the email address to be the user's identifier, you would simply ask for the email addresses that you wanted and input those to the
    appropriate permissions on your SharePoint sites.
    You'll want to take a look at this:
    http://blogs.msdn.com/b/russmax/archive/2013/10/31/guide-to-sharepoint-2013-host-name-site-collections.aspx
    Also another thing to keep in mind is that you'll need to have those 3rd parties set up ADFS themselves, and you'll create an ADFS Trust between you and the 3rd party.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Using Eclipse with Tomcat

    I'm trying to get eclipse to work correctly with tomcat server. but when i create a project it creates it in my workspace folder and i can't run it on the server.
    I assume it has to create the project in the tomcat root directory in order for it to run properly but i don't know how to get eclipse to do this.
    Any help would be appreciated.

    What I use to do is
    File -> Export -> War File and it generates a war file. You set that war file in the webapps directory of tomcat and it self extracts the files in order to be used from the navigator

  • Using ADF with Eclipse

    Hi guys,
    I'm trying to create a sample project using ADF Faces (only the JSF components, no bindings or anything else). Target server is WebLogic 10.3 and IDE is Eclipse 3.4.
    First of all, I'm not entirely clear on the relationship between ADF Faces and Trinidad. I know that the former has been donated by Oracle to Apache and it later became the Trinidad project, but how is the current Trinidad project related to the ADF Faces components delivered with WebLogic 10.3? Is there any advantage in using the commercial distribution instead of Trinidad? As I said, we don't want to use the rest of the ADF framework (bindings and all).
    Secondly, my deployment has been failing for multiple reasons. The current situation has the WebLogic console displaying the following warning :
    28-Jan-2009 5:13:54 PM oracle.adfinternal.view.faces.renderkit.core.CoreRenderKit _addBasicHTMLRenderKit
    WARNING: Could not find basic HTML renderer for family javax.faces.SelectMany, type=javax.faces.Checkbox
    When I try to load the page, the console shows the following error:
    java.lang.NullPointerException
         at com.sun.faces.renderkit.RenderKitUtils.getResponseStateManager(RenderKitUtils.java:253)
         at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:267)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:172)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    My current setup is as follows:
    - WebLogic 10.3 with latest patches
    - domain is configured to support Application Development Framework (is this necessary?)
    - web.xml declares:
    * context-param: oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER = com.sun.facelets.FaceletViewHandler
    * filter: adf-filter = oracle.adf.view.faces.webapp.AdfFacesFilter
    * servlet: faces-servlet = javax.faces.webapp.FacesServlet (load-on-startup = 1)
    * servlet: adf-resources-servlet = oracle.adf.view.faces.webapp.ResourceServlet
    * listener: com.sun.faces.config.ConfigureListener
    - weblogic.xml declares:
    * library reference to JSF 1.2
    - faces-config.xml declares:
    * default-render-kit-id = oracle.adf.rich
    - JAR dependencies:
    * adf-faces-api
    * adf-faces-impl
    * adf-share
    * adf-facelets
    * jsf-facelets
    Does this setup make any sense at all?
    Thanks,
    GB

    Hi Shay,
    Thank you for your answers. The ADF-Trinidad relationship is now clear to me.
    I have installed JDeveloper 11g and succeeded in creating a simple ADF Faces application then deploying it to a stand-alone WebLogic instance. I've learned through the process that even JDeveloper struggles to deploy the application as a WAR, and only succeeds when deploying it as an EAR file.
    I am now trying to upgrade this simple application to use Facelets instead of JSPs. JDeveloper 11g has Facelets support but it seems that it cannot mix Facelets and ADF components - after creating a new Facelets page, the Resource Palette only shows standard JSF components and the ADF Faces components are nowhere to be found. Surely I must be missing something?
    Given this, I tried updating my setup to include Facelets rendering but I'm running into more troubles. I get one of 2 results depending on how I configure the servlet mapping for the Faces servlet.
    1. If I map the Faces servlet to /faces/*, the page renders, normal HTML tags are rendered but all JSF tags (standard and ADF) are not rendered, they are simply copied verbatim to the web page (as seen in the HTML source). I also get the following message in the console:
    30-Jan-2009 9:42:21 AM oracle.adfinternal.view.faces.activedata.SessionDataUpdateManager __getPageDataUpdateManager
    SEVERE: cannot register active data when window has no name2. If I map the Faces servlet to *.xhtml, I get the following exception:
    java.lang.IllegalStateException: No FacesContext available
         at oracle.adf.view.rich.context.AdfFacesContext.getViewScope(AdfFacesContext.java:232)
         at oracle.adfinternal.view.faces.context.RichPhaseListener.afterPhase(RichPhaseListener.java:336)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)The console also shows this:
    30-Jan-2009 9:46:15 AM org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit encodeFinally
    WARNING: No RenderingContext availableFor both settings, I tried invoking the application using 2 different URLs, namely http://localhost:7001/app1/views/public/login.xhtml and http://localhost:7001/app1/faces/views/public/login.xhtml
    My web.xml now looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">
         <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
         </context-param>
         <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>client</param-value>
         </context-param>
         <context-param>
              <param-name>com.sun.faces.validateXml</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <param-name>com.sun.faces.verifyObjects</param-name>
              <param-value>true</param-value>
         </context-param>
         <context-param>
              <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
              <param-value>com.sun.facelets.FaceletViewHandler</param-value>
         </context-param>
         <servlet>
              <servlet-name>faces-servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>faces-servlet</servlet-name>
              <url-pattern>*.xhtml</url-pattern>
         </servlet-mapping>
         <servlet>
              <servlet-name>adf-resources-servlet</servlet-name>
              <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>adf-resources-servlet</servlet-name>
              <url-pattern>/adflib/*</url-pattern>
         </servlet-mapping>
         <servlet>
              <servlet-name>trinidad-resources-servlet</servlet-name>
              <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>trinidad-resources-servlet</servlet-name>
              <url-pattern>/adf/*</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>trinidad-resources-servlet</servlet-name>
              <url-pattern>/adr/*</url-pattern>
         </servlet-mapping>
         <filter>
              <filter-name>adf-library-filter</filter-name>
              <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>adf-library-filter</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>
         <filter>
              <filter-name>trinidad-filter</filter-name>
              <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>trinidad-filter</filter-name>
              <servlet-name>faces-servlet</servlet-name>
         </filter-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
    </web-app>Am I missing some setting here?
    Thanks a bunch!
    GB

  • To use ADF with other Development tool

    Can I plug the the ADF framework into other development tools such as the IBM's[b] websphere studio and Borland's JBuilder?
    (Currently neither the WebSphere Studio nor the JBuilder, to the best of my knowledge, has the capability of the ADF has. Basically, with those tools you have to write a lot of codes to do the database updates, etc.)
    Thanks.

    ADF is a bunch of Jar files and the application is a bunch of Java and XML files - so yes you can take this and use any IDE to edit the files.
    But currently JDeveloper is the only tool that has the visual development environment for ADF.

  • Use JSTL with Tomcat 4.1.x

    Hi,
    I've had a look at various tutorials and documentation and must be missing something obvious.
    I haven't been using them before so what do I need to add to Tomcat to make it work.
    So far I've put a JSP file in with this:
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <c:redirect url="welcome.html"/>
    When I run it I get this error:
    org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
    I expect I have to put a JAR or a TLD file somewhere. If so, could someone tell me what and where.
    Thanks

    Download the source from the link that you got the jar from. The tld's are in there. What I do is put the tld's in a tld folder in WEB-INF. Then I change the web.xml file to reflect this.
    <taglib>
        <taglib-uri>/tags/core</taglib-uri>
        <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
    </taglib>Then I change the uri to point to the tld's on my server instead of sun's server in my jsp, like this:
    <%@ taglib uri="/tags/core" prefix="c" %>it points to the uri in my web xml

  • ClassCastException using HttpsURLConnection with Tomcat 4.1.27

    Hi,
    I try to open an SSL connection using HttpsURLConnection that works fine with a standalone application (see code fragment):
    import javax.net.ssl.HttpsURLConnection;
    import java.net.*;
    import java.io.*;
    URL website = new URL( "https://aSampleSSLSite" );
    HttpsURLConnection connection = ( HttpsURLConnection ) website.openConnection();
    Using the same code in Tomcat 4.1.27 and Struts 1.1 throws a java.lang.ClassCastException while trying to use website.openConnection().
    What is the difference?

    Hi,
    I'm using JDK 1.4.2 and haven't installed JSSE separately at all. Actually I really use javax.net.ssl.HttpsURLConnection. However, I tried com.sun.net.ssl.HttpsURLConnection as well and got a 'java.net.SocketException: Default SSL context init failed' instead of.
    Oddly enough the code works fine in a standalone application.

  • Problem when using Logger with Tomcat and eclipse

    Hi, Iam using Tomcat 5.5.7 and my IDE is eclipse.Iam using java.util.logging.Logger class for logging.Iam putting the properties file in Appname/WEB-INF directory.The properties file is not identified.The error Iam getting is Error initialising log file java.lang.NullPointerException and java.io.FileNot FoundException
    The content of my logging.properties file is
    java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=SEVERE java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.level=ALL java.util.logging.FileHandler.pattern=%h/javalogs%u.log java.util.logging.FileHandler.append=true java.util.logging.FileHandler.count=1
    My servlet is
    import java.io.*;
    import java.util.logging.*;
    import java.util.logging.Logger;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorldServlet extends HttpServlet
          public void init(ServletConfig config) throws ServletException
               try
                         String file=getServletConfig().getInitParameter("java.util.logging.config.file");
                        InputStream is = getServletContext().getResourceAsStream(file);
                        LogManager.getLogManager().reset();
                          LogManager.getLogManager().readConfiguration(is);
               catch(Exception e)
                    System.out.println("Error initialising log file"+e);
          public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException 
                   final Logger fLogger =
                 Logger.getLogger(HelloWorldServlet.class.getName());
                 PrintWriter  out; 
                 String title = "Simple Servlet Output";
                // set content type and other response header fields first                                   
                // then write the data of the response
                 response.setContentType("text/html");
                 fLogger.finest("this is finest");
                 fLogger.finer("this is finer");
                 fLogger.fine("this is fine");
                 fLogger.config("this is config");
                 fLogger.info("this is info");
                 fLogger.warning("this is a warning");
                 fLogger.severe("this is severe");
                 out = response.getWriter();
                out.println("<P>This is output from SimpleServlet!!!!!!!!.");  
    }My web.xml file is
    <!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>
        <init-param>
         <param-name>java.util.logging.config.file</param-name>
         <param-value>/WEB-INF/classes/logging1.properties</param-value>
        </init-param>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>HelloWorldServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
    </web-app>Can anybody help me out.

    Hi, Iam using Tomcat 5.5.7 and my IDE is eclipse.Iam using java.util.logging.Logger class for logging.Iam putting the properties file in Appname/WEB-INF directory.The properties file is not identified.The error Iam getting is Error initialising log file java.lang.NullPointerException and java.io.FileNot FoundException
    The content of my logging.properties file is
    java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=SEVERE java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.level=ALL java.util.logging.FileHandler.pattern=%h/javalogs%u.log java.util.logging.FileHandler.append=true java.util.logging.FileHandler.count=1
    My servlet is
    import java.io.*;
    import java.util.logging.*;
    import java.util.logging.Logger;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorldServlet extends HttpServlet
          public void init(ServletConfig config) throws ServletException
               try
                         String file=getServletConfig().getInitParameter("java.util.logging.config.file");
                        InputStream is = getServletContext().getResourceAsStream(file);
                        LogManager.getLogManager().reset();
                          LogManager.getLogManager().readConfiguration(is);
               catch(Exception e)
                    System.out.println("Error initialising log file"+e);
          public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException 
                   final Logger fLogger =
                 Logger.getLogger(HelloWorldServlet.class.getName());
                 PrintWriter  out; 
                 String title = "Simple Servlet Output";
                // set content type and other response header fields first                                   
                // then write the data of the response
                 response.setContentType("text/html");
                 fLogger.finest("this is finest");
                 fLogger.finer("this is finer");
                 fLogger.fine("this is fine");
                 fLogger.config("this is config");
                 fLogger.info("this is info");
                 fLogger.warning("this is a warning");
                 fLogger.severe("this is severe");
                 out = response.getWriter();
                out.println("<P>This is output from SimpleServlet!!!!!!!!.");  
    }My web.xml file is
    <!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>
        <init-param>
         <param-name>java.util.logging.config.file</param-name>
         <param-value>/WEB-INF/classes/logging1.properties</param-value>
        </init-param>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>HelloWorldServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
    </web-app>Can anybody help me out.

  • Use ADF with jdeveloper

    I no found the 'Fusion Web Application' (ADF) template in the JDeveloper 10.1.3.4. to create a project using oracleADF, please help me
    Thank you very much

    You are looking in a tutorial for version 11g - and using 10.1.3 so you won't see the same things.
    In 10.1.3.4, assuming you installed the Studio version, you'll see a template called Web Application [ADF BC, JSF] which is the parallel one.

  • Using JavaMail with Tomcat and JNDI

    I have a web application and I want to make use of JNDI Mail Sessions for sending email in my Web Appln.
    I am using Tomcat4.0.1
    In my server.xml file I declared a resource as follows:
    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
         <parameter>
         <name>mail.smtp.host</name>
         <value>mail.abc.com</value>
         </parameter>
    </ResourceParams>
    Now Inside my jsp/servlet code i can use something like this:=
    // Acquire our JavaMail session object
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    Session session = (Session) envCtx.lookup("mail/Session");
    // Prepare our mail message
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    InternetAddress dests[] = new InternetAddress[]
    { new InternetAddress(to) };
    message.setRecipients(Message.RecipientType.TO, dests);
    message.setSubject(subject);
    message.setContent(content, "text/plain");
    // Send our mail message
    Transport.send(message);
    But my smtp mail provider uses Authentication.
    So I am looking of some way wherein I can provide the user and password information in the server.xml file itself along with smtp provider.
    My Query is How to do this as i dont see any references for using JavaMail sessions using Authentication
    Any Help highly appreciated
    Thanks
    Raj

    Isnt there anyone who can answer this question or its not a question worthwile
    Awaiting reply
    ...

  • Android & WM6.5 devices can't use ActiveSync with Exchange 2013, ADFS and WAP.

    Bit of a long winded title but I was trying to sum up the issue.
    Newly installed Exchange 2013 environment; we've setup external access for OA and ActiveSync.  We've used ADFS with WAP to publish the necessary paths etc.  We've setup DNS and firewall rules etc.
    OA is perfect and can be accessed by anything with a browser.  ActiveSync is perfect for any new Windows Mobile device and any iOS device.  When we've tried to sync older WM6.5 or any Android device, it just doesn't seem to want to work.
    We've checked logs on both devices; the WM6.5 complains about a cert issue however we've took every step from installing the CA, RA and actual cert on the device to no avail.  Some android device complain about using the port 443 but no matter what
    we change this to it still won't sync.
    Unfortunately my suggestion of 'just give everyone a new phone' went down as well as...well lets just say not good :)
    I appreciate this might be an ADFS\WAP issue but thought I'd rule Exchange out first so any advice is much appreciated.

    We are having issues on connecting ActivySync on Microsoft Exchange 2013.
    OWA,OutlookAnywhere is working
    ActiveSync is not working.
    can you help us or share the configuration.
    We have Used MS UAG2010 SP4 to publish Exchange 2013 SP1 (On premises).
    Regards,
    Furqan

  • Using mod_rewrite with mod_jk2

    Hi, recently i posted a query about how to manipulate url in tomcat. I'd found out that Apache server do have this mod_rewrite that allow URL to be manipulated before the server starts to look for the destination pages. But since my apps are running in Tomcat (it's servlets), is it possible that i use the mod_rewrite to change my URL that point to the web-apps in Tomcat? The scenario is:
    1) i have a servlet that sits inside Tomcat with /abc as the directory. Thus the URL that i can use to call it with Apache linked to Tomcat is:
    http://111.111.111.111/abc/myServlet
    2) Becoz of some external constraint i need to use a URL with the below format to call that servlet:
    http://111.111.111.111/234/aaa/bbb/ggg/hhh/abc/myServlet
    So is it possible for me perform this task???
    Thanks in advance.

    hi
    i am facing same kind of problem i using servlet with tomcat.using path
    http://192.168.0.112:8081/servlet/DispatcherServlet.can hide this path from address bar.

Maybe you are looking for

  • How to open a new JSP as a Popup

    Hello everybody, I have quite some experience working with java web dynpros, however I now have a requirement to work on an existing JSP page to add some new functionality, and I'm  a little bit lost since this is the first time I work with JSPs in S

  • Password controlled guest accounts on wireless router

    I would like to be able to grant guests temporary access to my home network without giving out my permanent WEP ID.  Is there anyway that I can create a guest account, with a separate password, which I can then eliminate after their need for access i

  • Finder will not copy more than one file at a time to another folder

    The Finder can't complete the operation because some data in "EMAP_14_map.pdf" can't be read or written. (Error code -36)

  • Music won't play in iTunes on computer

    When I play anything in iTunes, on my computer the play button changes like the song is playing but the song never starts. Music plays fine on all devices, but not my computer. HELP!! Thanks!!

  • Strange signal loss on 6020

    Sometimes my 6020 has a strange behavior. The signal lines drop from 7 to 0.. and after 5-10 seconds back to 7.. then maybe 3.. 0 again .. 7 again.. you get the idea. Because every time the phone gets the signal back some communication between the ph