I have a standard java web application package under public_html. My java source code is under WEB-INF/classes/. My jsp files are under public_html and public_html/version/v1. Now all of my jsp file under public_html is running fine, however, the jsp files under public_html/version/v1 do not work with following error: *HTTP Status 500: Unable to compile for class JSP: type Exception report message Unable to compile class for JSP: description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 8 in the jsp file: /index.jsp …

Member Avatar
Member Avatar
+0 forum 1

Hello guys. I successfully loaded local files in Spring Web MVC Application, such as javascript files, css files or image files. They were working fine untill yesterday. All the pictures are not being rendered in JSP view. An error is shown similar to that of title. Here is my configuration. ======= HTML CODE ========== <img src='<c:url value="/resources/images/seat_info.png"/>' alt="${ImagePath}"> ======= XML CODE ========== <mvc:resources mapping="/resources/**" location="/resources/" cache-period="31556926"/> <mvc:annotation-driven /> An earlier version of this software is working as expected (i.e. loading pictures). So what could be wrong ?

Member Avatar
Member Avatar
+0 forum 1

I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want them redirected to an error page. I have tried setting security constraints, filters and valves, but I am not sure I am doing it correctly. Could someone tell me the easiest / most efficient way to achieve the above access control to a context? Authenticated users would have the username …

Member Avatar
+0 forum 0

this is image of error...

Member Avatar
Member Avatar
+0 forum 2

i'm creating the Simple CRUD Using Jsp, Servlet and MySQL program and i'm using the eclipse, and i all most done it, finally i'm going to run myself, it can't be run. i will install the jar file of jstl, servlet, mysql connector and finally standard.jar files are installed. but i'm getting exactly this error, any one out of this problem of error. thanks in advance. ![this is image of error, and i will try to start the server to right click one the tomcat v6.0 server at localhost to find start button, to click and displaying this window]

Member Avatar
Member Avatar
+0 forum 3

hey buddy's i had one problem in servlet in jsp program. Exactly i'm getting this error, why i'm getting this error and how to solve this error., Have some tips: thanks in advance.,

Member Avatar
Member Avatar
+0 forum 1

hey buddy's, i'm creating the program of employee details and i will inserted the fields are ADD,UPDATE,DELETE,EXIT,. I hope the all thing to find the exact solutions but, particular one thing only, that was UPDATE and these are the following some tips and code: 1.the input is not going store in database and, 2.the file is not updated. advance congrats for finding the solutions... <html> <head> <title> UPDATING DETAILS ABOUT EMPLOYEE </title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <h3>ENTER THE EMPLOYEE DETAILS</h3><br> <form action="editEmployee.jsp" name="UpdateForm" method="post"> <table cellspacing="1" cellpadding="1" border="1" WIDTH=90%> <tr> <td align="center">YOUR EMPLOYEE ID:</td><td align="center"><B><%= request.getParameter("emp_id")%></B></td> </tr> <tr> …

Member Avatar
Member Avatar
+0 forum 21

this front page: Form.jsp <html> <head> <title> Data Inserting Form </title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <h1>ENTER THE EMPLOYEE DETAILS</h1> <form action="./Insert.jsp" method="post"> <table cellspacing="5" cellpadding="5" border="5"> <tr> <td align="right">Employee Name:</td> <td><input type="text" name="EmployeeName"></td> </tr> <tr> <td align="right">Employee_id:</td> <td><input type="text" name="Employee_id"></td> </tr> <tr> <td align="right">Nationality:</td> <td><input type="text" name="Nationality"></td> </tr> </table> <input type="submit" value="submit"> </form> </body> </html> Insert.jsp: <html> <head> <title> Inserting Data </title> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"> </head> <body> <%@ page import="java.sql.*" %> <%@ page import="java.sql.DriverManager.*" %> <%@ page import="java.sql.Statement.*" %> <%@ page import="java.io.*" %> <% String driverName="com.mysql.jdbc.Driver"; String connectionUrl="jdbc:mysql://localhost:3306/"; String user="root"; String password="sarakrish"; String dbName="employee"; String EmployeeName=request.getParameter("EmployeeName"); int …

Member Avatar
Member Avatar
+0 forum 4

ClassNotFoundException:com.mysql.jdbc.Driver

Member Avatar
Member Avatar
+0 forum 2

