----- Original Message -----
Sent: Tuesday, July 03, 2001 6:55
AM
Subject: Re: SV: pls Help Invalid Package
Declartions .java File Wont compile
Basic Q, I have concluded that Web Applications handlers must
reside in one of the following standard locations for java classes:-
1) in
a JAR file in the WEB-INF\l ib dir.
2) in a dir in the \WEB-INF\ classes
dir.
3) checked xml file for the necessary tld's look ok (pls state any
ambiguous code/typo problems that could cause Invalid Package Declarations).
4) gone over typo's and snippets.
Thus my java .file's confirm to the above have declared my package's and
imports with the correct syntax. i.e. Capitol letter to begin name of java
class also name within the file itself.
The package path is as follows
WEB-INF\classes\org\breconbeacons\it\ActionMapping.
The name within the
.java file is package org.breconbeacons.it; within this java file i
have an import declaration as below
import
org.apache.struts.action.ActionMapping;
Hence i receive the following errors----
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [66:1] Class
ActionMapping not found in type declaration or import.
import
org.apache.struts.action.ActionMapping;
^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1]
Class ActionMapping not found in type declaration or import.
public
final class ApplicationMapping extends ActionMapping {
^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1]
Public class org.breconbeacons.it.ApplicationMapping is defined in
C:\jakarta-tomcat-3.2.1\webapps\bbnpa\WEB-INF\classes\org\breconbeacons\it\ActionMapping.java
and must be defined in a file called "ApplicationMapping.java".
public final class ApplicationMapping extends ActionMapping {
^
3 errors
Errors compiling ActionMapping.
Chuck Amadi wrote:
Hi, here is a copy of my clipboard.
Cheers Chuckie
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [66:1]
Class
ActionMapping not found in type declaration or import.
import org.apache.struts.action.ActionMapping;
^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1]
Class
ActionMapping not found in type declaration or import.
public final class ApplicationMapping extends ActionMapping {
^
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [85:1]
Public
class org.breconbeacons.it.ApplicationMapping is defined
in
C:\jakarta-tomcat-3.2.1\webapps\bbnpa\WEB-INF\classes\org\breconbeacons\it\ActionMapping.java
and must be defined in a file called "ApplicationMapping.java".
public final class ApplicationMapping extends ActionMapping {
^
3 errors
Errors compiling
ActionMapping.
HELP I can't think of anything else why my .java files won't comile
into .class files.+
Cheers Chuckie
Mikkel Bruun wrote:
> Part 1.1 Type: Plain Text
(text/plain)
>
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is
sent in confidence; if you receive it in error, please can you
let us
know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r
farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn
Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd
ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn
gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech
gystal rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilwch
bob copi.
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority.
This message is intended for the addressee(s) only
and is sent in
confidence; if you receive it in error, please can you
let us know (at
[EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir
gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc
Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y
derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych
yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni
(yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.