Package prob in Tomcat
I am currently using tomcat-4.1.24 and have edited the Root Context to <Context path="/sms" docBase="c:\SMS_App" debug="0" reloadable="true" crossContext="true"> in server.xml file.
One folder named �SMS_App� was created in the C:\, within that folder I created a �sms� folder. I placed ComputeSmsData.java and SerialToGsm.java into the �sms� folder. Both java files has � package sms; � in them. I written a inbox.jsp and saved it in the �SMS_App� folder. The codes are as follows:
<%@ page language="java" contentType="text/html" import="java.sql.*,java.io.*, java.util.*, javax.comm.*, sms.*" session="true" %>
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<% // Declare varibles
ComputeSmsData sms = new ComputeSmsData(); // Line 11
SerialToGsm stg = new SerialToGsm("COM4"); // Line 12
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> Sending SMS </title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
When I run these codes with the Tomcat I got error msg like:
� package sms does not exist
� cannot resolve symbol
ComputeSmsData sms = new ComputeSmsData();
� cannot resolve symbol
SerialToGsm stg = new SerialToGsm("COM4");
If I comment out line 11 & 12 it doesn�t give an error msg. I try followings but still to no avail.
<%@ page language="java" contentType="text/html" import="java.sql.*,java.io.*, java.util.*, javax.comm.*, sms.ComputeSmsData, sms.SerialToGsm " session="true" %>
Can anyone tell me what is the prob to it? I did create a "WEB-INF" folder in "SMS_App" folder, within the "WEB-INF" I created another folder called "classes" and put the ComputeSmsData.class and SerialToGsm.class in them. But again still cannot work....
To have classes and servlets in a webapp, you would have to create a WEB-INF folder under your context path, add a classes folder under that, and then your package structure:
C:\SMS_APP\ /*<---- Your Context path */
C:\SMS_APP\WEB-INF\ /*<---Webapp Info folder, holds libraries, classes, tags, and the all important web.xml */
C:\SMS_APP\WEB-INF\classes\ /* <----- The top of your 'classpath' for the webapp. Packages under here */Take a search for packaging webapps and WARs (Web-app ARchive) to learn more. Also, maybe take a look at the J2EE tutorial or a J2EE book to learn more about it...
Similar Messages
-
Class/Package problem with tomcat
Hi everyone,
i am pretty new to tomcat and jsp and I have to setup a webapp using tomcat. Actually I setup the tomcat-server and moved all files in the webapps/ROOT/myapp directory. Unfortunately I get the following error-message when I access the main page of the webapp: org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 14 in the jsp file: /myapp/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.29/work/Standalone/localhost/_/myapp/index_jsp.java:43: package de.myclasses.myapp.beans does not exist
de.myclasses.myapp.beans.MyClass tmb = null;The package de/myclasses/myapp/beans is in the classes directory in the WEB-INF folder within my application directory. So do I have to set something like a CLASSPATH somewhere?
Thanks!Hi everyone,
i am pretty new to tomcat and jsp and I have to setup
a webapp using tomcat. Actually I setup the
tomcat-server and moved all files in the
webapps/ROOT/myapp In this case, the webapps/ROOT/ is you application directory (servlet context). The myapp is a sub-context, and does not get a WEB-INF directory.
So, either your classes should be in:
webapps/ROOT/WEB-INF/classes/...
or (better) you should make a new Servlet Context in parallel to the ROOT context (under webapps)
webapps/myapp/
and put the classes under
webapps/myapp/WEB-INF/classes/...
Don't forget to make a webapps/myapps/WEB-INF/web.xml.
directory. Unfortunately I get the
following error-message when I access the main page
of the webapp: org.apache.jasper.JasperException: Unable to compile
class for JSP
An error occurred at line: 14 in the jsp file:
/myapp/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.29/work/Standalone/local
host/_/myapp/index_jsp.java:43: package
de.myclasses.myapp.beans does not exist
de.myclasses.myapp.beans.MyClass tmb =
tmb = null;The package de/myclasses/myapp/beans is in the
classes directory in the WEB-INF folder within my
application directory. So do I have to set something
like a CLASSPATH somewhere?
Thanks! -
Urgent,: Info package prob in process chain creation..
Hi Experts,
I wanted to create a process chain for my master data, so then i started creating it, initially when i started executing info package which is the first step to undertake, the list of info packages is not generating when in clicked upon search icon. Rather it says "no data selected". Am not familiar in creating process chains. This is the first time i started creating.. Could you plz assist me with clear information in how to resolve this?
Thanks.Hi,
Check this link:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
/people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
/thread/471435 [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80a35cb9-fc1c-2a10-cfa8-94b94e5ac7a9
documentation about the complete sap-proces-chain
Kind Regards,
Arun.M
Edited by: M Arun on Jan 10, 2008 4:06 PM -
Trying to page import directive in a JSP access a class in default package
I am trying to import a class the is in my default package directory for Tomcat 4.1.18 (context-root\web-inf\classes\*.java). I am getting the following error
This is error using Tomcat 4.1.18
org.apache.jasper.JasperException:Unable to compile class for JSP
C:\Program Files\Tomcat4.1\work\Standalone\localhost\csc297\HTML\SearchByName_jsp.java:9: '.' expected
import Product;
C:\Program Files\Tomcat4.1\work\Standalone\localhost\csc297\HTML\SearchByName_jsp.java:10: '.' expected
import Category;
This is error using Tomcat 4.0.6
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\forte4j\tomcat401\work\localhost\C_3A_5Cforte4j_5Ctomcat401_5Cwebapps_5Ccsc297\HTML\SearchByName$jsp.java:5: Class Product not found in import.
import Product;
^
C:\forte4j\tomcat401\work\localhost\C_3A_5Cforte4j_5Ctomcat401_5Cwebapps_5Ccsc297\HTML\SearchByName$jsp.java:6: Class Category not found in import.
import Category;
Here is snippet of code from my JSP:
<%@ page import= "java.util.*"%>
<%@ page import= "java.text.DecimalFormat"%>
<%@ page import="Product"%>
<%@ page import="Category"%>
Remember these classes are in my default package of my context-root
Any ideas would greatly appreciatedWeird error. Never seen this one before.
Try packaging your classes eg:package myClasses;and import them:<%@page import="myClasses.*"%>Should fix the problem.
Anthony -
How to call class file from jsp without creating packages
i m using tomcat 5.5
i stored my class file into WEB-INF\Class directory
how to call that class file. from my jsp page.
i got some error.
i used package concept,that works fine.i m using tomcat 5.5
i stored my class file into WEB-INF\Class directory
how to call that class file. from my jsp page.
i got some error.
i used package concept,that works fine.Then use packages.
As of Java1.4, you can no longer import classes from the default package (no package declared) into classes that are packaged.
All Tomcat classes are in packages, including the compiled JSP.
Therefore: Your classes need to be in a package inorder to be imported and used by the JSP.
Why the problem? If you know it works with packages, why try not to use them? -
Good Day,
Can anyone offer advice on getting some documentation to enable Apache2-
Jakarta-Tomcat connector?
I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
SLES9.
In Read Hat 8 I just add this sentences in httpd.conf and it works.
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkMount /epagos/* tomcat
No such luck on NLSBS9 follow instruction in
/usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
I think SuSEconfig --module apache2 it's not working, because i customize
test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
http://localhost/jsp-examples/
http://localhost/servlets-examples
Only work pages
http://localhost:8080/jsp-examples/ and
http://localhost:8080/servlets-examples/
Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
Connector?
How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
Thanks for your time,
Regards,
Ing. Juan L. MeraOn Mon, 2006-01-16 at 19:22 +0000, Juan Mera wrote:
> Good Day,
>
> Can anyone offer advice on getting some documentation to enable Apache2-
> Jakarta-Tomcat connector?
>
> I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
> SLES9.
>
> In Read Hat 8 I just add this sentences in httpd.conf and it works.
> JkWorkersFile /usr/local/apache/conf/workers.properties
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel info
> JkMount /epagos/* tomcat
>
> No such luck on NLSBS9 follow instruction in
> /usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
>
> I think SuSEconfig --module apache2 it's not working, because i customize
> test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
> http://localhost/jsp-examples/
> http://localhost/servlets-examples
> Only work pages
> http://localhost:8080/jsp-examples/ and
> http://localhost:8080/servlets-examples/
>
> Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
> Connector?
>
> How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
No need to duplicate post ;) -
Apache Tomcat 4 error - cant fine a servlet
Hi,
I have a web.xml file that defines classes and url patterns fine. For some reason though, which I cant work out, even when I add the following to web.xml, Tomcat says it cant find the requested resourse.
http://localhost:8080/servlet/SimpleShoppingBasket
<servlet>
<servlet-name>SimpleShoppingBasket</servlet-name>
<servlet-class>SimpleShoppingBasket</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SimpleShoppingBasket</servlet-name>
<url-pattern>/servlet/SimpleShoppingBasket</url-pattern>
</servlet-mapping>
The error displayed is:
HTTP Status 404 - /servlet/SimpleShoppingBasket
type Status report
message /servlet/SimpleShoppingBasket
description The requested resource (/servlet/SimpleShoppingBasket) is not available.
Apache Tomcat/5.5.17
Every other servlet I have runs fine except this one. I have checked the spelling of the class and it is correct. I am nearing my wits end!
Please help! What could be wrong? Is there a cache that I can delete somewhere maybe?Try putting the servlet class into a package. There could be access problems with it being in the "unnamed" package
Check the tomcat logs for any errors that servlet may be creating ([TOMCAT]/logs directory)
Also is your web app installed in the ROOT directory or in its own context?
If in its own context then the url would be http://localhost:8080/mycontext/servlet/SimpleShoppingBasket
What do the other (working) servlet definitions look like?
How are they different from this one? -
Hello I'm using Tomcat 4.0 for Win. I'm trying to create a file in my JSP, however no matter how I enter the directory string on where to put the file it will put it into the directory I start tomcat from. C:\apache tomcat 4.0\bin. How do I define I want to put it into the C:\apache tomcat 4.0\webapps\root\videos directory? I've tried using the ..\webapps\root\videos, but no matter what I put it will always put the new file in the bin directoty. Thanks,
RobLets say you have a Web App named "Bull", your directory structure would be ..
<code>
tomcat 4--
webapps
--Bull
or
...(tomcat install directory)\webapps\Bull
</code>
You would put your JSP page in the Bull directory. Lets say that the JSP page is called .. bullpoop.jsp and you put this file into your Bull directory. You would execute tis JSP page by typing;
//If you did not change your port number it will be the default 8080.
http://localhost:8080/Bull/bullpoop.jsp
//If you changed your port to 80 then its just;
http://localhost/Bull/bullpoop.jsp
It is case sensitive, or i have found it to be, so becareful just in case!!! (ok that was a bad joke =P )
IF you want to use classes in a package structure and ONLY use them in the "Bull" webapp then install them into the following;
<code>
tomcat 4--
webapps
Bull
WEB-INF
classes
package hierarchy
or
(tomcat install directory)\webapps\Bull\WEB-INF\classes\(package hierarchy)
</code>
By package Hierarchy i mean the following;
lets say you have a class called "Poop". You package the "Poop" class into the
package bull.stinky;
your directory structure would be;
<code>
bull--
stinky
--Poop.class
or
(tomcat install directory)\webapps\Bull\WEB-INF\classes\bull\stinky\Poop.class
</code>
In your case you want to have a Video in a directory on its own. The following would work.
<code>
tomcat 4--
webapps
Bull
video
or
(tomcat install directory)\webapps\Bull\video\
</code>
You would then reference that directory the following way in your code ..
/Bull/video/myvideo.mpg
If you want to change your port number from 8080 to 80 (if its not already being used. DO the following (Your URL's will look a lot cleaner)
You need to open the server.xml file in the conf directory and that is located here ..
<code>
tomcat 4--
conf
--server.xml
or
...\(tomcat install directory)\conf\server.xml
</code>
Change the port to 80 from 8080
<Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="8080" ...
... />
I hope that helps.
Here are a coupleof sites that will help.
www.coreservlets.com and www.moreservlets.com
If you have not purchased these books DO IT NOW ! ! ! !! hehe they are excellent!!!!!!!!! They explain in great detail servlets and JSP.
Good luck =)
Oh yah in www.moreservlets.com there is a section on setting up Tomcat 4. www.coreservlets.com has set up for Tomcat 3.2
again GOOD LUCK =) -
Tomcat installation permission
Hi all,
i installed tomcat7 on my pc but I received the following error:
warning: directory permissions differ on /etc/tomcat7/
filesystem: 770 package: 775
warning: directory permissions differ on /etc/tomcat7/Catalina/
filesystem: 755 package: 775
find: `tomcat' is not the name of a known user
what does it mean? should I change the permission in my filesystem?
thanksHi,
you have to setup a password for your tomcat admin user in tomcat-users.xml. You can find more information on how to do this by looking in the internet. It is not really necessary to administer your tomcat server installation though.
Regards,
Stratos
PS:The credentials of the tomcat administrator have nothing to do with the credentials of the BOBJ administrator, which you have the option to set during the installation -
Is there a way to get hooks into the Tomcat server and redeploy your app directly from your own JSP? Obviously the admin package provided by Tomcat allows for it so I assume it is possible. Thanks.
I dont know if thats possible, but I would not suggest doing it. I believe its better to always let your Sys Admin redeploy updates to your production applications. If you redeploy on-the-fly via a JSP page, anyone who is logged on would lose their data in the middle of their work. The Sys Admin would normally redeploy after hours. Developers should throughly test their applications and only ask the Sys Admin to redeploy after a significant number of changes have been created and QA tested, not after every minor change.
-
Problem with JavaBeans in JSP.IT'S URGENT!!!
Hi, i have problems with JavaBeans in JSP.
In a jsp file( locating in ROOT directory of tomcat 4.0.6 :jakarta-tomcat-4.0.6\webapps\root ) i have this code:
<jsp:useBean id="paramBean" class="licentza.ParamBean" />
<jsp:setProperty name="paramBean"
property="nume"
value='<%= request.getParameter("numeUser") %>' />
where ParamBean it's a "bean" class locating in jakarta-tomcat-4.0.6\webapps\examples\web-inf\classes\licentza (licentza is the package i'm using).
And i get this error:
Generated servlet error:
D:\jakarta-tomcat-4.0.6\work\Standalone\localhost\_\dora\intrare2$jsp.java:67: Class licentza.ParamBean not found.
ParamBean paramBean = null;
What is the problem?Thank you.Hi,
Put the class file or the package under :jakarta-tomcat-4.0.6\webapps\root\WEB-INF\classes.
Rajesh -
ClassNotFoundException: oracle.adf.share.http.ServletADFFilter
We have recently started using ADF and I have been tasked with deploying it to a Apache Tomcat environment.
I have a simple 'jspx' with a ADF Data Visualization graph on it, that I have deployed to my local tomcat env using the JDeveloper deployment package (WAR file). However, when tomcat tries to deploy/start the web page, I get the below exception. It would seem that I am missing some files in the deployment package or that Tomcat cannot find certain files. I have also run the ADFInstaller.jar and that completed successfully. Does anyone know what I have missed?, I've spent a lot of time googling but have not found anything that helps me.
01-May-2009 13:35:28 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ServletADFFilter
java.lang.ClassNotFoundException: oracle.adf.share.http.ServletADFFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
01-May-2009 13:35:28 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter trinidad
java.lang.NoClassDefFoundError: javax/faces/context/ExternalContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.init(TrinidadFilter.java:53)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
01-May-2009 13:35:28 org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl
java.lang.NoClassDefFoundError: javax/faces/context/ExternalContext
at org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl.contextDestroyed(TrinidadListenerImpl.java:39)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4387)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)Hi,
this filter sets the ADF binding context. If you have the following setting in your web.xml file then this filter may not be needed at all
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
Frank -
I am trying to compile a servlet using the import javax.servlet.*;
import javax.servlet.http.*; packages. But the only thing I keep getting is :
BasicServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
BasicServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
BasicServlet.java:6: cannot resolve symbol
symbol : class HttpServlet
location: class BasicServlet
public class BasicServlet extends HttpServlet
I have included the servletapi2_1_1-win package from the sun site containing the servlet.jar in my classpath. Still it refuses to compile. Besides does anybody know how to compile using the servlet packages available in Tomcat or j2ee, both of which I have on my machine , but can't figure what to include.
Please help.
^have you actually included the servlet.jar file in your classpath or just the directory, as you need to explicity declare jar files in the classpath...
javac -classpath %CLASSPATH%;C:\[servlet-jar-path]\servlet.jar Servlet.class -
Hi,
I can't load my JDBC driver for SQLserver database to
opening my DB with a servlet ...
platform : Windows 2000 server
servlet container : Jakarta-tomcat 3.2.2
jdk : jdk1.3
After executing the servlet which load the JDBC driver, the following message was appearing:
"ClassNotFoundException, java.lang.NullPointerException"
Thanks for your help.Looks like the servlet is not able to find the required class in the package...Tomcat rewrites the classpath....So you might want to look at /bin/tomcatEnv.bat and modify it accordingly....Of course, check your classpath env variable to see if all the necessary zip/jar files are included.
-
I have a new T2000 that I am trying to boot from Solaris 10 DVD.
I issue "boot cdrom" from ok and get
Can't read disk label
Can't open disk label package
probe-ide shows no devices
If I boot to the HD and login I can access the cdrom just fine.
I'm using Sun issued Solaris 10 DVD for Sparc.
What needs to be done to get the cdrom to be recognized so it can boot?I also have this problem. On my new T2000 I was able to install the 5/08 OE from cd with "boot cdrom", however while setting up software mirroring I mistakenly corrupted the install. I decided to upgrade to the 6.6.1 firmware before I re-installed the OE.
After the upgrade I attempted the same "boot cdrom" command but I was unable to boot into the installer from the same media as before. It however allowed me to boot from the cdrom to single user mode (boot cdrom -s) then as a test I attempted to boot the installer with (boot cdrom -nowin) and vola, that worked. Bug?
{0} ok boot cdrom
Sun Fire T200, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.28.1, 16256 MB memory available, Serial ######.
Ethernet address 0:0:0:0:0, Host ID: ######.
Boot device: /pci@7c0/pci@0/pci@1/pci@0/ide@8/cdrom@0,0:f File and args:
Can't read disk label.
Can't open disk label package
ERROR: boot-read fail.
{0} ok boot cdrom -nowin
Boot device: /pci@7c0/pci@0/pci@1/pci@0/ide@8/cdrom@0,0:f File and args: -nowin
Loading ufs-file-system package 1.4 04 Aug 1995 13:02:54.
FCode UFS Reader 1.12 00/07/17 15:48:16.
Redirected to slice: 1
Loading: /platform/SUNW,Sun-Fire-T200/ufsboot
Loading: /platform/sun4u/ufsboot
Warning: boot will not enable cache
SunOS Release 5.10 Version Generic_127127-11 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
os-io Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface e1000g3...
Skipped interface e1000g3
.
Maybe you are looking for
-
How do i use my itunes giftcards for clash of clans
i'm having difficulty paying for gems in clash of clans with an itunes gift card. they want a credit card, but i don't have one. thanks.
-
HD video not clear when editing
Hello all. I have completed a few projects shooting with my HD camera, and all have been imported nice and clear. Now, I am editing and the video is not clear. It is smaller and not filling the entire screen. I must have switched a setting somewhere,
-
Keep trying to log into my Vimeo account on my 3rd gen Apple TV and keep getting this: Sign In Failed 401 Unauthorized - User Not Found - The user credentials passed are not valid I am perfectly able to sign in and browse Vimeo on both Safari on my i
-
To access iTunes and store etc am having to close down AdAware
-
Determining performance while development
Dear all, We are creating a new report that selects data from the BSEG and two other tables. There is very little data available on the development server. In such a situation, will the results of SQL trace run on development server be indicative of