You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by James Perry <ja...@gmail.com> on 2007/12/05 13:35:47 UTC

Problems deploying Wicket application with Tomcat

Dear all,

I am deploying my first wicket based web app selling British
traditional sweets at http://www.thebritishsweetshop.co.uk/

There seems to be a problem as all the links lead to a 'Page Expired'
error page.

Any ideas?

Cheers,
J.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problems deploying Wicket application with Tomcat

Posted by wicket user <wi...@comley.org>.
Apart from the obvious that  you are out of memory, no not really.

This happens a lot to me in development mode, have you switched to
deployment mode?

On 05/12/2007, James Perry <ja...@gmail.com> wrote:
>
> Checking my Tomcat's server log (catalina.out), it appears the issue is:
> ERROR - [wicketcart]               - Servlet.service() for servlet
> wicketcart th
> rew exception
> java.lang.OutOfMemoryError: PermGen space
>         at sun.misc.Unsafe.defineClass(Native Method)
>         at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
>         at sun.reflect.MethodAccessorGenerator$1.run(
> MethodAccessorGenerator.jav
> a:381)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.reflect.MethodAccessorGenerator.generate
> (MethodAccessorGenerator.
> java:377)
>         at
> sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(
> MethodAccessorGenerator.java:95)
>         at sun.reflect.ReflectionFactory.newConstructorForSerialization
> (Reflecti
> onFactory.java:313)
>         at java.io.ObjectStreamClass.getSerializableConstructor
> (ObjectStreamClas
> s.java:1327)
>         at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java
> :52)
>         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)
>
>
> Any thoughts?
>
> On Dec 5, 2007 1:00 PM, James Perry <ja...@gmail.com> wrote:
> > Bare with me. I am just redeploying it.
> >
> >
> > On Dec 5, 2007 12:56 PM, wicket user <wi...@comley.org> wrote:
> > > I'm getting a 503,
> > > HTTP Status 503 - This application is not currently available
> > >
> > > On 05/12/2007, James Perry <ja...@gmail.com> wrote:
> > > >
> > > > Dear all,
> > > >
> > > > I am deploying my first wicket based web app selling British
> > > > traditional sweets at http://www.thebritishsweetshop.co.uk/
> > > >
> > > > There seems to be a problem as all the links lead to a 'Page
> Expired'
> > > > error page.
> > > >
> > > > Any ideas?
> > > >
> > > > Cheers,
> > > > J.
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Problems deploying Wicket application with Tomcat

Posted by John Krasnay <jo...@krasnay.ca>.
PermGen is a region of memory maintained by the JVM for things like
class definitions. The default size is notoriously small for web apps,
and you can easily run out, especially if you re-deploy the application
multiple times without restarting the app server.

Try re-starting Tomcat rather than just re-deploying the app. If that
doesn't work, add the following option to the command line for starting
Tomcat:

-XX:PermSize=50m

This gives you a 50 meg PermGen area. Increase as necessary.

jk

On Wed, Dec 05, 2007 at 01:15:32PM +0000, James Perry wrote:
> Checking my Tomcat's server log (catalina.out), it appears the issue is:
> ERROR - [wicketcart]               - Servlet.service() for servlet wicketcart th
> rew exception
> java.lang.OutOfMemoryError: PermGen space
>         at sun.misc.Unsafe.defineClass(Native Method)
>         at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
>         at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.jav
> a:381)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.
> java:377)
>         at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(
> MethodAccessorGenerator.java:95)
>         at sun.reflect.ReflectionFactory.newConstructorForSerialization(Reflecti
> onFactory.java:313)
>         at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClas
> s.java:1327)
>         at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52)
>         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)
> 
> 
> Any thoughts?
> 
> On Dec 5, 2007 1:00 PM, James Perry <ja...@gmail.com> wrote:
> > Bare with me. I am just redeploying it.
> >
> >
> > On Dec 5, 2007 12:56 PM, wicket user <wi...@comley.org> wrote:
> > > I'm getting a 503,
> > > HTTP Status 503 - This application is not currently available
> > >
> > > On 05/12/2007, James Perry <ja...@gmail.com> wrote:
> > > >
> > > > Dear all,
> > > >
> > > > I am deploying my first wicket based web app selling British
> > > > traditional sweets at http://www.thebritishsweetshop.co.uk/
> > > >
> > > > There seems to be a problem as all the links lead to a 'Page Expired'
> > > > error page.
> > > >
> > > > Any ideas?
> > > >
> > > > Cheers,
> > > > J.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problems deploying Wicket application with Tomcat

Posted by James Perry <ja...@gmail.com>.
Checking my Tomcat's server log (catalina.out), it appears the issue is:
ERROR - [wicketcart]               - Servlet.service() for servlet wicketcart th
rew exception
java.lang.OutOfMemoryError: PermGen space
        at sun.misc.Unsafe.defineClass(Native Method)
        at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
        at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.jav
a:381)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.
java:377)
        at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(
MethodAccessorGenerator.java:95)
        at sun.reflect.ReflectionFactory.newConstructorForSerialization(Reflecti
onFactory.java:313)
        at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClas
s.java:1327)
        at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:52)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:437)


Any thoughts?

On Dec 5, 2007 1:00 PM, James Perry <ja...@gmail.com> wrote:
> Bare with me. I am just redeploying it.
>
>
> On Dec 5, 2007 12:56 PM, wicket user <wi...@comley.org> wrote:
> > I'm getting a 503,
> > HTTP Status 503 - This application is not currently available
> >
> > On 05/12/2007, James Perry <ja...@gmail.com> wrote:
> > >
> > > Dear all,
> > >
> > > I am deploying my first wicket based web app selling British
> > > traditional sweets at http://www.thebritishsweetshop.co.uk/
> > >
> > > There seems to be a problem as all the links lead to a 'Page Expired'
> > > error page.
> > >
> > > Any ideas?
> > >
> > > Cheers,
> > > J.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problems deploying Wicket application with Tomcat

Posted by James Perry <ja...@gmail.com>.
Bare with me. I am just redeploying it.

On Dec 5, 2007 12:56 PM, wicket user <wi...@comley.org> wrote:
> I'm getting a 503,
> HTTP Status 503 - This application is not currently available
>
> On 05/12/2007, James Perry <ja...@gmail.com> wrote:
> >
> > Dear all,
> >
> > I am deploying my first wicket based web app selling British
> > traditional sweets at http://www.thebritishsweetshop.co.uk/
> >
> > There seems to be a problem as all the links lead to a 'Page Expired'
> > error page.
> >
> > Any ideas?
> >
> > Cheers,
> > J.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problems deploying Wicket application with Tomcat

Posted by wicket user <wi...@comley.org>.
I'm getting a 503,
HTTP Status 503 - This application is not currently available
On 05/12/2007, James Perry <ja...@gmail.com> wrote:
>
> Dear all,
>
> I am deploying my first wicket based web app selling British
> traditional sweets at http://www.thebritishsweetshop.co.uk/
>
> There seems to be a problem as all the links lead to a 'Page Expired'
> error page.
>
> Any ideas?
>
> Cheers,
> J.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>