I have created an ASP.NET application in vb.net Use a Ubuntu 13.10 Server with Apache Tomcat No i want deploy (install) this application on this server. Is this possible? If so, how? What are the consequences? Thanks, Andre

Member Avatar
Member Avatar
+0 forum 1

I want to develop a web application. In that I need to implement that the user can't open it in more than one instance in any system. I want to restrict it based on the user and machine. ie. a single user name should be used to login to the application only once at any given time and in a single system the application should not be opened more than one instance. Can anybody suggest me how to achieve this. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

I'm trying to deploy an app into tomcat..but after uploading the war file..it the tomcat manager always shows permgen error could anyone help me why is this error occuring..my tomcat server has around 128MB runtime memory and the war file is only around 25MB?? thank you.

Member Avatar
Member Avatar
+0 forum 3

Im having problems with Tomcat on a red hat virtual box. Tomcat is installed and it talks to java. it work localhost to localhost but when I try to open port 8080 from outsite localhost it wont work. Any ideas why? Im new to Tomcat and JSP

Member Avatar
Member Avatar
+0 forum 1

Hey there guys :) I need to create a page (HTML) which contains some static content, and an `iframe`. The `iframe` is used to contain an external page, so I am trying to 'inject' the source of the page into the document element of the` iframe`. You would ask me, why not directly set the `src` attribute of the `iframe` element? Well, I need to process and alter the HTML of the source page before posting it, so this is out of the question. I should probably add that I am developing an application in Java, so I'm using Servlets …

Member Avatar
Member Avatar
+0 forum 1

Hi Everyone. I make an aplication with netbeans, struts and tomcat as server. When i run it locally this work perfect. But when i deploy the application in other machine it not work correctly.! The application show a list the people, if you want to change the name you can do it, but if the name have accents it is saved in database with wrong caracters!!! I can not understand why work perfectly locally but not work in other servers(other machines). I put in jsp code: <%@ page language="java" contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1" %> Thanks all. Anyquestion please let me know. PS: …

Member Avatar
Member Avatar
+0 forum 4

hi... When trying to start up tomcat service in xampp 1.7.7 or earlier, it may not be able to startup properly. Following are the message I noticed when trying to execute it: i am getting an error [XAMPP]: Searching JDK HOME with reg query … Error: The system was unable to find the specified registry key or value . [XAMPP]: Cannot find current JDK installation! . [XAMPP]: Cannot set JAVA_HOME. Aborting … pls help me.. how can i solve this?

Member Avatar
Member Avatar
+0 forum 2

Hello I am trying to run a perl script on tomcat server. I am putting the incoming http request in a variable data which collects the headers as well as the text file attachment data. The code is like this : .... while(<>){ $data = $data . $_ ; } ... This works fine on apache but on tomcat 6.0 this is getting hanged. What is the issue? Thanks in advance Harsh

Member Avatar
+0 forum 0

my client using apache tomcat server in this server form post method not working but instead am using get method its working what the configuration am missing in web xml?

Member Avatar
Member Avatar
+0 forum 2

**Hello everyone, I dont know if im placing this in a good place. I have a problem with my application. Its a simple application with connecting to database, retriving info and populating table. I changed the apache tomcats context.xml to looks like this:** <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="root" password="MY_PASSWORD" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/test"/> ****My jsp look like this: **** <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ page import="java.util.*" %> <%@ page import="business.Module" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <table border=1 …

Member Avatar
+0 forum 0

Hi Friends, I need to some help in connecting to webserver using c shell or tcl scripting in linux ie in my office in linux system we have some intranet which is run by tomcat server so i need to connect to that server and read some data existing in that server So how should i connect to that tomcat/webserver using shell scripting in cshell/tcl anyone would be great. Thanks Srikanth M.

Member Avatar
Member Avatar
+0 forum 9

Hi, I have developed a web application using NetBeans and GlassFish v3. Now I want to change to Apache Tomcat, beacause of the unavalabilty of free GlassFish web hosting. So, my question is that, can I change my fully built web application to Apache Tomcat from GlassFish and [B]If yes how[/B]? I have not used struts or anything. My project only contains jsp files, servlets and java class files. I have googled for the same and most results show how to switch from tomcat to glassfish, opposite of what I am looking for. P.S. If you can suggest a free …

Member Avatar
Member Avatar
+0 forum 5

i am making a simple bike site using servlets.i have a hyperlink toh a productServlet in menubar..but when i click dat hyperlink.it keep on showing connecting.and page do not load..anyone can tell what could be the reason..i can't show code here..

