Tomcat 4.0.6 problem

I using Tomcat 4.0.6, when I create a simple JavaBean class file, I want to use the JSP to access those class, however, the Tomcat 4.0.6 keep can't find a class, I want to ask
1) how can I access a JavaBean class from the JSP,
2) where should I save the JavaBean class file in Tomcat 4.0.6

This might help,
Use the jsp tag useBean to indicate u are using a bean.
Put the class files in the web-app/web-inf/classes directory.
Put the jar files int the web-app/web-inf/lib directory.

Similar Messages

  • FAM 8.0, Tomcat J2EE agent installation problem

    Hello:
    I was able to install FAM 8.0 in Tomcat 6.0.14 on Ubuntu (7.04) Linux. Everything seems fine. In the end, the applications I want to use with OpenSSO also make use of Tomcat 6.0.14. I noticed on the opensso users email list that the Tomcat 3.0 agent won't be available until early next year; but that the 2.2 agents should work with FAM 8.0. So, I got the the J2EE agent for Tomcat - SJS_Tomcat_Server_55_agent_2.2-01.tar.gz. The documentation makes no references to Tomcat 6, and I'm hoping this is due to the fact that Tomcat 6 was not available when the documentation was written.
    Does this agent work with Tomcat 6? I have this problem when installing the agent (agentadmin --install):
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Invalid directory specified for the $CATALINA_HOME environment variable
    Invalid CATALINA_HOME directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14I can see in debug/agentadmin.log the following:
    [05/24/2008 13:06:37:684 PDT] FileSystemValidator : Is directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? true
    [05/24/2008 13:06:37:686 PDT] HomeDirValidator : Is $CATALINA_HOME directory /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14 valid ? false
    [05/24/2008 13:06:37:686 PDT] Invalid CATALINA_HOME directory : /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14This directory does indeed exist, and is accessible by the user I'm logged in as. It appears FileSystemValidator agrees with me, but HomeDirValidator has a problem. I tried this on both Ubuntu 6.04 and Mac OS X 10.5.2. Does this indicate that Tomcat 6 is not supported? Or is it indicative that neither OS on which I've tried to install the agent is officially supported?
    Thanks!
    Jeff

    Hi Denis:
    Before being redirected to another short term task, I did indeed get the Tomcat 6 agent to work. I probably won't be able to look at OpenSSO again seriously for another couple of months. :(
    I have the OpenSSO server running on Tomcat 6.0.14 on Ubuntu 6.x Linux running in a virtual machine on my Mac. I was not able to get the server to run directly on the Mac, and I cannot remember the reason at this time.
    But, as far as the agent goes, I run it again using Tomcat 6.0.14 on my Mac (Mac OS X 10.5.2), using the 1.5 JRE. I do have the agentapp war deployed as well as the agentsample web application to play with. In my catalina.out file:
    Jun 18, 2008 10:07:20 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Jun 18, 2008 10:07:20 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentapp.war
    Jun 18, 2008 10:07:21 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive agentsample.war
    Jun 18, 2008 10:07:22 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8090
    Jun 18, 2008 10:07:22 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8011
    Jun 18, 2008 10:07:22 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16  config=nullI have no error messages is any Tomcat log file.
    I checked out the source code for the Tomcat v6 agent (2.2) on May 27, so I don't know how that compares to yours or what's been checked into CVS since my build. I also don't know what the OpenSSO NamingService is.
    I assume you used fully qualified domain names to specify the web application to be protected by agent as well as the OpenSSO server itself. The following is the output of the conversation when I run the agent installer script on my system. It has been redacted a bit (domain name and encryption key) to protect my client, but otherwise this is what I supplied to the installer:
    Enter the complete path to the directory which is used by Tomcat Server to
    store its configuration Files. This directory uniquely identifies the
    Tomcat Server instance that is secured by this Agent.
    [ ? : Help, ! : Exit ]
    Enter the Tomcat Server Config Directory Path
    [/opt/apache-tomcat-6.0.14/conf]: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Enter the fully qualified host name of the server where Access Manager
    Services are installed.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Host: login.opensso.example.com
    Enter the port number of the Server that runs Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services port [80]: 8080
    Enter http/https to specify the protocol used by the Server that runs Access
    Manager services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Protocol [http]:
    Enter the Deployment URI for Access Manager Services.
    [ ? : Help, < : Back, ! : Exit ]
    Access Manager Services Deployment URI [/amserver]: /opensso
    Enter the fully qualified host name on which the Application Server
    protected by the agent is installed.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Host name: analysis.opensso.example.com
    $CATALINA_HOME environment variable is the root of the tomcat
    installation.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the $CATALINA_HOME environment variable: /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Choose yes to deploy the policy agent in the global web.xml file.
    [ ? : Help, < : Back, ! : Exit ]
    Install agent filter in global web.xml ? [true]:
    Enter the preferred port number on which the application server provides its
    services.                          
    [ ? : Help, < : Back, ! : Exit ]
    Enter the port number for Application Server instance [80]: 8090
    Select http or https to specify the protocol used by the Application server
    instance that will be protected by Access Manager Policy Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Preferred Protocol for Application Server instance [http]:
    Enter the deployment URI for the Agent Application. This Application is used
    by the agent for internal housekeeping.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Deployment URI for the Agent Application [/agentapp]:
    Enter a valid Encryption Key.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Encryption Key [XXmyencryptionkeyXX]:
    Enter a valid Agent profile name. Before proceeding with the agent
    installation, please ensure that a valid Agent profile exists in Access
    Manager.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the Agent Profile name: testagent1
    Enter the path to a file that contains the password to be used for identifying
    the Agent.
    [ ? : Help, < : Back, ! : Exit ]
    Enter the path to the password file: /Users/jas/Development/opensso/tryout/agent_password
    SUMMARY OF YOUR RESPONSES
    Tomcat Server Config Directory :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf
    Access Manager Services Host : login.opensso.example.com
    Access Manager Services Port : 8080
    Access Manager Services Protocol : http
    Access Manager Services Deployment URI : /opensso
    Agent Host name : analysis.opensso.example.com
    $CATALINA_HOME environment variable :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14
    Tomcat global web.xml filter install : true
    Application Server Instance Port number : 8090
    Protocol for Application Server instance : http
    Deployment URI for the Agent Application : /agentapp
    Encryption Key : XXmyencryptionkeyXX
    Agent Profile name : testagent1
    Agent Profile Password file name :
    /Users/jas/Development/opensso/tryout/agent_password
    Verify your settings above and decide from the choices below.
    1. Continue with Installation
    2. Back to the last interaction
    3. Start Over
    4. Exit
    Please make your selection [1]: 1
    Updating the
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/bin/setclasspath.sh
    script with the Agent classpath ...DONE.
    Creating directory layout and configuring Agent file for Agent_001
    instance ...DONE.
    Reading data from file
    /Users/jas/Development/opensso/tryout/agent_password and encrypting
    it ...DONE.
    Generating audit log file name ...DONE.
    Creating tag swapped AMAgent.properties file for instance Agent_001 ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Creating a backup for file
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Realm to Server XML file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/server.xml
    ...DONE.
    Adding filter to Global deployment descriptor file :
    /Users/jas/Development/opensso/tryout/apache-tomcat-6.0.14/conf/web.xml
    ...DONE.
    Adding SJS Tomcat Agent Filter and Form login authentication to selected Web
    applications ...DONE.
    SUMMARY OF AGENT INSTALLATION
    Agent instance name: Agent_001
    Agent Configuration file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/config/AMAgent.properties
    Agent Audit directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/audit
    Agent Debug directory location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/Agent_001/logs/debug
    Install log file location:
    /Users/jas/Development/opensso/tryout/tomcat_v6_agent/logs/audit/install.log
    Thank you for using Access Manager Policy Agent
    [jaslap:tryout/tomcat_v6_agent/bin] jas% Can you post the exception details you're getting. That might help someone diagnose the problem.
    Take it easy,
    Jeff

  • Tomcat  with map application problem

    Hi,
                  Am deploying flex map application in tomcat it is showing install map API ,but local system it is exicuting fine am unable to find out the actual problem.
    Any one know tell me how i will resolve this problem.
    thanks.

    You'll need to provide more information.
    What is not working? Any errors/exceptions shown?
    How are you deploying to Tomcat? How are you connecting to Tomcat?

  • Tomcat 4.1 class problem. Doesn't identify the class.

    Hi
    I just installed J2SDK and tomcat in windows xp. I've made jsp files and beans. The first page is customerlogin.jsp which takes user id and password in a form. It sends the request to authenticate.jsp. Would you please give me a few important steps that need to be done?
    My directory structure is as follows:
    C:\Tomcat 4.1\Webapps\Log -> jsps
    c:\Tomcat 4.1\Webapps\Log\WEB-INF\classes\Log -> java beans
    The jsp doesn't find AuthenBean class. It complains about it.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /authenticate.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Tomcat 4.1\work\Standalone\localhost\Log\authenticate_jsp.java:43: package Log does not exist
    Log.AuthenBean Authen = null;
    ^
    ******** AuthenBean is : *********
    package Log;
    public class AuthenBean{
         String userid;
         String password;
         public void setUserid (String tuserid) {
                   userid = tuserid;
         public void setPassword (String tpassword) {
                   password = tpassword;
         public String getUserid() { return userid; }
         public String getPassword() { return password; }
    ******** Authenticate.jsp ***********
    <jsp:useBean id="Authen" class="Log.AuthenBean" scope="session"/>
    <jsp:useBean id="select" class="Log.ExecuteQuery"/>
    <jsp:setProperty name="Authen" property="*"/>
    <%
    String id = Authen.getUserid();
    String passwd = Authen.getPassword();
    out.print("User id is " + id);
    out.print("Password is " + passwd);
    %>
    <%@ page import="java.util.Vector" %>
    <% Vector aResult = select.getResult();
    select.connect();
    boolean idCheck = false;
    String query = new String();
    query = "SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, PASSWORD, COUNTY, AREA FROM EMPLOYEE, LOCATION WHERE EMPLOYEE_ID = '" + id + "' AND PASSWORD = '" + passwd + "' AND (EMPLOYEE.LOCATION_ID = LOCATION.LOCATION_ID)";
    select.select(query, 6);
    select.disconn();
    int size = aResult.size();
    if(size > 0){
    idCheck = true;
    if(idCheck)
         session.setAttribute("loginId",id);
         session.setAttribute("firstName",(String)aResult.elementAt(1));
         session.setAttribute("lastName",(String)aResult.elementAt(2));
         session.setAttribute("county",(String)aResult.elementAt(4));
         session.setAttribute("area",(String)aResult.elementAt(5));
    %>
    <jsp:forward page="customer.jsp"/>
    <%
    else
    String error_msg = "Error: User Authentication Failed!";
    String link = "customerlogin.jsp";
    session.setAttribute("prevPage", link);
    session.setAttribute("errorMsg", error_msg);
    }%>
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    Your help would be appreciated
    Thanks!

    Your problem is in web.xml. Only servlet classes need to be mapped. Your bean class should not be.
    ****** web.xml in Log\WEB-INF is **********
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>Log\AuthenBean</servlet-name>
    <servlet-class>Log\AuthenBean</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Log\ExecuteQuery</servlet-name>
    <servlet-class>Log\ExecuteQuery</servlet-class>
    </servlet>
    </web-app>
    If you have only jsps, u mau use
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    Hope it works.
    Hafizur Rahman
    SCJP

  • Tomcat 4.1.27 problem...

    Hello everyone,
    I'm using Tomcat 4.1.27 for my webapplication, which includes my own Jsp - Tags. When I open a page which includes one of the tags, I get the following exception:
    javax.servlet.ServletException: (class: /jsp/MyTag, method: doStartTag signature: ()I) Incompatible object argument for function call
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.VerifyError: (class: /jsp/MyTag, method: doStartTag signature: ()I) Incompatible object argument for function call
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
         at java.lang.Class.getDeclaredMethods(Class.java:1114)
         at java.beans.Introspector$1.run(Introspector.java:1103)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1101)
         at java.beans.Introspector.getTargetMethodInfo(Introspector.java:966)
         at java.beans.Introspector.getBeanInfo(Introspector.java:370)
         at java.beans.Introspector.getBeanInfo(Introspector.java:144)
         at org.apache.jasper.compiler.Generator$TagHandlerInfo.(Generator.java:1946)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1093)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:1917)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Now, I have no idea where to find the solution to this problem. Can anyone help???
    thanx in advance,
    mo

    hi
    It seems that you wrote the doStartTag method incorrect. maybe you forgot to add the throws JspException at the declaration of the method.
    your class should look like this:package jsp;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.tagext.TagSupport;
    public class MyTag extends TagSupport  {
          * Method called at start of tag.
          * @return SKIP_BODY
         public int doStartTag() throws JspException {
              try {
                   JspWriter out = pageContext.getOut();
                   out.println("<div>this is my tag</div>");
              } catch(Exception e) {
                   e.printStackTrace();
              return SKIP_BODY;
          * Method is invoked after every body evaluation to control
          * whether the body will be reevaluated or not.
          * @return SKIP_BODY
         public int doAfterBody() throws JspException {
              return SKIP_BODY;
          * Method called at end of tag.
          * @return EVAL_PAGE
         public int doEndTag() {
              return EVAL_PAGE;
    }

  • Tomcat, JSP,  swedish characters problem

    Hi all,
    I have run into yet another Swedish character problem that I havn't been able to solve. I use Tomcat 5 locally, and Tomcat 4 on a remote server to show my JSPs. When I run the pages locally and enter strings in a form, they show up on other pages with swedish characters looking ok, but when I do it on the Tomcat 4 they are replaced with "?". I set the encoding to utf-8 on each page and the locale is sv_SE.
    Any ideas why?
    BR
    Markus

    This example only sets the default file encoding. You'll have to make sure the charset is not being set in another step of your process.
    On Windows:
    # Place near top of catalina.bat
    set CATALINA_OPTS=-Dfile.encoding=UTF-8
    On Linux:
    # Near top of startup.sh
    CATALINA_OPTS=-Dfile.encoding=UTF-8
    export CATALINA_OPTS

  • Tomcat and JavaMail Sessions problem

    I'm using Tomcat (with struts). I've configured my web application in server.xml to manage JavaMail Sessions:
              <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
              <ResourceParams name="mail/Session">
                   <parameter>
                        <name>mail.smtp.host</name>
                        <value>gandalf</value>
                   </parameter>
              </ResourceParams>
    Also, I've configured my web application deployment descriptor (web.xml) to use this resource:
    <resource-ref>
         <description>JavaMail Resource</description>
         <res-ref-name>mail/Session</res-ref-name>
         <res-type>javax.mail.Session</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    Now in the Java code I try to get the JavaMail session in this way:
    private Context devuelveContexto() throws javax.naming.NamingException
    initContext = new InitialContext();
    return (Context) initContext.lookup("java:/comp/env");
    public javax.mail.Session devuelveSesionMail()
    throws javax.naming.NamingException
    Context envContext = devuelveContexto();
    javax.mail.Session mailSesion = (javax.mail.Session) envContext.lookup("mail/Session"); <--- this throws an exception
    I'm doing all like is explained in Tomcat help web page 'JNDI Resources HOW-TO' but it doesn' work for me.
    The exception raised is this:
    java.lang.reflect.InvocationTargetException: java.lang.ClassCastException: javax.mail.Session
         at com.aplicacionesweb.evaluaciones.ddbb.CargadorRecursos.devuelveSesionMail(CargadorRecursos.java:76)
         at com.aplicacionesweb.evaluaciones.fases.actions.ConcertacionAction.enviarCorreo(ConcertacionAction.java:562)
         at com.aplicacionesweb.evaluaciones.fases.actions.ConcertacionAction.grabarConcertacion(ConcertacionAction.java:510)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.struts.actions.DispatchAction.perform(DispatchAction.java:236)
         at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
    Please help.

    Problem solved. I had 'mail.jar' and 'activation.jar' in 'WEB-INF/lib' directory, causing a classes conflict.

  • Jakarta-tomcat-3.2.1 Problem

    When I start jakarta-tomcat-3.2.1 startup.sh in unix/solaris 2.6, it is ok I can access but once I exit from the screen/window, the tomcat automatically shuts down. May I know how to solve this problem?
    I have tried combining apache with tomcat but my apache does not have DSO installed.
    Can anyone help?
    URGENT!

    Why don't you try to install Tomcat on NT workstation 4.0? It's really easy. Let me know if you get stuck on NT version. I am not very familiar with Linux/Unix since I don't use it.

  • JSF Tomcat to SAP migration problems.

    Hello everyone,
    I'm working on trying to deploy our current application to the SAP AS. Currently the application is in .war format and runs fine on Tomcat 5.0.
    I've followed the instructions that are posted in the following blog /people/michael.esslinger/blog/2006/01/09/javaserver-faces-on-web-as, and was able to re-create the WAR and EAR files to deploy. The application is deployed, but I run into this error at startup:
    Initialization of servlet <JavaServerFaces> failed!
    The error is: java.lang.NullPointerException: nullnull
    followed by
    Warning occurred on server 3313950 during startApp sap.com/apriori_ear : Initialization of servlet [JavaServerFaces] failed. Check the init() method of the servlet. Error is: [java.lang.NullPointerException].
    I've researched into the NullPointerException problem on multiple websites, and made changes to my web.xml according to the walkarounds to the same problem from the people with different AS, however none of those seem to make the error to go away.
    If anyone could provide a guidance as to what might be causing this error, I would greatly appreciate it.
    Regards,
    Cyril

    Hi,
    im having the same problem using a webapplication with velocity templates based on struts.
    is there a kind of incompatibility of J2EE Engine 7.00 to velocity?
    Or did you find a resolution for your problem?
    thanks!
    Stefan

  • Apache 2, Tomcat 5, mod_jk2 configuration problem

    I am setting up a Web Server on a RedHat Enterprise Linux box. I installed the RedHat Application Server that installs Apache 2, Tomcat 5 and Mod_JK2. I can't get the mod_jk2 configured properly. I've searched the internet and haven't found any documentation that will work with this.
    I need to know how to configure the mod_jk2 with Apache2 and Tomcat 5.
    PLEASE HELP!!! Nothing I've tried from the Internet has helped. The best site that I've found is ::
    http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
    but its for tomcat 4 so it doesn't work for me.
    Has anyone does this before that can help me????
    Thanks in advance.

    Ended up downloading and installing the mod_jk instead of the mod_jk2 that came with RedHat Application Server.

  • Tomcat 4 - apache - mod_webapp problem

    hi,
    I know this is no tomcat forum, but i don't know where to post this message.
    I'm unable to connect apache with my tomcat server.
    I've installed apache(1.3.x) and tomcat(4.0 final) as stand-alone. they work fine.
    I've added the mod_webapp.so and the following to my configuration:
    --- httpd.conf ---------------------------------------
    # WARP Connection to Tomcat 4
    LoadModule webapp_module /usr/lib/apache/mod_webapp.so
    AddModule mod_webapp.c
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    --- server.xml ---------------------------------------
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0" appBase="webapps">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    If I call http://localhost/examples
    apache should forward this request to tomcat,
    but apache says: "Not Found"
    Can anybody help me, please?
    ciao Markus

    Try
    http://localhost/examples/
    Why?
    Apache doesn't automaticaly add the slash sign at the end if it is not configured to.
    Hint:
    Install webapp-info also. Can be usefull sometimes...

  • TomCat 4.0 Directory problem

    Whenever i want to run a jsp page i store it in
    C:\jakarta-tomcat-4.0\webapps\examples\jsp\MyJsp
    (MyJsp is the directory i 've created ) and have to type very long url as:
    http://localhost:8080/examples/jsp/MyJsp/somePage.jsp
    Is there any way so the i can just type a small url like
    http://localhost:8080/MyJsp/SomePage.jsp
    I also looked at server.xml but i did'nt get it.
    Please solve my problem

    For example if your jsp's are in c:\project\myjsp
    Add the code below in server.xml in config directory.
    <Context path="" docBase="c:\project" debug="9" reloadable="false">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="my_log." suffix=".txt" timestamp="true"/>
                        </Context>
    if a page hello.jsp exist in myjsp folder , You can access the page
    http://localhost:8080/myjsp/hello.jsp

  • Web.xml Tomcat 5.0 Servlet problem

    Hey guys....
    The last time I used a servlet was before the new change in security in Tomcat. Ive been looking all over the net for some easy references about how they are to be mapped but no matter what I try nothing seems to work.
    My servlet is located in ROOT\Admin\WEB-INF\classes\colt and is called AddOLO.class
    My web.xml file is located in ROOT\Admin\WEB-INF and contains the following code:
    <servlet>
    <servlet-name>AddOLO</servlet-name>
    <servlet-class>colt.AddOLO</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>AddOLO</servlet-name>
    <url-pattern>/Admin/add</url-pattern>
    </servlet-mapping>
    On the HTML form invoking the Servlet (addOLO.html) Im using the following small piece of code
    <form action="http://Colt/Admin/servlet/AddOLO" method="post" align="centre">
    The server is operating on Port 80.
    All I seem to be getting is a 404 Error Saying The requested resource (/Admin/servlet/AddOLO) is not available. Can anyone see what is wrong here?
    Thanks in advance

    I don't think there's anything to prohibit you from deploying servlets in ROOT, but webapps that have pages and servlets that work together should be in their own context. That's what you did when you created the directory under webapps. I think it's the right way to deploy web apps. Even better, learn how to create and deploy WAR files:
    http://access1.sun.com/techarticles/simple.WAR.html
    Once you have a WAR, which is simply a JAR'd version of the directory you just created under webapps, you can simply pick it up and deploy it by dropping it into the webapps directory of any Tomcat server. Tomcat will unpack it for you. - MOD

  • Tomcat , Jetty , Glassfis deployment problem

    Hello
    I've deployed my app in those servers and i can get response from them if I use http://localhost:8080/test/test or http://127.0.0.1/test/test but i get a 404 http error when i try calling with my ip or my network name e.g. http://172.16.77.104/test/test or http://dan/test/test
    is there a configuration i;ve missed ?

    georgemc wrote:
    sabre150 wrote:
    jipada wrote:
    Hello
    I've deployed my app in those servers and i can get response from them if I use http://localhost:8080/test/test or http://127.0.0.1/test/test but i get a 404 http error when i try calling with my ip or my network name e.g. http://172.16.77.104/test/test or http://dan/test/test
    is there a configuration i;ve missed ?
    You seem to have missed the fact that you have configured the servers to respond to port 8080 and not port 80 (which is the assumed default if you don't specify a port in the URL). Though, it is difficult to see how both of these can work http://localhost:8080/test/test or http://127.0.0.1/test/test .
    That would result in a connection being refused, rather than a 404 thoughTrue. One needs clarification from the OP on the obvious 'port' problem.

  • Problem with axis2 and Tomcat

    Hello,
    I am having a strange problem with Tomcat and axis. I have a webservice that uses axis2 for wsdl2java class generation. When I compile my project in maven a Test is performed. During the test a glassfish server is established and the project is deployed -everything work great with the expected results. However when I try to deploy the webservice on tomcat it has some problems.
    At first I tried to call axis code in a POST method that takes a MultiPart message. The code is as below:
    *@Path("identifyWavestream")*
    *@POST*
    *@Consumes(MediaType.MULTIPART_FORM_DATA)*
    *@Produces(MediaType.APPLICATION_XML)*
    *public String multipartTest(com.sun.jersey.multipart.MultiPart multiPart) throws Exception {* 
    *// get first body part (index 0)*
    *//tomcat shows that the first error is here (line 122 is the nest one with bodypart)*
    BodyPart bp = multiPart.getBodyParts().get(0);
    BodyPartEntity bodyPartEntity = (BodyPartEntity) bp.getEntity();
    InputStream stream = bodyPartEntity.getInputStream();
    *//the rest of the code either saves the incoming file or implements the wsdl2java axis interface - neither works.*
    And the tomcat error is:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    java.util.ArrayList.RangeCheck(Unknown Source)
    java.util.ArrayList.get(Unknown Source)
    com.webserv.rest.resources.SearchResource.test.multipartTest(SearchResource.java:122)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    It was strange to me since this simple approach of handling a Multipart method worked for me earlier. Then I decided skip the handling of multipart method and just call the axis code. But the results also caused an error. I then tried to call the axis code in a simple @GET method (to cross out any issues regarding the multipart) and the result where the same. Again everything works on the maven- glassfish test. In this case the tomcat error is the following:
    javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:361)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    com.sun.jersey.api.container.MappableContainerException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:74)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    org.apache.axis2.transport.http.AbstractHTTPSender.initializeTimeouts(AbstractHTTPSender.java:454)
    org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:514)
    org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:156)
    org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
    org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
    org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
    org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    com.webserv.rest.webapp.IntSoapServiceStub.getServerData(IntSoapServiceStub.java:2447)
    com.webserv..rest.resources.AIntSoapImpl.getServerData(AIntSoapImpl.java:112)
    com.webserv..rest.resources.SearchResource.test.pingTest(SearchResource.java:167)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    I think it is also a good ide to post the pom.xml file :
    Edited by: 803864 on 2010-10-21 00:30

    I think it is also a good ide to post the pom.xml file:
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    +<modelVersion>4.0.0</modelVersion>+
    +<groupId>com.myProjects</groupId>+
    +<artifactId>audioid-rest-interface</artifactId>+
    +<packaging>war</packaging>+
    +<name>AudioID Rest Interface</name>+
    +<version>0.1</version>+
    +<dependencies>+
    +<!--+
    +<dependency>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.grizzly</groupId>+
    +<artifactId>grizzly-servlet-webserver</artifactId>+
    +<version>1.9.0</version>+
    +<scope>test</scope>+
    +</dependency>-->+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-bundle</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-logging</groupId>+
    +<artifactId>commons-logging</artifactId>+
    +<version>1.0.4</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-collections</groupId>+
    +<artifactId>commons-collections</artifactId>+
    +<version>3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.slf4j</groupId>+
    +<artifactId>slf4j-log4j12</artifactId>+
    +<version>1.5.6</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>junit</groupId>+
    +<artifactId>junit</artifactId>+
    +<version>3.8.2</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.distributions</groupId>+
    +<artifactId>web-all</artifactId>+
    +<version>10.0-build-20080430</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.embedded</groupId>+
    +<artifactId>gf-embedded-api</artifactId>+
    +<version>1.0-alpha-4</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.hibernate</groupId>+
    +<artifactId>hibernate</artifactId>+
    +<version>3.2.5.ga</version>+
    +<exclusions>+
    +<exclusion>+
    +<groupId>javax.transaction</groupId>+
    +<artifactId>jta</artifactId>+
    +</exclusion>+
    +<exclusion>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib</artifactId>+
    +</exclusion>+
    +</exclusions>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-aar-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-java2wsdl</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-xmlbeans</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.12</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib-nodep</artifactId>+
    +<version>2.1_3</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<finalName>audioid-rest-interface</finalName>+
    +<plugins>+
    +<plugin>+
    +<!-- This class is just generated for wadl support!!! -->+
    +<!-- Take care that folder ../music-dna-core is existing -->+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<phase>generate-sources</phase>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage> com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>../audioid-rest-interface/src/main/resources+
    +</schemaDirectory>+
    +<includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema>+
    +</includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>false</verbose>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<!-- <version>2.6</version> -->+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>javadoc</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<encoding>UTF-8</encoding>+
    +<verbose>false</verbose>+
    +<show>public</show>+
    +<subpackages> com.webserv.rest.rest.resources: com.webserv.rest.rest.commons: com.webserv.wsparameters+
    +</subpackages>+
    +<doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>+
    +<docletPath>${path.separator}${project.build.outputDirectory}+
    +</docletPath>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +<additionalparam>-output+
    +${project.build.outputDirectory}/resourcedoc.xml</additionalparam>+
    +<useStandardDocletOptions>false</useStandardDocletOptions>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate</id>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<wadlFile>${project.build.outputDirectory}/application.wadl+
    +</wadlFile>+
    +<formatWadlFile>true</formatWadlFile>+
    +<baseUri>http://192.168.2.149:8080/${project.build.finalName}+
    +</baseUri>+
    +<packagesResourceConfig>+
    +<param> com.webserv.rest.resources</param>+
    +</packagesResourceConfig>+
    +<wadlGenerators>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc+
    +</className>+
    +<properties>+
    +<property>+
    +<name>applicationDocsFile</name>+
    +<value>${basedir}/src/main/doc/application-doc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>grammarsFile</name>+
    +<value>${basedir}/src/main/doc/application-grammars.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>resourceDocFile</name>+
    +<value>${project.build.outputDirectory}/resourcedoc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +</wadlGenerators>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>java</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<mainClass>com.sun.jersey.samples.generatewadl.Main</mainClass>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-compiler-plugin</artifactId>+
    +<inherited>true</inherited>+
    +<configuration>+
    +<source>1.5</source>+
    +<target>1.5</target>+
    +<!--+
    exclude temporary types that are only needed for wadl and doc
    generation
    -->
    +<!--+
    +<excludes> <exclude>com/webserv/types/temporary/**</exclude>+
    +<exclude>com/webserv/rest/commons/Examples.java</exclude>+
    +</excludes>+
    -->
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.jvnet.jaxb2.maven2</groupId>+
    +<artifactId>maven-jaxb2-plugin</artifactId>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-wsdl2code-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate reco core</id>+
    +<goals>+
    +<goal>wsdl2code</goal>+
    +</goals>+
    +<configuration>+
    +<packageName>com.webserv.rest.webapp</packageName>+
    +<wsdlFile>src/main/java/com/webserv/wsdl/web.wsdl</wsdlFile>+
    +<databindingName>adb</databindingName>+
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage>com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>src/main/xsd</schemaDirectory> <includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema> </includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>true</verbose>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +<profiles>+
    +<profile>+
    +<id>jdk-1.5</id>+
    +<activation>+
    +<jdk>1.5</jdk>+
    +</activation>+
    +<dependencies>+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.10</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<plugins>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<configuration>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.bind</groupId>+
    +<artifactId>jaxb-api</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.activation</groupId>+
    +<artifactId>activation</artifactId>+
    +<version>1.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.stream</groupId>+
    +<artifactId>stax-api</artifactId>+
    +<version>1.0</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +<profile>+
    +<id>xsltproc</id>+
    +<activation>+
    +<file>+
    +<exists>../xsltproc_win32/xsltproc.exe</exists>+
    +</file>+
    +</activation>+
    +<build>+
    +<plugins>+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<id>copy-docs-to-builddir</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>src\\main\\doc\\*.* target\\classes+
    +</commandlineArgs>+
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>prepare-xsltproc</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>..\\audioid-rest-interface\\src\\main\\resources\\*.xsd+
    target\\classes</commandlineArgs>
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>exec-xsltproc: target/application.html</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<!--<executable>xsltproc</executable>-->+
    +<executable>../xsltproc_win32/xsltproc.exe</executable>+
    +<commandlineArgs>-o target/application.html+
    src/main/doc/wadl_documentation.xsl
    target/classes/application.wadl</commandlineArgs>
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +</profiles>+
    +<pluginRepositories>+
    +<pluginRepository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</pluginRepository>+
    +<pluginRepository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</pluginRepository>+
    +</pluginRepositories>+
    +<repositories>+
    +<repository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</repository>+
    +<repository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</repository>+
    +<repository>+
    +<id>glassfish-repository</id>+
    +<name>Java.net Repository for Glassfish</name>+
    +<url>http://download.java.net/maven/glassfish</url>+
    +</repository>+
    +</repositories>+
    +</project>+
    Can anyonr contribute?

Maybe you are looking for

  • Screen turns dark and freezes, when refreshing deletes written txt

    Firefox should be more compatible without blaming others. While writing this same note, or an email or text, suddenly the screen turns dark and freezes, impeding to edit or recover the work. When clicking Control Shift R , screen/server refreshes and

  • Project 2007 with Office 365 online

    Hi, I am looking for the Project 2007 compatibility with Office 365 online with SP 2013. Is this possible? If yes, what is the procedure to configure that. I have not worked on Project Server, if anyone can help me or provide any reference links that

  • How can extra tags be removed when creating web services

    Greetings, If the "tables" of the function call (which a web service is generated from) has all the returned values with the correct tag but it also has the tag for the table name, how can the table name tag be eliminated before submitting the messag

  • I can't install adobe air on mac osx 10.7.2- gives me error message

    I have downloaded the installer but when I click on it all I get is this error message however the link it says to download it from is the place where I originally downloaded it from but still this message appers and wont let me install the programme

  • Cs 5.1 broken subpicture

    So I have an encore project for an old client we're updating and everything seems to be fine. The original project was in CS3, now we're working in CS 5.1 The problem is that the subpicture appears to be broken. When pressing the display subpicture b