Where should JavaBeans be placed when using Tomcat?

I want to use a javaBean from inside a JSP, but it seems like Tomcat can't find the bean (...can't find the class).
Is there a particular catalogue where the bean-classes should be placed?
My test-JSP looks like this:
<html>
<head>
     <title>Untitled</title>
</head>
<body>
     <jsp: useBean id="enBean" class = "ASimpleBean"/>
</body>
</html>

Your problem most probably is that your class isn't a member of a package. A recent change to the way java/tomcat works is that classes in the default package (ie no package) aren't visible any more.
Put your class in a package(eg SimplePackage), so your className would become simplePackage.ASimpleBean
The class files should be placed under your web-inf/classes directory on your web application.
Hope this helps,
evnafets

Similar Messages

  • Where are my designs stored when using Adobe CC and can i access them if i cancel ?

    where are my designs stored when using Adobe CC and can i access them if i cancel ?

    This is answered in the CC FAQ: http://www.adobe.com/products/creativecloud/faq.html

  • I record with a sony ax2000 and use the 1080 60i setting. what should i edit with when using adobe premiere ele 10

    I record with a sony ax2000 and use the 1080 60i setting. what settings should I edit with when using adobe premiere elements 10?

    smannino
    You have duplicate threads on this issue related to project preset suggestion for your 1080 60i video.
    I have responded to your question in the other thread
    if i record with a sony ax2000 using 1080 60 i what is the best editing setting to use with elements 10?
    Please reply in that other thread.
    Thank you.
    ATR

  • Exception report when using tomcat 5 with JDBC

    i followed this guide to setup the JDBC with my TOMCAT 5
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
    but i seem to get this error
    exception
    javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.SID.test_jsp._jspService(test_jsp.java:81)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
         org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
         org.apache.jsp.SID.test_jsp._jspx_meth_sql_query_0(test_jsp.java:100)
         org.apache.jsp.SID.test_jsp._jspService(test_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    i can compile *.java and run them when they need the jdbc drivers to interact with mysql 5 database.
    This is my server.xml
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <!-- Comment these entries out to disable JMX MBeans support -->
    <!-- You may also configure custom components (e.g. Valves/Realms) by
    including your own mbean-descriptor file(s), and setting the
    "descriptors" attribute to point to a ';' seperated list of paths
    (in the ClassLoader sense) of files to add to the default list.
    e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
    -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 5 documentation bundle for more detailed
    instructions):
    * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
    later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    debug="0" connectionTimeout="20000"
    disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to 0 -->
         <!-- Note : To use gzip compression you could set the following properties :
                   compression="on"
                   compressionMinSize="2048"
                   noCompressionUserAgents="gozilla, traviata"
                   compressableMimeType="text/html,text/xml"
         -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector port="8443"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" disableUploadTimeout="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS" />
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" debug="0"
    protocol="AJP/1.3" />
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector port="8082"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false"
    acceptCount="100" debug="0" connectionTimeout="20000"
    proxyPort="80" disableUploadTimeout="true" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jvmRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost" debug="0">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.4
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    debug="0" resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <!-- Defines a cluster for this node,
    By defining this element, means that every manager will be changed.
    So when running a cluster, only make sure that you have webapps in there
    that need to be clustered and remove the other ones.
    A cluster has the following parameters:
    className = the fully qualified name of the cluster class
    name = a descriptive name for your cluster, can be anything
    debug = the debug level, higher means more output
    mcastAddr = the multicast address, has to be the same for all the nodes
    mcastPort = the multicast port, has to be the same for all the nodes
    mcastBindAddr = bind the multicast socket to a specific address
    mcastTTL = the multicast TTL if you want to limit your broadcast
    mcastSoTimeout = the multicast readtimeout
    mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
    mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
    tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
    tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
    in case of multiple ethernet cards.
    auto means that address becomes
    InetAddress.getLocalHost().getHostAddress()
    tcpListenPort = the tcp listen port
    tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
    has a wakup bug in java.nio. Set to 0 for no timeout
    printToScreen = true means that managers will also print to std.out
    expireSessionsOnShutdown = true means that
    useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
    false means to replicate the session after each request.
    false means that replication would work for the following piece of code:
    <%
    HashMap map = (HashMap)session.getAttribute("map");
    map.put("key","value");
    %>
    replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
    * Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
    * Synchronous means that the thread that executes the request, is also the
    thread the replicates the data to the other nodes, and will not return until all
    nodes have received the information.
    * Asynchronous means that there is a specific 'sender' thread for each cluster node,
    so the request thread will queue the replication request into a "smart" queue,
    and then return to the client.
    The "smart" queue is a queue where when a session is added to the queue, and the same session
    already exists in the queue from a previous request, that session will be replaced
    in the queue instead of replicating two requests. This almost never happens, unless there is a
    large network delay.
    -->
    <!--
    When configuring for clustering, you also add in a valve to catch all the requests
    coming in, at the end of the request, the session may or may not be replicated.
    A session is replicated if and only if all the conditions are met:
    1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
    2. a session exists (has been created)
    3. the request is not trapped by the "filter" attribute
    The filter attribute is to filter out requests that could not modify the session,
    hence we don't replicate the session after the end of this request.
    The filter is negative, ie, anything you put in the filter, you mean to filter out,
    ie, no replication will be done on requests that match one of the filters.
    The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
    filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
    ending with .gif and .js are intercepted.
    The deployer element can be used to deploy apps cluster wide.
    Currently the deployment only deploys/undeploys to working members in the cluster
    so no WARs are copied upons startup of a broken node.
    The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
    When a new war file is added the war gets deployed to the local instance,
    and then deployed to the other instances in the cluster.
    When a war file is deleted from the watchDir the war is undeployed locally
    and cluster wide
    -->
    <!--
    <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
    managerClassName="org.apache.catalina.cluster.session.DeltaManager"
    expireSessionsOnShutdown="false"
    useDirtyFlag="true">
    <Membership
    className="org.apache.catalina.cluster.mcast.McastService"
    mcastAddr="228.0.0.4"
    mcastPort="45564"
    mcastFrequency="500"
    mcastDropTime="3000"/>
    <Receiver
    className="org.apache.catalina.cluster.tcp.ReplicationListener"
    tcpListenAddress="auto"
    tcpListenPort="4001"
    tcpSelectorTimeout="100"
    tcpThreadCount="6"/>
    <Sender
    className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
    replicationMode="pooled"/>
    <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
    filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
    <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
    tempDir="/tmp/war-temp/"
    deployDir="/tmp/war-deploy/"
    watchDir="/tmp/war-listen/"
    watchEnabled="false"/>
    </Cluster>
    -->
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
    timestamp="true"/>
              <Context path="/testdb" docBase="APACHE_DIR/htdocs/testdb"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/TestDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
    configure your mysqld max_connections large enough to handle
    all of your db connections. Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>5</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>test</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>testpwd</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost/testdb?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
         </Context>
    </Host>
    </Engine>
    </Service>
    </Server>

    You haven't added a resource reference for your web application that gives the application a local name for the global resource "UserDatabase".

  • Where should  file be placed  in real mobile in file browser application

    hello,
    i am doing an application on file browser i tested it in emulator it was having [b]appdbfolder bin folder tool kit which has the root directory with the file to be browsed
    1 but problem is where should i place the file in real phone
    2 if placed it resource dir it is not taking
    3

    just make sure your CLASSPATH includes cloudscape.jar. Not just the path, but also the jar filename.
    There is also a jre/lib/ext path in your java installation where you can dump your jar file so it will automatically be seen when you run your program.

  • Should I uninstall RapidBoot when using SSD?

    I read today that RapidBoot makes use of prefetching. This is supposed to be bad for SSDs. Is Rapidboot intended for HDDs only or is it also intended for use in SSDs as well?
    Is it advisable to uninstall RapidBoot when using SSD?

    I personally see no point in using fast-boot software on a SSD.

  • When adding fonts where SHOULD they be placed

    It seems that fonts can be added to the two font folders as well as Font Book. I like to keep related items together, but fonts in the system library cannot (?) be put into font book, and if fonts are added to the system library what good is Font Book? Also what fonts are necessary in the system font list? It seems that the foreign language files could be deleted - or not?

    Every font in system font is necessary, that's why they are in system font.
    For managing fonts, just use font book, and let the system fonts as they are. Font book also just handels the Library Font and Personal Font folder.
    Message was edited by: Stress Test

  • Where to put unattend.xml when using create task sequence media

    SCCM 2012 R2.
    I created a capture task sequence media to a flash drive. I noticed the capture media does run sysprep even though it is not located on the flash drive. Where do I put my customized unattend.xml for sysprep? Does it go in c:\sysprep 
    There is no documentation on this that I can find.

    sysprep doesn't use an unattend.xml file so you don't put it anywhere. You supply a custom unattend.xml during the deployment task sequence which in turn is delivered as part of the TS for use by WIndows Setup (which is what actually uses an unattend.xml
    file). Task Sequence media has nothing to do with sysprep either. I think you may be confusing sysprep with Windows mini-setup. sysprep is the process of generalizing a system generally preparing it to be captured. Windows mini-setup is what runs the first
    time a syspreped system is booted. They are two different things.
    You *can* place an unattend.xml file the image for use by Windows mini-setup -- the locations mini-setup will look for this file are detailed at
    http://technet.microsoft.com/en-us/library/cc749415(v=WS.10).aspx . But that is rarely done anymore with task sequences because you generally want to dynamically inject an unattend.xml
    file into the process instead of statically placing one in the image -- that defeats the purpose of having a generic reference image. This is done by configuring the Apply Windows step in a deployment task sequence.
    Still, that begs the question posed by narcoticoo. Your reference image(s) should be hardware agnostic, built on a VM, and automated. What you are doing will cause you pain in the long run.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • BC4J error when using Tomcat

    Hello,
    I deployed an BC4J/JSP webapplication to Tomcat using an MS SQL200 server as data-source. However, when running a jsp that queries the database the following error appears:
    CustomerView1 Browse Form
    Application Error
    Error message: Only one of the two parameters target or targetParam should be defined.
    Does anyone knows what this means?
    Thanks...
    Hans

    Hi,
    Try the link http://otn.oracle.com/products/jdev/howtos/appservers/deploy_bc4j_to_jboss.html
    Maybe this can help you. It runs JBoss with TomCat.
    Hope this helps,
    Rajat

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

  • ConnectException when using Tomcat 4.1

    Hi,
    I'm trying to run my web application with Tomcat 4.1 (until now I worked with Tomcat 3.2, and didn't have problems).
    In my application I have an applet that reads from a file (the file is located on the web server.)
    When I try to do it (using Url.openStream()) I get:
    java.net.ConnectException: Connection refused.
    I guess I have to configure some kind of permissions in the tomcat configuration files or something like that, but I didn't find anything.
    (In my Java policy tool I made sure to give java.security.AllPermission, but I'm not sure that it's connected).
    Can you please help me?...
    Thanks,
    Efrat

    The code the I use is:
    // With a URL now available, try to esatablish a read
    // mechanism and read in the file as a series of String lines
    try
    InputStream is = sourceUrl.openStream();
    InputStreamReader isr = new InputStreamReader (is);
    BufferedReader d = new BufferedReader (isr);
    return (readLines(d));
    catch (java.io.FileNotFoundException iof)
    Debug.err ("FileNotFoundException: " + iof);
    JOptionPane.showMessageDialog(applet, "Problems with web server were discovered. Device image will not be shown.\nPlease check server and device status and correct, then try to login again.");
    return null;
    catch (IOException e)
    Debug.err ("exception in fetchLines: " + e);
    e.printStackTrace();
    return null;
    The exception that I get is:
    exception in fetchLines: java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:137)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(HttpClient.java:93)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
         at sun.plugin.net.protocol.http.HttpClient.<init>(HttpClient.java:39)
         at sun.plugin.net.protocol.http.HttpClient.New(HttpClient.java:66)
         at sun.plugin.net.protocol.http.HttpURLConnection.privBlock(HttpURLConnection.java:116)
         at sun.plugin.net.protocol.http.HttpURLConnection$PrivilegedBlockAction.run(HttpURLConnection.java:460)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:167)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:375)
         at java.net.URL.openStream(URL.java:960)
         at pic1.AtricaFetchConfig.fetchLines(AtricaFetchConfig.java:30)
         at pic1.AtricaDeviceObj.buildConfig(AtricaDeviceObj.java:105)
         at pic1.AtricaDeviceObj.buildDevice(AtricaDeviceObj.java:39)
         at pic1.nicApplet.fetchDevice(nicApplet.java:110)
         at pic1.nicApplet.init(nicApplet.java:49)
         at sun.applet.AppletPanel.run(AppletPanel.java:347)
         at java.lang.Thread.run(Thread.java:536)
    I get the exception when doing: InputStream is = sourceUrl.openStream();
    Thanks a lot,
    Efrat

  • Error when using Tomcat and JavaWebStart

    I got the following message:
    ========================================
    An error occurred while launching/running the application.
    Title: Notepad
    Vendor: Sun Microsystems, Inc.
    Category: Download Error
    Bad MIME type returned from server when accessing resource: http://c152:8080/test.jnlp - text/plain
    ========================================
    It worked fine for http://c152:8080/notepad.jnlp
    Could any one help me?

    This got solved from a previous post by izhidov :
    This person wrote:
    "Regarding Tomcat and JNLP/MIME conflict, I've read on Tomcat users list archive that the mime types should be specified in the APPLICATION web.xml file under WEB-INF dir. Seems to work great".
    Thanks.

  • N97 - Where are emails synchronised to when using ...

    I noticed today that Nokia PC Suite allows synchronisation of emails (it didn't for my old N95).  Having gone through the wizard and then synchronised the phone I can't actually see where these emails might have been placed on the phone.
    I use Profimail as my phone client and this is setup to handle my personal email using IMAP.  So there's no account setup on the phone for the built in Nokia email client.
    So this issue is about copying of work emails, not my personal emails.  The MfE folder is empty, the sync log files don't mention anything about failing to copy over the emails.  So where would I see these please?
    Edit...
    Sorry, just to add that I only want to view the emails, not reply to them.
    Message Edited by hyde_tds on 01-Sep-2009 12:37 PM

    I'm afraid my question hasn't really been answered. I'll be more specific. In Camera Raw, I set Exposure to +0.80, then click Open Object to open the file as a Smart Object in Photoshop CS4. Does that embed an "Exposure=0.80" instruction somewhere in the PSD file? I think the answer is "yes," that a Smart Object consists of the RAW camera data along with all the Camera Raw settings, including the Exposure setting.
    But if that is the case, then why does Camera Raw create an XMP file next to the PSD? It seems to me that the XMP file is unnecessary, that it contains information redundant with the settings stored in the PSD, and that it gets out of sync with the PSD as soon as I double-click the Smart Object layer in Photoshop and set Exposure to anything other than +0.80. I find the presense of the XMP file to be terribly confusing.
    -- John

  • Where to put firmware files when using hwdetect

    I am using release 0.7.1. AFAIK in 0.7.1 hwdetect is used instead of hotplug. Where hwdetect expect to find firmware files? In the case it can be changed, please tell me where.

    it's udev that is handling firmware files, and I placed mine for atmel wireless in /lib/firmware works fine

  • Where should I start from to use HP4145B with LabView?

    I am not familiar with LabView, but I have to set up LabView to make it work with HP4145B.
    I downloaded the driver from NI, placed it at the correct directory, and can see VI's in function palette.
    Also, when I run MAX, it shows "Instrument 0" under GPIB0.
    When I click on "Scan for Instrument", it says something about IDN query, but now I know HP4145B is too old to understand IDN query.
    I saw a lot of posts that say they can write to the instrument but cannot read.
    However, I don't even know how to test whether my labview can write to 4145B or not.
    My questions are....
    1. 4145B manual says it has "ID"  code.
    I tried testing it by using "Interactive Control"
    And I got this by NI Spy
    1.  ibsic(GPIB0)
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:23:22.485       Duration 00:00:00.000
    ibsta: 0x160       iberr: 0             ibcntl: 0(0x0)
    2.  ibsre(GPIB0, 1)
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:23:26.070       Duration 00:00:00.000
    ibsta: 0x160       iberr: 1             ibcntl: 0(0x0)
    3.  ibcmd(GPIB0, "@?1", 3 (0x3))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:24:18.606       Duration 00:00:00.000
    ibsta: 0x178       iberr: 0             ibcntl: 3(0x3)
    4.  ibwrt(GPIB0, "ID", 2 (0x2))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:24:30.242       Duration 00:00:00.010
    ibsta: 0x168       iberr: 0             ibcntl: 2(0x2)
    5.  ibcmd(GPIB0, "? Q", 3 (0x3))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:25:12.333       Duration 00:00:00.010
    ibsta: 0x174       iberr: 0             ibcntl: 3(0x3)
    > 6.  ibrd(GPIB0, "", 20 (0x14))
    > Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    > Start Time: 15:25:23.289       Duration 00:00:16.784
    > ibsta: 0xc164       iberr: 6             ibcntl: 0(0x0)
    There are four LED's on the front panel of HP4145B.
    It shows status of HP4145B whether it is talker or listener.
    LED changes properly to my command. (So I don't think there is any problem with harware connection)
    But, I still get nothing but EABO error when I want to read something.
    What am I doing wrong?
    How can I test "ID" code?
    (I do not have ultra-fast typing speed so I think I gave 4145 enough time to respond before I typed new command)
    2. I tried to use driver I downloaded from NI.
    Other posts say that people used "HP 4145 Example.vi" for testing.
    However when I put "HP 4145 Example.vi" on the block diagram, I cannot run it.
    How do I test with "HP 4145 Examble.vi"?
    3. I tried testing other vi's such as "HP 4145 source setup.vi".
    I put that vi on the block diagram window, added constant of 17 to GPIB address,
    and other constants to other inputs and run it.
    A new window popped up, so I ran it again.
    However it does not seem to work since I see no change when I go into source set up menu directly from HP4145 front panel.
    Again, LED indicator changes to LTN(which means HP4145B is in listener mode) when I run vi.
    What would be the problem?
    I'm experiencing a lot of trouble with this HP4145B, and I know too little to solve this by myself.
    Somebody please help me with this.
    Thanks in advance.

    My 4145b uses address 17.
    I checked switch setting on the backpanel of 4145b and CRT on the front panel says "HPIB(17, COMMA, EOI)". Also, when I change address to 16 and execute vi file, it gives me an error message of "HP 4145 Define Channel; HP 4145 Send Message"
    When I change back to 17 and execute, error message disappears(and no more error message comes in when I send command to 4145b), but nothing happens on 4145b.
    As I said eariler, LEDs on 4145b seems to be saying that 4145b understands basic command such as "change to listener" or "change to talker".
    In addition, when I try to read from 4145b from "HP4145 example.vi", for example by clicking on "Display Graphics and Plot" and execute, I get error message "HP 4145 Take Measurement; Wait for Interrrupt (GPIB)". However, reading is not the problem to think right now because I don't even know how to read.
    I have Newport 1830-C with me, and I checked this instrument with same GPIB-USB-HS and same PC I am using with HP4145b.
    It works with 1830C. Therefore, it doesn't look like there is something wrong with  my PC and GPIB-USB-HS.
    Anyway, thank you for your attention.
    메시지가 06-25-2008 01:28 AM에 Min Yoon에 의해 편집되었음
    메시지가 06-25-2008 01:36 AM에 Min Yoon에 의해 편집되었음

Maybe you are looking for

  • How can I divert incoming e-mails from landing in Trash to Inbox

    A selection of incoming e-mails now seem to land automatically in my Trash folder instead of my In box. I am unaware of any instruction I may have inadvertently given let alone how to restore delivery to my In box. Please advise remedy. Thanks. Bob W

  • Synchronising iTunes over 2 or more Macs

    Is there a foolproof way of synchronising iTunes with particular emphasis on iPhone sync? I normally sync my phone with my desktop but would like to be able to switch the sync to my laptop when travelling. This came to mind because I am abroad on Jun

  • Problems working with different types of aggregation in two facts table

    Hello every Body!! Greetings from Brazil.. At fisrt I'd like to say that I've tried to find some thead with the same problem, but I've foud no answere. That is why I'm typing this new post. Here we go ... I've a Fact table with one metric and two deg

  • BEx Reporting - How to set Filters ?

    Hi SDN friends, Right now am working on BEx reporting and need to do lot of filters for my reporting.......am looking forward for some good step by step material which can help in BEx reporting for setting Filters, Restricted KF and Calculated KF. Pl

  • How to skip multiple transactions in batch input session?

    Hello experts, In SM 35 while processing a batch we use /n to skip the current transaction and jup to the next one. Is there any way to skip number of transactions in just one hit? Please reply, Thanks.