Help on using Tomcat server

hi there
currently i am creating a web service running on Tomcat server. but it does not support the SOAP services. do i need a seperate package, if i need to send message using SOAP? if so, where can i get it.

http://xml.apache.org/soap/index.html
Jesper

Similar Messages

  • Calling a external Java method from JSP - using Tomcat server

    Hi all,
    I am trying to call a method in an external Java file from my JSP. I am using Tomcat server.
    I have my class within the package package "mypackage" and it is called myclass.class. It has only one static method mymethod() which reads from a file and writes to a file.
    I compiled the java class and I put the class file under webapps/ROOT/web-inf/classes/mypackage/myclass.class
    I am trying to say something like this from my JSP file(which is under webapps/ROOT) :
    <%@ page import = "mypackage.myclass"%>
    <% myclass.mymethod(); %>
    I am not instatiating the class as its a static method.
    This is what I get while accessing my jsp file :
    javax.servlet.ServletException: try to access class mypackage.myclass from class org.apache.jsp.index_005ftest_jsp
    To put my problem in a nutshell, Can someone guide me how to access a method of an external class from a JSP page? I have a bunch of pages doing the same operation so I thought I would have it in a method and call it from every page. Even though I tried to put the file under web-inf/classes, The JSP is not able to see the class.
    Please help.
    Thanks
    -Uday

    I have a situation that is a bit similar. I have successfully used beans for storing methods used in JSPs and used by other methods in the same class as was suggested above. Now I would like to break some methods into another (utility) class since they are lower level and can be used by lots of things. They are for database operations (given a String query and String dbname, it queries and returns ResultSet for example). I want to have them in a separate class for reusability and OOP.
    I am having problems calling those public static methods in the public class from my bean that communicates with the JSP. I can't compile the class that calls the method in the database ops class. I get an error like :
    loginHelper.java:45: cannot find symbol
    symbol : variable sqlHelper
    location: class dbHelperBean.loginHelper
    and when I include the package name in the call I get
    loginHelper.java:45: cannot find symbol
    symbol : class sqlHelper
    location: package dbHelperBean
    That's strange since the package of both classes is dbHelperBean and the class is indeed called sqlHelper. I tried to compile it in the same directory as sqlHelper as well. What am I doing wrong?
    Thanks for any help.

  • How to run jsp using  tomcat server?

    hai friends,
    i'm using jsp for my application and for that i'm using tomcat server.
    i was runing my jsp files like this
    http://localhost:8080/examples/jsp/myapp/index.jsp but instead of this
    i need to run my jsp files like this
    http://localhost:8080/myapp/index.jsp
    what r the changes that i should do in tomcat installation to run myapplication in such a way.
    thanks in advance

    you need to redefine the server root...
    for that do the following...
    copy all the directory tree rooted at
    JAKARTA-HOME/webapps/ROOT/examples/jsp/myapp/ to
    JAKARTA-HOME/webapps/ROOT/myapp/
    -OR-
    in the server.xml, search for "Tomcat Root Context" and un-comment the code defining Root Context...
    change the docBase value from "ROOT" to "ROOT/examples/jsp"
    that shud help...
    -Pranav
    hai friends,
    i'm using jsp for my application and for that i'm
    using tomcat server.
    i was runing my jsp files like this
    http://localhost:8080/examples/jsp/myapp/index.jsp but
    instead of this
    i need to run my jsp files like this
    http://localhost:8080/myapp/index.jsp
    what r the changes that i should do in tomcat
    installation to run myapplication in such a way.
    thanks in advance

  • How to attach a file to tomcat server using SERVLETS

    Hello friends,
    I want to enable users to attach a file and send it to my server. This is a very common feature seen anywhere like e-mail attachments.
    Iam using tomcat server. I tried HTTP put but it did not work.
    Please give some suggessions.
    Thanks
    Goldy

    check this url:
    http://www.servlets.com/cos/index.html
    follow the link MultiPartRequest
    Spieler

  • Running Tomcat server in Debug mode?

    Hi..
    I am using Eclipse IDE to develop a Portal project.. I am also using Tomcat server for the same without using the default servers provided by eclipse..
    My question is how do I run the Tomcat server in the "debug" mode?
    Please help me..

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Tomcat server 6.0.35 on jdeveloper 11.1.1.5

    Hi Experts,
    I am using tomcat server 6.0.35 and Jdeveloper 11.1.1.5 Trying to run my application on tomcat server but its not showing at all
    I have tried all the things which they showed on blogs but I don't know why it is not working out?
    In my tomcat Logs tomcat6 stderr it is showing like this
    2012-05-22 09:47:03 Commons Daemon procrun stderr initialized
    May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
    May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    May 22, 2012 9:47:05 AM org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    May 22, 2012 9:47:05 AM org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    May 22, 2012 9:47:05 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1333 ms
    May 22, 2012 9:47:05 AM org.apache.catalina.users.MemoryUserDatabase open
    WARNING: Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/allow-java-encodings
         at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:129)
         at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:556)
         at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:391)
         at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
         at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
         at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
         at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
         at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:747)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
    May 22, 2012 9:47:05 AM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor manager.xml
    May 22, 2012 9:47:06 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:06 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive webapp1.war
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [webapp1] startup failed due to previous errors
    May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    May 22, 2012 9:47:08 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:08 AM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    May 22, 2012 9:47:08 AM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    May 22, 2012 9:47:08 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2630 ms
    __In catalina folder it is showing like this__
    May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
    May 22, 2012 9:47:04 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    May 22, 2012 9:47:05 AM org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    May 22, 2012 9:47:05 AM org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    May 22, 2012 9:47:05 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1333 ms
    May 22, 2012 9:47:05 AM org.apache.catalina.users.MemoryUserDatabase open
    WARNING: Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/allow-java-encodings
         at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:129)
         at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:556)
         at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:391)
         at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
         at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
         at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
         at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
         at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
         at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:747)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 22, 2012 9:47:05 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
    May 22, 2012 9:47:05 AM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor manager.xml
    May 22, 2012 9:47:06 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:06 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive webapp1.war
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [webapp1] startup failed due to previous errors
    May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:07 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    May 22, 2012 9:47:08 AM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
    May 22, 2012 9:47:08 AM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    May 22, 2012 9:47:08 AM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    May 22, 2012 9:47:08 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2630 ms
    **In local host folder it is showing like this**
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
    java.lang.ClassNotFoundException: oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
         at org.apache.catalina.core.StandardService.start(StandardService.java:525)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    May 22, 2012 9:47:07 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)
    I do have a question whether Tomcat server will work on 11.1.1.5 or not
    If not which version of jdeveloper and tomcat can I use and make it work properly
    Can anyone help me out?
    Thanks in Advance
    Santosh

    I think that no one ADF version is certified to the tomcat container. If you want to deploy in tomcat you could use apache myfaces trinidad, which is the opensource ADF Faces donated from Oracle to the Apache Foundation.
    Regards,

  • How to connect to MS Access from servlet uploaded in TOMCAT server

    Hi,
    I want to access MS Access from servlet .I use TOMCAT server.I want to know what should i do.How to get drivers and how to set class path for them.
    Please help me in finding the solution
    thanks and Regards

    HI,
    try this
    <Code>
    response.setContentType(CONTENT_TYPE);
         PrintWriter out = response.getWriter();
         java.sql.DatabaseMetaData dm = null;
         java.sql.ResultSet rs = null;
         try
              Class.forName("sun,jdbc.odbc.JdbcOdbcDriver");
              Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:dsnName","","");
              dm = con.getMetaData();
              out.println("<html>");
              out.println("<head><title>Servlet1</title></head>");
              out.println("<body bgcolor=\"lightblue\">");
              if(con!=null){
                   dm = con.getMetaData();
                   out.println("<B><br>Driver Information</B>");
                   out.println("\n\t<br><br>Driver Name: "+ dm.getDriverName());
                   out.println("\n\t<br>Driver Version: "+ dm.getDriverVersion ());
                   out.println("\n\t<br>Database Information ");
                   out.println("\n\t<br>Database Name: "+ dm.getDatabaseProductName());
                   out.println("\n\t<br>Database Version: "+ dm.getDatabaseProductVersion());
                   out.println("\n\t<br><br>Avalilable Catalogs ");
                   rs = dm.getCatalogs();
                   while(rs.next()){
                             out.println("<br>\tcatalog: "+ rs.getString(1));
                   out.println("\n\t<br><br>conURL =" + conURL);
                   out.println("\n\t<br><br>Title = Database");
                   rs.close();
                   rs = null;
                   con.close();
              }else {
                   out.println("Error: No active Connection");
         }catch(ClassNotFoundException e) {
              out.println("Coudn't laod the database driver: " + e.getMessage());
         } catch(SQLException e) {     
              out.println("SQLException caught: " + e.getMessage());
              try {
                   if (con != null)
                        con.close();
                   if (rs != null)
                        rs.close();
              catch (SQLException ignored) {}
              finally {
                   try {
                             if (con != null)
                                  con.close();
                             if (rs != null)
                                  rs.close();
                        catch (SQLException ignored) {}
    </Code>
    Sachin

  • How to use Tomcat for naming services

    Hi,
    I want to use Tomcat server for a naming service,but how??.
    What i want to do is
    It will register 2 services to a the naming server.
    Later lookup for it from another code.
    I want to know how i can register the same using Tomcat...
    Thanks in Advance
    Mandrake

    http://tomcat.apache.org/tomcat-5.0-doc/jndi-resources-howto.html

  • Tomcat server as mailing services

    hii all,
    I'm building an application on office automation system. there 'll be mailing service, file transfer service etc.. I've decided to use tomcat server for this purpose. could you else please tell me whether i'm in the right way or not!
    thanks...
    Dev

    It depends of how advanced you want your mail server to be? If you simple wish to send emails that relay to an existing mail Server then this is very easy
    The following will allow you to send emails out using Java.
    package com.fluency.email;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class MailManager {
         private String Type = "text/html";
          * Send an email to the given rcpt
          * @param aFromEmailAddr
          * @param aToEmailAddr
          * @param aSubject
          * @param aBody
         public void sendEmail(String aFromEmailAddr, String aToEmailAddr, String aSubject, String aBody) {
             try {
                   Properties fMailServerConfig = new Properties();
                   fMailServerConfig.setProperty("mail.host", "192.168.2.10");
                   fMailServerConfig.setProperty("mail.from", aFromEmailAddr);
                   fMailServerConfig.setProperty("mail.smtp.user", aToEmailAddr);
                   Session session = Session.getDefaultInstance( fMailServerConfig, null );
                  MimeMessage message = new MimeMessage(session);
                 message.addRecipient(Message.RecipientType.TO, new InternetAddress(aToEmailAddr));
                 message.setSubject( aSubject );
                 //message.setText( aBody );
                 message.setContent(aBody, this.Type);
                 Transport.send( message );
               } catch (Exception e ) {
                    e.printStackTrace();
                    try {
                        throw(e);
                   } catch (Exception e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
         public void setContentType( String ct ) {
              if( ct.equals("text/plan") || ct.equals("text/html")) {
                   this.Type=ct;               
              } else {
                   ct="text/plan";
    }If you want to create an email server then I recommend you try to reverse enginer QMail. This is open Source so you can download the code and workout how this all works. As QMail splits it's self into pieces this makes it easier. You will also need a very good understanding of SMTP/IMAP/POP3 and TCP/IP to create these servers.
    I would personally create a relay system (Like Spamassasin Spamd) that forwards your constructed emails onto an existing server.
    There is no way to configure Tomcat to be an Email Server out of the box. It's a basic JSP/Java compiler with HTTP support (I am being very simplistic here so don't shout at me). not a mail system. However you can code Servlets to give it this support. Having multiple Tomcat servers running on the mail ports?
    PS None of this is a good idea!

  • Filesystemobject not run in tomcat server

    i have an html file , java script embeded in it, which creates a folder using filesystemobject. below is the code
    when i am running in internet explorer its working fine. when i am running using tomcat server erorr is coming.
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    </HEAD>
    <style>
    .Field {color: black; border: 1px solid #FFFFFF; background-color: #FFCC00;}
    .Find {color:blue; font: 10px Arial;}
    </style>
    <script>
    var Fo =new ActiveXObject("Scripting.FileSystemObject");
    var fPth;
    function createnewfolder(fPth)
    TextArea1.value = fPth;
    var newFolderName = Fo.CreateFolder(fPth);
    var newFolderName1 = Fo.CreateFolder(fPth + "\\RawData");
    var newFolderName2 = Fo.CreateFolder(fPth + "\\GCPData");
    var newFolderName3 = Fo.CreateFolder(fPth + "\\RectifiedData");
    var newFolderName4 = Fo.CreateFolder(fPth + "\\Maps");
    </script>
    <body>
    <div>Enter path name and directory name and click button. (ex:C:\dirname or C:\dirname\subdir)</div>
    <div><input id="Text1" type="text" /><input id="Button2" type="button" value="button" onclick="createnewfolder(Text1.value)" /></div>
    <div><textarea id="TextArea1" rows="20" cols="50"></textarea></div>
    </body>
    </HTML>
    please any help

    error on page is displayed at the botton of internet explorer pape after clicking on the button.and folders are not created

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • How to use toplink in the tomcat server?

    Hi,
    I want to use Toplink in the tomcat server. I am connecting to oracle database using DataSource.
    Can any body help me, what are the setup required to use the toplink in the tomcat?
    Please help me if any body has idea on the same.

    Take a look at this other forum posting: Tomcat acquire dataSource [TOPLINK-7060]
    --Shaun                                                                                                                                                                                                                               

  • Help  HTTP status 500 error using tomcat 5.0.16

    Hi,
    I am getting the below mentioned erors using Tomcat 5.0.16 in a directory structure like this
    E:\sampleapp\WEB-INF
    \WEB-INF\classes
    \WEB-INF\lib
    \WEB-INF\sourcefile
    \WEB-INF\web.xml
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class package1.structure.HelloServlet or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: package1.structure.HelloServlet
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1366)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         java.lang.Thread.run(Thread.java:534)
    Kindly let me know how to come around it.
    Any help would be appreciated.
    Thanks
    AS

    Hi ,
    I got struct here, can any body help me out.
    I am unable to tress it our, where was the error
    Any help will be appreciated.
    Sanju
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: File "/WEB-INF/struts-tml.tld" not found
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9

  • Using Tomcat as a web server at deployment stage

    Hi everyone,
    Does anyone of you ever used Tomcat as a web server at deployment stage?
    Has he then faced performance problems? or any other of any kind?
    Was he limited in the number of users to get an acceptable request process time? Is there a special configuration to set in the web.xml file?
    Any help would be greatly appreciated.
    Thanks in advance.
    Jennifer

    We have a Tomcat server in production (no Apache/IIS, Tomcat is on port 80) and it runs great. We have about 200 heavy use users on it. The server (version 4.18) is on a Windows 2000 Server / 512 Meg RAM / P3-800 DELL Box. Its connected to a SQL 2000 Server on another box through the built in Tomcat DBCP connection pool.
    We were initially going to run it through IIS; but we found it such a pain to set up we decided to leave it on Tomcat. For our application it probably would not have shown a difference in speed anyways.
    Its very fast and reliable for us.
    As far as tuning, there is a document here that will to you what to do; its very basic actually; just two changes.
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Production%20Configuration
    Also, make sure you don't have any reloadable="true"'s in your Context's.
    - Chris

  • Re: Using already running Tomcat server for development.

    Hi Nick,
    Yes, you can use existing Tomcat Server for debugging app developed with
    NitroX. And you can refer to Help > Help Contents > NitroX User Guide >
    NitroX Tour > Running and debugging the application.
    We do support Tomcat 4.0.x to Tomcat 5.0.x. If you need any further
    assistance please get back to us.
    Thanks
    M7 Support
    "Nick Mulder" <[email protected]> wrote in message
    news:41d9f379$[email protected]..
    Sorry if this has been covered anywhere else.Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server.
    Just wondering if I can do something similar thru NitroX and Eclipse.
    Forgive me if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

Maybe you are looking for

  • Error message while saving a sales order "Product 10069995 does not have sc

    hi Friends, i am creating an order , enter the material,quantity, batch , correct price everything etc etc. while saving the order it gives an error message "Product 10069995 does not have schedules assigned"

  • Can't connect a printer to Mac OS 10.4.10

    Hi I swapped over computers from my iMac flat panel (OSX Tiger) to a G4 digital audio running Tiger 10.4.10. I am having trouble connecting a printer. I have 2 printers a Laserjet 4100n and a HP PSC 1402 MFC. Both these printer worked fine on the iMa

  • Since I updated to ios7 the sounds are off

    Since updating to ios7 the background sound in apps and videos keeps becoming too loud to the point it's better muted than listening to it and in videos it sounds horrific like really really nasty cheap speakers anyone have any suggestions?

  • DMS link  BOM object

    Hi SAP Consultants, We are in the process of linking DMS with BOM. While Creating a DIR in CV01n we are unable to link a BOM because when we click the Object links tab it is displaying the following message: Object link to STKO_DOC cannot be changed

  • LR 5.6 and new Nikon D750, import of NEF files, is not working!!

    Hello, i have lightroom 5.6 and brandnew a Nikon D750 DSLR. But! I can´t import the .NEF (RAW) files from the camera. Whast do i need? I have read, that the camera is to new for LR? When does the plug in is coming out?