Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Chapter 21 Struts Framework - example install problem w/ Tomcat 4.0b7


Message #1 by "Jason Long - www.jmlie.com" <jason_m_long@h...> on Sun, 19 Aug 2001 04:09:54
I think this problem is related to the JAXP parser being used. In the
ch21/WEB-INF/lib directory you need /either/:

* Copies of the jaxp.jar and crimson.jar files found in your
  $CATALINA_HOME/server/lib directory. These are slightly modified from
  the ones you can download from java.sun.com, to avoid this problem.

* The latest download from newparticles.com uses xerces.jar from Xerces
1.2.3
  instead.

Make sure you don't have any other copies of the JAXP parser files in the
$CATALINA_HOME/lib or $CATALINA_HOME%/common/lib directories. There's more
on
using XML parsers with Tomcat 4.0 in the release notes, in the
$CATALINA_HOME/src directory.

Richard Huss
Technical Architect, Wrox Press Ltd
richardh@w...
www.wrox.com


-----Original Message-----
From: Jason Long - www.jmlie.com [mailto:jason_m_long@h...]
Sent: Tuesday, August 21, 2001 4:50 AM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] Re: Chapter 21 Struts Framework - example install
problem w/ Tomcat 4.0b7


I have now downloaded the "Wrox Example Source Code - wrox-struts-tomcat-
4.0-b6-08-07-2001.jar" from www.NewParticles.com.  I was sure this would 
correct my sealing violation problem, but it has not.  I opened up this 
jar file and recompiled the project using Ant 1.3(see results further 
down).  I copied all the created project files into .....webapps/ch21.  I 
still get the same sealing violation that I recieved previously when 
trying to access any jsp file in this project.  I have been experimenting 
with my path variable, but to with no luck.  I would appreciate any 
advice.  My project relies heavily on using the Struts Framework and this 
example would be a great place for me to get started if I can get it to 
work. Here are my path settings for Windows2000Advanced Server.

************************************************************************
Classpath settings
************************************************************************
User variable path
G:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;
G:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;
G:\Program Files\Microsoft Visual Studio\Common\Tools;
G:\Program Files\Microsoft Visual Studio\VC98\bin

System variable path
G:\apache\jakarta\ant\bin;
G:\oracle\ora81\bin;
G:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;
C:\Program Files\Oracle\jre\1.1.7\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem

Using CLASSPATH(Message given when Tomcat starts):
G:\apache\jakarta\tomcat-4.0-b7\bin\bootstrap.jar;
G:\jdk1.3.1\lib\tools.jar

*************************************************************************
Results from Ant build of extracted wrox-struts-tomcat-4.0-b6-08-07-
2001.jar
*************************************************************************
Buildfile: build.xml

init:

prepare.dirs:
    [mkdir] Created dir: F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\images
    [mkdir] Created dir: F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\WEB-INF\lib
    [mkdir] Created dir: F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\WEB-INF\classes
     [copy] Copying 2 files to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts\WEB-INF\lib

dist.def.files:
     [copy] Copying 10 files to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts\WEB-INF

dist.html:
     [copy] Copying 2 files to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts

dist.images:
     [copy] Copying 2 files to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts\images

dist.jsp:
     [copy] Copying 13 files to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts

dist.prop:
     [copy] Copying 1 file to F:\Downloads\Professiona-JSP-2nd Edition-
Code\New Particles\extract\wrox-struts\WEB-INF\classes\com\wrox\pjsp2
\struts

dist:

compile:
    [javac] Compiling 25 source files to F:\Downloads\Professiona-JSP-2nd 
Edition-Code\New Particles\extract\wrox-struts\WEB-INF\classes
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\common\CheckLogonTag.java:10: warning: 
org.apache.struts.util.BeanUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.BeanUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\order\OrderAction.java:20: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\registration\EditRegistrationAction.java:17: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\registration\SaveRegistrationAction.java:21: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\servlets\DatabaseServlet.java:24: warning: 
org.apache.struts.util.BeanUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.BeanUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\shopping\AddToCartAction.java:22: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\shopping\CheckoutAction.java:20: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\shopping\ShowCategoriesAction.java:20: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] F:\Downloads\Professiona-JSP-2nd Edition-Code\New 
Particles\extract\wrox-struts\src\com\wrox\pjsp2
\struts\shopping\ShowCDsAction.java:20: warning: 
org.apache.struts.util.PropertyUtils in org.apache.struts.util has been 
deprecated
    [javac] import org.apache.struts.util.PropertyUtils;
    [javac]                               ^
    [javac] 9 warnings

all:

BUILD SUCCESSFUL

Total time: 2 seconds

  Return to Index