I have installed Pebble 2.0.1 with a Resin 3.0.18 Resin
installation.
I have stored the war file in the following directory:
/opt/blog/webapp/pebble-2.0.1/pebble.war
And then manually extracted the .war file using:
Unzip pebble.war
My resin.conf has the following block for pebble:
<host id='blog.domainremoved.com'>
<host-alias>blog.domainremoved.com</host-alias>
<web-app id='/'
document-directory='/opt/blog/webapp/pebble-2.0.1'>
<jsp fast-jstl='false'/>
<authenticator>
<type>com.caucho.server.security.XmlAuthenticator</
type>
<init>
<user>username:password:blog-owner,blog-contributor<
;/user>
<password-digest>none</password-digest>
</init>
</authenticator>
</web-app>
<access-log path='logs/access.log' format='%h %l %u
%t "%r" %s %b
"%i" "%i"'
rollover-period='1W'/>
</host>
I then fired up resin and an error pops up in the
stdout.log:
Starting Resin on Mon, 27 Nov 2006 13:58:52 -0600 (CST)
[13:59:00.073] [INFO-ServletServer] Server[] starting
[13:59:00.074]
[INFO-ServletServer] [13:59:00.075] [INFO-ServletServer]
Linux
2.4.21-4.0.1.ELsmp i386 [13:59:00.077] [INFO-ServletServer]
Java
1.5.0_03-b07, 32, mixed mode, UTF-8, en, Sun Microsystems
Inc.
[13:59:00.078] [INFO-ServletServer] resin.home = /opt/resin
[13:59:00.080]
[INFO-ServletServer] server.root = /opt/blog/server
[13:59:00.081]
[INFO-ServletServer] [13:59:00.156]
[INFO-JniServerSocketImpl] Socket JNI
library is not available.
[13:59:00.156] Resin will still run but performance will be
slower.
[13:59:00.156] To compile the Socket JNI library on Unix,
use ./configure;
make; make install.
[13:59:00.195] [INFO-Port] http listening to
plain.rackshack.net:80
[13:59:00.464] [INFO-Host] Host[blog.domainremoved.com]
starting
[13:59:02.028] [SEVERE-DeployController]
com.caucho.config.LineConfigException: WEB-INF/web.xml:9:
<description> is
an unexpected tag (parent <web-app> starts at 6).
Check for duplicate and
out-of-order tags.
[13:59:02.028] <web-app> syntax: ( id?, version,
xsi:schemaLocation?,
[13:59:02.028] (<context-param>*
So I commented the <description> tag out of the
WEB-INF/web.xml file and
restarted Resin. Now it seems to be ok:
Starting Resin on Mon, 27 Nov 2006 14:02:20 -0600 (CST)
[14:02:28.210] [INFO-ServletServer] Server[] starting
[14:02:28.212]
[INFO-ServletServer] [14:02:28.213] [INFO-ServletServer]
Linux
2.4.21-4.0.1.ELsmp i386 [14:02:28.215] [INFO-ServletServer]
Java
1.5.0_03-b07, 32, mixed mode, UTF-8, en, Sun Microsystems
Inc.
[14:02:28.216] [INFO-ServletServer] resin.home = /opt/resin
[14:02:28.217]
[INFO-ServletServer] server.root = /opt/blog/server
[14:02:28.218]
[INFO-ServletServer] [14:02:28.307]
[INFO-JniServerSocketImpl] Socket JNI
library is not available.
[14:02:28.307] Resin will still run but performance will be
slower.
[14:02:28.307] To compile the Socket JNI library on Unix,
use ./configure;
make; make install.
[14:02:28.344] [INFO-Port] http listening to
plain.rackshack.net:80
[14:02:28.546] [INFO-Host] Host[blog.domainremoved.com]
starting
[14:02:32.649] [INFO-Application] WebApp[http://blog.domainremov
ed.com]
starting [14:02:32.845] [INFO-Application] Loading Spring
root
WebApplicationContext
2006-11-27 14:02:39,469 [main] INFO
net.sourceforge.pebble.web.listener.PebbleContextListener -
Starting Pebble
2006-11-27 14:02:40,969 [main] INFO
net.sourceforge.pebble.domain.Blog -
Started blog with ID default
2006-11-27 14:02:40,972 [main] INFO
net.sourceforge.pebble.web.listener.PebbleContextListener -
Pebble started
in 1504ms [14:02:41.018] [INFO-Application] jcaptcha: init
Now I try to go to:
http://blog.domainremo
ved.com/ and I get the following error:
500 Servlet Exception
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
too many servlet includes `/themes/default/jsp/template.jsp'
at
net.sourceforge.pebble.web.controller.HttpController.process
Request(HttpCont
roller.java:136)
at
net.sourceforge.pebble.web.controller.HttpController.doGet(H
ttpController.ja
va:195)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(Servl
etFilterChain.ja
va:106)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(Dispat
chFilterChain.ja
va:115)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:273)
at
com.caucho.server.webapp.RequestDispatcherImpl.error(Request
DispatcherImpl.j
ava:113)
at
com.caucho.server.webapp.ErrorPageManager.sendServletError(E
rrorPageManager.
java:363)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFi
lterChain.java:1
80)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest
.java:268)
at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:
389)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException: javax ...
And there are a bunch more of that followed by a stack trace
at the bottom.
Here is the bottom of the stack trace (everything above it
is a repeat of
portions of this trace):
at
net.sourceforge.pebble.web.controller.HttpController.doGet(H
ttpController.ja
va:195)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(Servl
etFilterChain.ja
va:106)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(Dispat
chFilterChain.ja
va:115)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:273)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:106)
at
com.caucho.jsp.QServlet.forwardErrorPage(QServlet.java:416)
at com.caucho.jsp.QServlet.getPage(QServlet.java:219)
at
com.caucho.server.dispatch.PageFilterChain.compilePage(PageF
ilterChain.java:
186)
at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilt
erChain.java:123
)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(Dispat
chFilterChain.ja
va:115)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:273)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:106)
at
net.sourceforge.pebble.web.view.HtmlView.dispatch(HtmlView.j
ava:94)
at
net.sourceforge.pebble.web.controller.HttpController.process
Request(HttpCont
roller.java:131)
at
net.sourceforge.pebble.web.controller.HttpController.doGet(H
ttpController.ja
va:195)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(Servl
etFilterChain.ja
va:106)
at
com.caucho.server.webapp.DispatchFilterChain.doFilter(Dispat
chFilterChain.ja
va:115)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:273)
at
com.caucho.server.webapp.RequestDispatcherImpl.error(Request
DispatcherImpl.j
ava:113)
at
com.caucho.server.webapp.ErrorPageManager.sendServletError(E
rrorPageManager.
java:363)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFi
lterChain.java:1
80)
at
com.caucho.server.dispatch.ServletInvocation.service(Servlet
Invocation.java:
229)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest
.java:268)
at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:
389)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
at java.lang.Thread.run(Thread.java:595)
Also here is a snippet of the errors in the stdout.log file:
2006-11-27 14:03:55,314
[resin-tcp-connection-66.98.184.26:80-1] INFO
net.sourceforge.pebble.web.filter.PreProcessingFilter -
Setting Pebble URL
to http://blog.sendthisf
ile.com:80 [14:03:55.820] [INFO-Application]
HttpController: init [14:03:56.074] [INFO-TldManager]
Loading .tld files
from global classpath [14:04:03.484] [WARNING-TldManager]
com.caucho.config.LineConfigException:
jar:file:/opt/blog/webapp/pebble-2.0.1/WEB-INF/lib/delicious
-1.10.jar!/META-
INF/delicious.tld:24: null expects a valid scope at `page'
2006-11-27 14:04:07,393
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Request URL
=
http://blog
.sendthisfile.com/error.action
2006-11-27 14:04:07,394
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Request URI
= /error.action
2006-11-27 14:04:07,395
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Query
string = null
2006-11-27 14:04:07,396
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Accept =
null
2006-11-27 14:04:07,397
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction -
Accept-Language = null
2006-11-27 14:04:07,397
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - UA-CPU =
null
2006-11-27 14:04:07,398
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction -
Accept-Encoding = null
2006-11-27 14:04:07,399
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - User-Agent
= null
2006-11-27 14:04:07,399
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Host = null
2006-11-27 14:04:07,400
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Connection
= null
2006-11-27 14:04:07,468
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Cookie =
null
2006-11-27 14:04:07,511
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction - Parameters
:
2006-11-27 14:04:07,511
[resin-tcp-connection-66.98.184.26:80-1] ERROR
net.sourceforge.pebble.web.action.ErrorAction -
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException:
javax.servlet.ServletException: too many servlet includes
`/WEB-INF/fragments/error.action'
2006-11-27 14:04:07,806 [resin-tcp-connection-66.9
...
[14:04:10.429] [INFO-ErrorPageManager]
javax.servlet.ServletException: too
many servlet includes `/themes/default/jsp/template.jsp'
[14:04:10.429] at
com.caucho.server.connection.RequestAdapter.init(RequestAdap
ter.java:138)
[14:04:10.429] at
com.caucho.server.webapp.DispatchRequest.init(DispatchReques
t.java:113)
[14:04:10.429] at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:198)
[14:04:10.429] at
com.caucho.server.webapp.RequestDispatcherImpl.forward(Reque
stDispatcherImpl
.java:106)
[14:04:10.429] at
com.caucho.jsp.QServlet.forwardErrorPage(QServlet.java:416)
[14:04:10.429] at
com.caucho.jsp.QServlet.getPage(QServlet.java:219)
[14:04:10.429] at
com.caucho.server.dispatch.PageFilterChain.compilePage(PageF
ilterChain.java:
186)
[14:04:10.429] at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilt
erChain.java:123
)
[14:04:10.429] at
com.caucho.server.webapp.DispatchFilterChain.doF
...
At this point I am completely stuck as far as what I should
try to fix this
problem and get Pebble working under Resin.
Any ideas?
Thanks,
Aaron
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pebble-user mailing list
Pebble-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user
|