Member Avatar
Member Avatar
+0 forum 1

How can I get SSL working in Tomcat 6.x under Linux?, ive read the documentation here: [url]http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html[/url] but im not sure how to do it with a certificate I will make myself (its a dev box)

Member Avatar
Member Avatar
+0 forum 2

Iam working on a java based web app using the Eclipse ide and the tomcat server, My question is, is it possible to develop this app using the ide in my computer an a tomcat server located in another. All the guides i found involve me making the server in my own computer. Can you do it the other way? Is there a plugin or tool for it?

Member Avatar
Member Avatar
+0 forum 1

hi all i am new to java i want to run java php bridge as described [URL="http://php-java-bridge.sourceforge.net/doc/tomcat6.php"]here[/URL] now i am getting the following error [CODE]HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Could not connect to server php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:133) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) java.lang.Thread.run(Unknown Source) root cause php.java.bridge.http.FCGIConnectException: Could not connect to server php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64) php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) java.lang.Thread.run(Unknown Source) root cause java.io.IOException: File \\.\pipe\C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp\JavaBridge614082128684791829.socket not writable php.java.bridge.http.FCGIConnectException.<init>(FCGIConnectException.java:37) php.java.bridge.http.NPChannelFactory.test(NPChannelFactory.java:64) php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:131) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) …

Member Avatar
Member Avatar
+0 forum 5

Even after setting all the paths correctly, I get an error saying the "setclasspath.sh" cannot be found. I checked the directory and it was there. I then changed the permissions using chmod +x setclasspath.sh but to no avail. I've changed the permissions of all the files inside the "bin" directory but it's not working. Please help. [code=text]ash@Megadeth:~$ JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk ash@Megadeth:~$ export JAVA_HOME ash@Megadeth:~$ JRE_HOME=/usr/lib/jvm/java-1.6.0-openjdk/jre ash@Megadeth:~$ export JRE_HOME ash@Megadeth:~$ PATH=/usr/lib/jvm/java-1.6.0-openjdk/bin:$PATH ash@Megadeth:~$ export PATH ash@Megadeth:~$ CLASSPATH=$PATH:$CLASSPATH ash@Megadeth:~$ export CLASSPATH ash@Megadeth:~$ CATALINA_HOME=/home/tomcat/tomcat1 ash@Megadeth:~$ export CATALINA_HOME ash@Megadeth:~$ cd tomcat/tomcat1/bin ash@Megadeth:~/tomcat/tomcat1/bin$ ./startup.sh Cannot find /home/tomcat/tomcat1/bin/setclasspath.sh This file is needed to run this program ash@Megadeth:~/tomcat/tomcat1/bin$[/code]

Member Avatar
Member Avatar
+0 forum 1

System Information: OS: Ubuntu 11.10 Server: Tomcat 7.0 JVM: openjdk 1.6 I have checked if the server is running by going to [url]http://localhost:8080[/url]. It's working fine. I just need to know the directory in which I should save my servlet in order to run it. I think I am supposed to save it in the "Examples" folder but I don't know where it is located.

Member Avatar
Member Avatar
+0 forum 1

Hello people I create a simple Hello World project (servlet) o Netbeans. I configured it so as to run under Tomcat, but when I click on Run to execute the project it says this meassage: [COLOR="Red"] /home/begueradj/NetBeansProjects/projet1/nbproject/build-impl.xml:721: The module has not been deployed.[/COLOR] Why is that ?

Member Avatar
Member Avatar
+0 forum 1

how to lookup datasource which is created in glassfish with some jndi/dbname name. I am trying to get datasource writing code in a servlet like this Datasource datasource = (Datasource)initialContext.lookup("jdbc/customer"); Connection con = datasource.getConnection(); but it is throwing NameNotFoudExcepion for this context . how can access datasource created outside of tomcat that is in Glassfish in our servlets....

Member Avatar
+0 forum 0

I have a project made with jsp on a apache tomcat server. I also have intalled wamp server package for the purpose of using a data base made with phpmyadmin. I was wondering if i could also use php pages im my project. I learned that a posible way would be to make the apache tomcat server send the php request to the apache html server in the wamp package. I have followed a lot of tutorials to no result, somme were out of date, some i just couldn't understand as i have no server configuration esperience. Any help is …

Member Avatar
Member Avatar
+0 forum 6

The End.