CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 HTTP Status 404 - /HelloWorld/HelloWorld.jsp

Print topic Send  topic

Author Message
dekacode

Posts: 53
Posted: 04/12/2004, 7:48 PM

CCS PROPERTIES
Class Path: C:\jdk1.3.1_11\servlet.jar
Target Server: Tomcat 4
Deploy: unpacked
Manager URL: http://localhost:8080/manager/
Context Path: /JSPPortal
Server Path: C:\Program Files\Apache Group\Tomcat 4.1\webapps\HelloWorld
Server URL: http://localhost:8080/HelloWorld

CCS BUILD MESSAGE
Generating "HelloWorld"
Generating Common Files
call "C:\Sun\AppServer\lib\ant\bin\ant.bat" -buildfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\build.xml" -logfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\build.log"

Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\build.xml
init:
[echo] JSP build: 2.2.0084

check.servlet.lib:

compile:
[mkdir] Created dir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\app\WEB-INF\classes
[javac] Compiling 205 source files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\app\WEB-INF\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.

build:
[copy] Copying 4 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\app\WEB-INF
[copy] Copying 6 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld15\CCSBuild\app

BUILD SUCCESSFUL
Total time: 14 seconds

Build finished
Publishing to "C:\Program Files\Apache Group\Tomcat 4.1\webapps\HelloWorld\"
Tomcat 4 application manager: OK - Installed application at context path /JSPPortal

ERROR MESSAGE
HTTP Status 404 - /HelloWorld/HelloWorld.jsp
--------------------------------------------------------------------------------
type Status report
message /HelloWorld/HelloWorld.jsp
description The requested resource (/HelloWorld/HelloWorld.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/4.1.30
View profile  Send private message
ignat


Posts: 55
Posted: 04/12/2004, 11:38 PM

You publish as /JSPPortal but access as /HelloWorld, hence 404. Context path should be in sync with Server URL.
View profile  Send private message
dekacode

Posts: 53
Posted: 04/13/2004, 8:31 AM

CCS PROPERTIES CHANGED
Context Path: /HelloWorld

ERROR MESSAGE
HTTP Status 404 - /HelloWorld/HelloWorld.jsp
--------------------------------------------------------------------------------
type Status report
message /HelloWorld/HelloWorld.jsp
description The requested resource (/HelloWorld/HelloWorld.jsp) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/4.1.30

CCS BUILD MESSAGE
Generating "HelloWorld"
Generating Common Files
call "C:\Sun\AppServer\lib\ant\bin\ant.bat" -buildfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\build.xml" -logfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\build.log"

Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\build.xml
init:
[echo] JSP build: 2.2.0084
check.servlet.lib:

compile:
[mkdir] Created dir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\app\WEB-INF\classes
[javac] Compiling 205 source files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\app\WEB-INF\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.

build:
[copy] Copying 4 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\app\WEB-INF
[copy] Copying 6 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~HelloWorld\CCSBuild\app

BUILD SUCCESSFUL
Total time: 28 seconds

Build finished
Publishing to "C:\Program Files\Apache Group\Tomcat 4.1\webapps\HelloWorld\"
Tomcat 4 application manager: OK - Installed application at context path /HelloWorld
View profile  Send private message
dekacode

Posts: 53
Posted: 04/13/2004, 10:29 AM

Would anyone be willing to supply the information below from a successful deployment of HelloWorld.

1. the CCS properties
2. the CCS Build output that comes after Generating "HelloWorld" on the screen

CCS PROPERTIES
Class Path: ?
Target Server: Tomcat 4
Deploy: ?
Manager URL: ?
Context Path: ?
Server Path: ?
Server URL: ?

CCS BUILD MESSAGE
Generating "HelloWorld"
...
View profile  Send private message
ignat


Posts: 55
Posted: 04/14/2004, 2:39 AM

Here:

Class Path: C:\java\jakarta-tomcat-4.0.6\common\lib\servlet.jar
Target Server: Tomcat 4
Deploy: unpacked
Manager URL: http://localhost:8080/manager
Context Path: /Sample
Server Path: <empty>
Publishing/Server Path:C:\ccsprojects\Sample\Tomcat
Publishing/Server URL: http://localhost:8080/Sample
View profile  Send private message
Dave
Posted: 04/15/2004, 11:20 AM

Ignat,
the boulder is a few more inches closer to the top!
Next error:
File "/ccstags" not found - (HTTP Status 500 error message screen dump
below).

FYI There is a previous thread on this subject
http://forums.codecharge.com/posts.php?post_id=11602
but there was no explanation on how to get rid of the error
Your help is greatly appreciated!
==============================================================

HTTP Status 500 -

----------------------------------------------------------------------------
----

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: File "/ccstags" not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154
)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java
:180)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
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(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
..java:492)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:479)


----------------------------------------------------------------------------
----

