Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat compiles JSP but all I get is blank

Reply
Thread Tools

Tomcat compiles JSP but all I get is blank

 
 
jason.tomlins@gmail.com
Guest
Posts: n/a
 
      10-21-2005
Everything was fine until I restarted tomcat after just making one
change to a .java file. I recompiled, everything fine, started Tomcat
and now when I access the website the URL resolves as usual but I just
get a blank page, no errors, nothing. All my other webapps under tomcat
are still running fine. Nothing else has changed. I tried deleting the
/work directory to remove cached compiled JSP but still same. The JSPs
even get compiled when requested but are still returning an empty page.

Help. I'm lost on this one.

Thanks.

 
Reply With Quote
 
 
 
 
muttley
Guest
Posts: n/a
 
      10-21-2005
i get this sometimes if the tomcat thread executing the jsp / servlet
throws a low level error. look in the catalina.out and access_log files
for evidence of a 500 internal server error problem.
remove any nice error trapping as this might be hiding the default
stack trace page too.

hth

kev.

 
Reply With Quote
 
 
 
 
jason.tomlins@gmail.com
Guest
Posts: n/a
 
      10-21-2005
Thanks for the tip but no errors being reported in any of the logs.

Arrrggghhhh !!

 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      10-21-2005
wrote:

> Everything was fine until I restarted tomcat after just making one
> change to a .java file.


What change?

>...I recompiled, everything fine, started Tomcat
> and now when I access the website the URL


What is the URL?

>...resolves as usual but I just
> get a blank page, no errors, nothing.


Are you certain? What is the actual *source* of the page
that arrives in the *browser*. (And no, I'm not suggesting
you post 250 lines of HTML to the group, just a summary
will be fine)

[ Note that '<html><body><h1></h1></body></html>' will render
absolutley *nothing* in a browser. ]

Have you validated the end result of your JSP?

What browsers(s) are you using, and have they been updated
or patched recently?

Does the page use any Javascript?

Note that I might have answered all the above questions
in the time it took to type this (and perhaps solved the
problem) if you'd provided the URL...
 
Reply With Quote
 
jason.tomlins@gmail.com
Guest
Posts: n/a
 
      10-21-2005
The change I made was to a simple string in an area of the app that
would not impact JSPs. Recompilation of the file was fine)

The source returned to the browser is minimal, as in your example, just
a few lines of HTML. The JSPs are validated, no changes to jsps was
done. All was working until Tomcat restart. The jsps get compiled etc.

I am using IE6, no changes there.

Some pages us javascript some dont, the problem persists throughout.

As a test, I created a JSP called index.jsp (it contains no code, just
one line of text) and threw it in http://forums.fooforums.com , a
directory containing JSPs (prior to placing index.jsp in this directory
you could see this list of jsps but clicking on them just returned
blank pages again). This index.jsp gets compiled fine but still renders
a blank page (just minimal html), try for yourself.

Ideas ?

Thanks,
Jason.

 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      10-21-2005
wrote:

> Ideas ?


No, unfortunately.

[ The only immediate suspicion I had was that you'd
made a simple HTML error that caused every page to be
'delivered complete' but render incorrectly. Your extra
info. - ruled that out. ]
 
Reply With Quote
 
jason.tomlins@gmail.com
Guest
Posts: n/a
 
      10-21-2005
Well, I resolved the issue. There was a jsp-api.jar in the WEB-INF/lib
directory of the application in question. After removing this jar
everything was fine. Dont ask me.

Jason.

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      10-21-2005
On 21 Oct 2005 08:50:12 -0700, wrote or quoted
:

>I restarted tomcat after just making one
>change to a .java file.


It looks to me like the change you made to the .java file (I presume
you meant .jsp file) is the culprit. Back it out.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to write jsp custom tag that can have all kind of jsp elements(not only other tags but also srciplets) in his body Lukasz Indyk Java 1 09-22-2004 12:43 PM
jEdit: compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?) Thomas G. Marshall Java 5 08-06-2004 04:12 AM
Compiles in visual studio but not in g++ Mitch C++ 4 04-22-2004 06:40 AM
Pointers to non-static member functions, compiles with MSDEV, but not with GCC John Doe C++ 9 10-23-2003 10:01 PM
it compiles, but... Bimo Remus C++ 7 07-04-2003 11:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57