Tomcat and localhost

Greetings,
I'm sorry if this is the wrong forum.
This one is a fairly easy one, I'm quite sure.
I'm a newbie and I just setted up Tomcat and Apache with a jk connector. I want to create a test-server before I'm going live on the "real" server.
My question is : Can I show or view my test server from a distant computer ?
Is something like : http:\\my_local_address\examples\index.html possible ?
Or do I have do own a www address ? I'm quite confused ... thanks for your time. Everything works fine on my localhost ...

You're likely to have a provider-assigned IP-address through DHCP and you're behind your provider's proxy.
You can't reach your computer directly from outside unless you set up some kind of VPN, or you subscribed to a dynamic DNS service.
I found this : http://www.technopagan.org/dynamic/
seems interesting read.

Similar Messages

  • Question about blazeds turnkey, tomcat and directory structure

    hi. this question is pretty basic...been reading sujit reddy g's blog on installing/setting up blazeds.
    in one article he creates a samplewebapps directory in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samplewebapps and copies the blazeds WEB-INF/lib into that directory and the configuration files in the flex folder across as well...http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
    in another article on invoking java methods from flex he configures the remote-config.xml file directly in the blazeds\WEB-INF\flex folder....http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-fle x/
    wasn't sure why in the first example he copied the files and folders to the samplewebapps directory while in the second example he just configured the files within the blazeds directory...thanx...(i'm a newbie at server side development)

    I'll take a stab at it. The key thing to realize is the BlazeDS code is ADDED on
    to the appserver. E.g. for Tomcat/WebLogic/et al one adds the reference in the web.xml file in WEB-INF.
    So, what is that add-on?
    1. Executable files. These are jar files and typically stuck into WEB-INF/lib
    2. Configuration files. flex/services-config.xml is specified in web.xml. It refers to the other config files in WEB-INF/flex
    So, the config in web.xml tells Tomcat (and its forked commercial products) to load up the Flex jars and run some classes. By standard, the "run some classes" follows the servlet lifecycle and runs specific methods in the class when the servlet is loaded, called, destroyed. So, Flex jars have a class which implements the servlet interface.
    Incidentally, you may also see references to log4j, Spring, and other frameworks in the web.xml as well. They do the same sort of stuff. So, Tomcat does the passing of the HTTP packets and stages them into Java classes and the hooked in frameworks do add their own behaviours to the setup.
    HTH,
    TimJowers
    P.S> Also note in Flex when you setup the project properties for a Flex Project then you need to match up your URL and "context" to what you have on your server. In his exampe, the "samples" context may have already been setup so easier to use. What is a "context"? The idea is to have more than one webapp running on an appserver. In Tomcat, its basically just the subdirectory under "webapps". That directory name becomes part of the URL. E.g. webapps/samples -> http://localhost:8080/samples  or webapps/mytest -> http://localhost:8080/mytest

  • Need Help in JNDI Datasource using tomcat and spring

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

    Hi,
    I am trying to connect my local database using JNDI datasource in tomcat and spring
    I have done the below configuration in Tomcat 7 server:
    In tomcat server.xml (Path: E:\apache-tomcat-7.0.35\conf) I added the below configuration
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/myApp" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:hr@localhost:1521:XE>"
    username="testUser" password="password"
    maxActive="10" maxIdle="5"
    maxWait="60000" removeAbandoned="true"
    removeAbandonedTimeout="60" logAbandoned="true"/>
    In web.xml, I have added the below config:
    <resource-ref>
    <description>Oracle Spring JNDI Datasource</description>
    <res-ref-name>jdbc/myApp</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    And in my Spring context xml (ws-context.xml), added below config:
    <bean name="myDataSourceInJndi" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/myApp"/>
    </bean>
    <jee:jndi-lookup id="dataSource" jndi-name="/jdbc/myApp" resource-ref="true"/>
    In my Java code, I am trying the below code to connect DataBase:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource) envCtx.lookup("jdbc/myApp");
    ds.getConnection();
    But I am getting the below exception while executing ****ds.getConnection();***
    java.lang.IllegalStateException: Connection factory returned null from createConnection
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:584)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at com.wipro.spring.impl.EmployeeImpl.getDetails(EmployeeImpl.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
    at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
    at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:471)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
    at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpringServlet.java:52)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Can you please me to resolve this issue? Am I missing any configuration or any mistake in my java code please suggest your suggestions.
    Thanks

  • Tomcat and servlet

    hi to all... i've configured my tomcat 6.0 for the deployment of servlet but i always get a 404 error, servlet not available...
    environment variables:
    classpath has been pointed to servlet-api.jar ans jsp-api.jar
    java_home set to point to jdk folder
    configuration of tomcat:
    conf/web.xml: uncomment servlet/* and its corresponding servlet mapping
    conf/context.xml: set reloadable="true"
    still when i do all of this nothing works! even my html pages! error page not found...
    whats the problem?
    plz help with the configuration of tomcat
    heartful thx

    I am having the same problem. I tried exactly like an example of a book.
    Then i read this thread and I tried to load the examples that come with tomcat.
    http://localhost:8080/servlet-examples/servlet/HelloWorldExample
    And it�s not working. It works only .html files, for example:
    http://localhost:8080 -> opens the tomcat homepage
    http://localhost:8080/jspbook/index.html ->opens my example
    my project looks like this(inside the webapps) /jspbook/ WEB-INF ; build.xml ; index.html
    /jspbook/WEB-INF/ web.xml ; classes
    /jspbook/WEB-INF/classes/com/jspbook/HelloWorld.java
    My web.xml got:
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>com.jspbook.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>/hello</url-pattern>
    </servlet-mapping>
    Then I try to acess it
    http://localhost:8080/jspbook/hello
    and I get 404. the resource is no available
    Who can help me?

  • Debug web service by tomcat and intellij idea

    Any idea how to debug web services using idea.I have read
    http://www.wso2.net/tutorials/axis2/java/2006/07/28/debug-ws
    and it didn't worked for me.
    thanks

    +1. From the View menu choose Application Server Navigation+
    Right click the Application Server node and choose New Application Server and then follow the instructions to create a Tomcat connection.
    +2. Create an EAR or WAR deployment profile depending on what is in your application - and then you can right click the project and choose Deploy to...->Tomcat connection you defined.+
    I followed these steps but that only created a .war file with only one directory inside it "WEB-INF" with two files "faces-config.xml" and "web.xml".
    The ant target (from my build.xml file that was delivered with the code) was not used at all and I can see no way of connecting it with the deploy profile.
    If I use the target (in the build.xml file) to build my application I do get a .war file I can use. (When putting that in the tomcat webapps directory it is used by tomcat and an application directory is created by tomcat. I can then logg into it (http://localhost:8080/myapplication).
    Note however, that that .war file is used in a tomcat that has been started with:
    NET START Tomcat6
    Not as recommended in http://technology.amis.nl/blog/1984/java-platform-debugger-architecture-jpda-with-tomcat-oc4j-eclipse-intellij-idea-and-jdeveloper
    That is with:
    SET JPDA_ADDRESS=8000
    SET JPDA_TRANSPORT=dt_socket
    catalina.bat jpda start
    So the question is, how can I use the defined ant target in my build.xml file PLUS the new tomcat server connection TOGETHER so I get something that will hopefully run.

  • Tomcat and Apache: No go

    Hi,
    Some time ago I've been working with Apache (3.17 or something) and Tomcat 3.x on a Win98 system. This worked quite well...
    Now I have downloaded and installed Apache 3.20 and Tomcat 4.0 on a WinME system. Apache works properly and I can also run the JSP and servlet examples of Tomcat (http://localhost:8080).
    However, I cannot access the sample JSP's and servlets when I'm using Apache. That is, if I go to the default index.html of Apache (http://localhost/) I get the page, but http://localhost/examples fails.
    I have tried to find information on how to link the Tomcat 4.0 'engine' with Apache 3.20 (I expect having to make changes to the httpd.conf file), but the renewed documentation on the Jakarta-Tomcat pages is total cr*p. I hope someone in these forums can show me an example of how to enable Tomcat 4.0 support in Apache 3.20 webservers...

    Okay, so far I've found out that MOD_WEBAPP takes care of accessing Tomcat 4.0 from Apache, so that problem is solved.
    Suppose I want to add an example JSP of my own to the examples directory. I'm able to put the JSP file in a new subdirectory called "temp" under $CATALINA_HOME/webapps/examples/jsp and it runs.
    However, after putting a new feature in my JSP file it crashed. When I put a classfile that is now required under $CATALINA_HOME/webapps/examples/WEB-INF/classes/temp, which is exactly where the Tomcat examples leave their classfiles, Tomcat tells me it cannot find the class. Can someone please show me an example of what I need to type in the server.xml file, a web.xml file and where exactly I'm supposed to put my classfile...

  • Tomcat and Apache via JK2

    Hello,
    Has anybody ever gotten tomcat and apache working properly? I'm having a hell of a time with it. I have them working independently, and have JK2 installed (made a package for it). I used the tomcat 4.1 package from incoming...
    I can post configs and such if anybody thinks they can help. Right now, this is just a probe to see if anyone thinks they can help.   I need a break from it, been scrapping with it for three hours now.
    Once I get this working, I'll post a howto to the Wiki, I promise. :-D
    Thanks for any info,
    Dusty

    Thanks for the info so far, it's still not working though... here's what I'm getting:
    chane wrote:I might be able to help a bit.  I have apache 2.x and Tomact 4.1.29 running with JK2.
    I've got apache 2.0.48, tomcat 4.1.27, and jk2 2.0.2. Tomcat is from incoming, I built jk2 from ABS myself; It puts mod_jk2.so in /usr/lib/apache.
    in httpd.conf added a module:
    LoadModule jk2_module   lib/apache/rh72-2.0.2-mod_jk2.so
    I've got:
    LoadModule jk2_module           lib/apache/mod_jk2.so
    I think that's right; it seems to be loading the module (see error messages below)
    in the same directory (as httpd.conf) there is the workers2.properties file:
    I've tried various versions of that file. I just tried it with the one you gave copy-pasted into place, same problems.
    In the tomcat server.conf there is a connector for Coyote/JK2 AJP 1.3, make sure this is not commented and is on port 8009.
    I think I've got that set up properly. Isn't there some command I can use to test if there is a service running on port 8009?
    Anyway, when I go to http://localhost:8080/examples/jsp, for example, it works with tomcat. But if I go to http://localhost/examples/jsp I get a 404 not found; apache isn't forwarding the request to tomcat, for whatever reason.
    In /var/log/httpd/error_log, I've got this info:
    [Wed Mar 10 10:44:18 2004] [error] config.update(): Can't find config file /usr/conf/workers2.properties
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 452 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 453 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] jk2_init() Can't find child 456 in scoreboard
    [Wed Mar 10 10:44:18 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:18 2004] [error] mod_jk child init 1 -2
    [Wed Mar 10 10:44:18 2004] [notice] Apache configured -- resuming normal operations
    [Wed Mar 10 10:44:28 2004] [error] shm.init(): No file
    [Wed Mar 10 10:44:28 2004] [error] [client 127.0.0.1] File does not exist: /home/httpd/html/examples
    I can't tell if it isn't finding workers2.properties in the right place (why look in /usr/conf), or if its looking in two places and then not finding the shm file??
    Do you have anything in ${TOMCAT_HOME}/conf/jk2.properties? All the stuff I've seen online wants me to add stuff to that file, but its never the same stuff.
    Thanks very much,
    Dusty

  • Errors when using tomcat and netbeans combo.[Solved]

    Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
    I have tried this on 2 machines without any success.
    The steps I have followed are as follows.
    First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
    From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
    When I try to run the example jsp project I get the following error:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    root cause
    java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
    Last edited by darkclown (2011-12-01 05:15:23)

    From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
    I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
    I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK.

  • Configuring tomcat and apache on the same system

    i need to configure tomcat and apache on the same system.
    first i have configured apache and it is working well.
    Next is have configured tomcat and it is working well.
    i need to interlink tomcat and apache. so i downloaded jk connector and i have configured it.
    i gave an entry in the httpd.conf as
    Include /tomcat/conf/auto/mod_jk.conf
    i have copied the file mod_jk.so to /usr/local/apache/libexec/
    went i start apache after the entry is given it gives the error like this
    cannot load /usr/local/apache/libexec/mod_jk.so into server: ld_so.1. /usr/local/apache/bin/httpd: fatal : libgcc_s.so.1 : openfailed : no such file or directory in linux
    please help to configure this.
    i have done every thing as it is in apache.org documentation. please give the complete configuration. some say that tomcat is not compiled according to apache1.3. but i configure jk connector as --with-apxs=/usr/local/apache/bin/apxs
    send me the reply
    thankqs in advance

    Hi,
    I'm working in a linux machine and choose to use also two different users. Of course I'm using two different ORACLE_HOME directories.I think that the best approach.Just a question ,are you keeping the "GROUP" same or different?
    Anand

  • From where can we dowload Apache tomcat and how to install

    From where can we dowload Apache tomcat and how to install

    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html

  • Load Balancing, Tomcat, and SharePoint

    I'm a new BusinessObjects customer and am working on getting all of the hardware in place for a new install.  The initial plan is to have two BOE servers, and two tomcat virtual servers, with a hardware based load balancer (F5 BIG-IP Switch: Local Traffic Manager 1600 4GB, possibly) in front of the tomcat servers to handle the load balancing.
    But, I'm starting to think that it would be a good idea for us to integrate directly in to our SharePoint portal using the SAP SharePoint Integration option.
    So, here's my question.  If we do that, then our users will get to their BusinessObjects information via SharePoint.  So, SharePoint and IIS will be the web server.  Will we still have a need for the Tomcat servers?  Will SharePoint point to the load balancer, then to Tomcat, and finally to the BOE server, or will it go right to the BOE server, thus negating the need for the tomcat servers altogether, and also even negating the need for the load balancer?  If so, can the BOE app servers themselves still be load balanced?
    Hopefully this all makes sense - like I said, we're a new customer, so I don't fully understand all of what the servers are doing.  I've spent several days searching the forums & the web & reading documentation and haven't come up with an answer yet, so I'm reaching out to you all & hoping somebody can clear it up for me.  Thanks!!

    Thank you for your input, Denis, this does help explain things.  Also, thanks for pointing me to that Windows Patterns document.  I hadn't seen that one - since we're starting out on 4.0, I've only been looking at documents under the 4.0 folders...
    It sounds like we may want to utilize this same load balancer to balance the SharePoint traffic as well, while we're at it.  Right now our SharePoint server is clustered using Microsoft Clustering, but not load balanced in any way.  Or maybe we just post a link from within SharePoint to the regular old BI LaunchPad and call it a day!
    So, if I understand correctly, if we utilize SharePoint, any traffic/processing that the Tomcat server would have handled would now be handled by the SharePoint server, which could potentially be significant.  The actual processing of the reports, though, will still get handled by the BOE Cluster, which takes care of its own load balancing, so we'll be fine.  Really the only thing the hardware load balancer does is allow the presentation layer to be load balanced - the layers beyond that get load balanced automatically via CMS.  Is that all somewhat valid?  In the patterns doc, there's Application Servers separate from the BOE Servers.  We were just going to have two BOE servers and two Web servers.  Where do the application servers fall in, and are they load balanced using the hardware piece?
    If we were just concerned about High Availability, it seems like maybe we could more easily use Windows Clustering on those Tomcat servers, and avoid the hardware component altogether.  Do the Web servers really get hammered that hard that we need them load balanced?  It seems like the BOE servers are the ones doing the heavy resource intensive tasks and we get them load balanced without the hardware anyway, so maybe load balancing the web servers is overkill.....  I'm sure a lot of this is tough to answer, I'm just trying to get a feel for it.  I want us to have our best performance & be somewhat future-proofed, but don't want to buy things that I don't need to!  We're probably looking at a small, 10-20 concurrent user setup for starters, and out to say 200 concurrent max once it's fully rolled out...
    Thanks again!!

  • Tomcat and JBoss

    Hello! I'm not that new to web programming in Java but there are some things that I think I need to fully understand. Can anyone here give me a comparison between Tomcat and JBoss? What are the similarities and key differences between the two? Tomcat is a servlet container while JBoss is an application container(?? not sure about that, still haven't read enough about it).
    Thanks in advance,
    Romaine

    Hi Romaine,
    Tomcat is not only a servelet container...its actually the webserver which is a servlet container and jsp engine as well.
    Where as JBOSS is one of the application servers where it provides the run time environment for the business components( the ejbs) in addition to the support environment for servlets and jsps.
    examples of application servers: JBOSS, WEBLOGIC, WEBSPHERE

  • Installing Log4J in Tomcat and using JDBC to log errors

    Has anyone figured out how to install Log4J in Tomcat and use the Log4J JDBC functionality?
    I have log4j.jar in CATALINA_HOME/common/lib.
    I also have log4j.properties is in CATALINA_HOME/common/classes
    Then when I start Tomcat I get the following error:
    [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI
    is it something to do w/ the log4j.properties file? do i have to use a xml format or is it ok to use .properties format?
    -Karthik

    I would say you have something wrong in your log4j properties file.
    properties format is fine, but I suspect something in there is not quite right.
    Try starting with a simple example one, see if it works, and then try adding your own config based on that one.
    Good luck,
    evnafets

  • 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.

  • Unable to open service BOE120 TOMCAT and Unable to STOP severs in CCM

    Hi Everyone,
    i have installed business object Edge series 3.0 in windows 2008 server standard edition. I also installed crystal 2008, xcelsius engage 2008 , live office, SAP GUI 7.10. I did not installed SAP Integration yet. The installation has done in 'D-drive' instead of 'C-drive'. The installation has been done successfully for above products.
    Now i am facing two problems.
    In CCM, both  TOMCAT and SIA are  in running state.
    1. when i  try to open tomcat configuration, i am getting an error as below
      ' Unable to open service BOE120 TOMCAT'
    2. In CCM, when try to stop the TOMCAT or SIA, system showing an error
      'Unable to stop the service, Access Denied'.
      But when i go to windows services, there i can able to stop tomcat.
    What could be the reasons for above error? Wait for your reply.
    Thank you all in advance

    Hi,
    when you want to stop the services via ccm are you logged in as a user with local administrator rights ?
    Regards
    -Seb.

Maybe you are looking for

  • Can someone please tell me what is up with itunes since ios7?

    i got my iphone in october and everything was fine with it for the first couple months but for the past 2 months now i cant listen to half the music on my phone due to the grey circle dots, nothing like this ever happened before i got my phone and i'

  • Payment Request for APP.

    I want to consider advance payment by using payment request. Please send the detailed config to my mail id: [email protected]

  • 500 Errors in IIS Logs Preventing DB Connections - See Errors

    Issue: A handful of users connecting to our database via IIS web page are saying they are getting "page cannot be dispalyed" error message as soon as they try to access the web page and make the initial database connection. I am seeing a significant

  • ITunes loses songs with non-standard English characters

    (I accidentally posted this on the iTunes for Mac forum. Same issue as described here: http://discussions.apple.com/thread.jspa?threadID=1593945 Any help greatly appreciated.) I have just discovered that I have the same problem, however instead of ch

  • Safari not remembering multiple passwords for one site

    My ffriends and I use safari on my iPhone and thus have multiple login information for one site like facebook. A few months agowe were able to go to a site, start typing in the user name and password, and Safari would show us a highlighted list of th