Apache Tomcat/4.1.30
==============================================================
Thank you for your response.

"ignat" <ignat@forum.codecharge> wrote in message
news:9407d06edae5ea@news.codecharge.com...
> Here:
>
> Class Path: C:\java\jakarta-tomcat-4.0.6\common\lib\servlet.jar
> Target Server: Tomcat 4
> Deploy: unpacked
> Manager URL: http://localhost:8080/manager
> Context Path: /Sample
> Server Path: <empty>
> Publishing/Server Path:C:\ccsprojects\Sample\Tomcat
> Publishing/Server URL: http://localhost:8080/Sample
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

dekacode

Posts: 53
Posted: 04/29/2004, 12:57 PM

Same Old Same Old for HelloWorld
I am still trying to resolve 404 error

Would some one be kind enough to read the output and determine what is happening?

Build finished
Publishing to "C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\jsp\hello"
Tomcat 4 application manager: OK - Installed application at context path /examples

Also, a working server.xml would be helpful !!

<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">


Generating "hello"
Generating Common Files
call "C:\Sun\AppServer\lib\ant\bin\ant.bat" -buildfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\build.xml" -logfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\build.log"

Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\build.xml
init:
[echo] JSP build: 2.2.0084

check.servlet.lib:

compile:
[mkdir] Created dir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\app\WEB-INF\classes
[javac] Compiling 214 source files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\app\WEB-INF\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
build:
[copy] Copying 4 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\app\WEB-INF
[copy] Copying 8 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello\CCSBuild\app

BUILD SUCCESSFUL
Total time: 24 seconds

Build finished
Publishing to "C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\jsp\hello"
Tomcat 4 application manager: OK - Installed application at context path /examples

Generating "hello"
Generating Common Files
call "C:\Sun\AppServer\lib\ant\bin\ant.bat" -buildfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\build.xml" -logfile "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\build.log"

Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\build.xml
init:
[echo] JSP build: 2.2.0084

check.servlet.lib:

compile:
[mkdir] Created dir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\app\WEB-INF\classes
[javac] Compiling 214 source files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\app\WEB-INF\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
build:
[copy] Copying 4 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\app\WEB-INF
[copy] Copying 8 files to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\~hello0\CCSBuild\app

BUILD SUCCESSFUL
Total time: 19 seconds

Build finished
Publishing to "C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\jsp\hello"
Tomcat 4 application manager: OK - Installed application at context path /examples
View profile  Send private message
ignat


Posts: 55
Posted: 04/30/2004, 12:46 AM

If your /examples application is at 'examples' docbase, why do you publish to tomcat/webapps/examples/jsp/hello? That is the problem. WEB-INF folder won't be found. Plus I think you set wrong Server URL so that 404 occurs.

Note, that if you publish via Tomcat manager, then you can specify any folder as the publishing destination. And preferably this folder should not be under tomcat/webapps/... folders, because tomcat treats webapps folder specially, and there reside already deployed applications that may conflict with your application.

Regards,
Ignat.
View profile  Send private message
dekacode

Posts: 53
Posted: 04/30/2004, 7:43 AM

ignat,
I really appreciate your response.
questions

1. What is your Tomcat $CATALINA_HOME
$CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
2. Where is your app installed:
$CATALINA_HOME/helloworld
3. What is your CCS Server Path:
$CATALINA_HOME\helloworld
4. What is your CCS Server URL:
http://localhost:8080/helloworld
5. Did you add the following to $CATALINA_HOME/conf/server.xml
<Context path="/helloworld" docBase="helloworld" debug="0" />
View profile  Send private message
ignat


Posts: 55
Posted: 04/30/2004, 8:15 AM

1) Empty. Startup script sets it.
2) c:\ccsprojects\helloworld\tomcat
3) c:\ccsprojects\helloworld\tomcat
4) http://localhost:8080/helloworld
5) No. I use Tomcat manager to install/restart an application
View profile  Send private message
ignat
Posted: 04/30/2004, 8:15 AM

1) Empty. Startup script sets it.
2) c:\ccsprojects\helloworld\tomcat
3) c:\ccsprojects\helloworld\tomcat
4) http://localhost:8080/helloworld
5) No. I use Tomcat manager to install/restart an application
---------------------------------------
Sent from YesSoftware forum
http://forums.codecharge.com/
dekacode

Posts: 53
Posted: 05/03/2004, 3:39 PM

Ignat,
Servlets 2.2 JDK 1.3 with Templates
Thanks for your help - Helloworld is up!
The next challenge...
The CCS Portal project does not display the project homepage in the browser - it displays a listing of the files in the CCS Project Path

Portal project settings
c:\ccsprojects\portal\tomcat
http://localhost:8080/portal

Browser address:
http://localhost:8080/portal/
Browser displays:
Directory Listing For /
C:\Program Files\CodeChargeStudio\Examples\Internet\Portal\
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.