Quantcast

Could not resolve class: my.domain.favicon.ico

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Could not resolve class: my.domain.favicon.ico

Christian Grobmeier
Hello all,

I am a bit curious about the exceptions below... if anybody has an
idea whats going on, please let me know.
Page shows up, just in the logfile is the exception. CSS shows up,
favicon doesn't.

I am using Wicket from trunk
Thanks,
Christian

Similar stacktrace for:
java.lang.ClassNotFoundException: de.mydomain.images
java.lang.ClassNotFoundException: de.mydomain.style.css



WARN  - WicketObjects              - Could not resolve class
[de.mydomain.favicon.ico]
java.lang.ClassNotFoundException: de.mydomain.favicon.ico
       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
       at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:417)
       at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:370)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:247)
       at org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:115)
       at org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:75)
       at org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:140)
       at org.apache.wicket.request.mapper.PackageMapper.parseRequest(PackageMapper.java:125)
       at org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:212)
       at org.apache.wicket.request.mapper.mount.UnmountedMapperAdapter.mapRequest(UnmountedMapperAdapter.java:73)
       at org.apache.wicket.request.mapper.mount.MountMapper.mapRequest(MountMapper.java:131)
       at org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:129)
       at org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:183)
       at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
       at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
       at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
       at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
       at org.apache.cayenne.configuration.web.CayenneFilter.doFilter(CayenneFilter.java:97)
       at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
       at org.eclipse.jetty.server.Server.handle(Server.java:352)
       at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
       at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
       at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
       at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:241)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
       at java.lang.Thread.run(Thread.java:680)



--
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Martin Grigorov-4
can you paste your MyApp#init() ?

On Wed, Apr 13, 2011 at 10:57 AM, Christian Grobmeier
<[hidden email]>wrote:

> Hello all,
>
> I am a bit curious about the exceptions below... if anybody has an
> idea whats going on, please let me know.
> Page shows up, just in the logfile is the exception. CSS shows up,
> favicon doesn't.
>
> I am using Wicket from trunk
> Thanks,
> Christian
>
> Similar stacktrace for:
> java.lang.ClassNotFoundException: de.mydomain.images
> java.lang.ClassNotFoundException: de.mydomain.style.css
>
>
>
> WARN  - WicketObjects              - Could not resolve class
> [de.mydomain.favicon.ico]
> java.lang.ClassNotFoundException: de.mydomain.favicon.ico
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>        at
> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:417)
>        at
> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:370)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:247)
>        at
> org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:115)
>        at
> org.apache.wicket.util.lang.WicketObjects.resolveClass(WicketObjects.java:75)
>        at
> org.apache.wicket.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:140)
>        at
> org.apache.wicket.request.mapper.PackageMapper.parseRequest(PackageMapper.java:125)
>        at
> org.apache.wicket.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:212)
>        at
> org.apache.wicket.request.mapper.mount.UnmountedMapperAdapter.mapRequest(UnmountedMapperAdapter.java:73)
>        at
> org.apache.wicket.request.mapper.mount.MountMapper.mapRequest(MountMapper.java:131)
>        at
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:129)
>        at
> org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:183)
>        at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
>        at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>        at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>        at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
>        at
> org.apache.cayenne.configuration.web.CayenneFilter.doFilter(CayenneFilter.java:97)
>        at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
>        at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>        at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
>        at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929)
>        at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
>        at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864)
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>        at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
>        at org.eclipse.jetty.server.Server.handle(Server.java:352)
>        at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
>        at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051)
>        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
>        at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
>        at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
>        at
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:241)
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451)
>        at java.lang.Thread.run(Thread.java:680)
>
>
>
> --
> http://www.grobmeier.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Christian Grobmeier
> can you paste your MyApp#init() ?

Sure:

  @Override
    public void init() {
        super.init();
        getComponentInstantiationListeners().add(
                new SpringComponentInjector(this));
        mountPackage("/", HomePage.class);
        mountPackage("/feedback", FeedbackPage.class);
        mountPackage("/login", LoginPage.class);
        mountPackage("/test", TestPage.class);
        this.getMarkupSettings().setStripWicketTags(true);
        loadProperties();
        initSecurity();
    }

loadProperties load a property file from web-inf as the name suggests
initSecurity is setting an getSecuritySettings().setauthorizationStrategy()
- guess the latter two methods have nothing to do with my problem

Cheers

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Martin Grigorov-4
do you really need mountPackage() ?
I guess you actually need #mountPage()

I find mountPackage("/", HomePage.class); as the culprit

On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
<[hidden email]>wrote:

> > can you paste your MyApp#init() ?
>
> Sure:
>
>  @Override
>    public void init() {
>        super.init();
>        getComponentInstantiationListeners().add(
>                new SpringComponentInjector(this));
>        mountPackage("/", HomePage.class);
>        mountPackage("/feedback", FeedbackPage.class);
>        mountPackage("/login", LoginPage.class);
>        mountPackage("/test", TestPage.class);
>        this.getMarkupSettings().setStripWicketTags(true);
>        loadProperties();
>        initSecurity();
>    }
>
> loadProperties load a property file from web-inf as the name suggests
> initSecurity is setting an getSecuritySettings().setauthorizationStrategy()
> - guess the latter two methods have nothing to do with my problem
>
> Cheers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Christian Grobmeier
> do you really need mountPackage() ?
> I guess you actually need #mountPage()
> I find mountPackage("/", HomePage.class); as the culprit

if I use only mountPage it leads to the situation of some components not found.
My structure is like following:

/HomePage.class
/App.class
/pages/login/LoginPage.class
/pages/login/LoginForm.class
/pages/login/LoginEntities.class
/pages/login/LoginBusinessLogic.class
/pages/login/LoginPage.html
...

The docs told me I could mount a whole package. As subfolders are not
mounted, I thougth this would work.

However, if I only use mountPage, the missing css error is gone. But
then I am puzzled about mountPackage

It seems I should restructure my app... is there a recommended way?



>
> On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
> <[hidden email]>wrote:
>
>> > can you paste your MyApp#init() ?
>>
>> Sure:
>>
>>  @Override
>>    public void init() {
>>        super.init();
>>        getComponentInstantiationListeners().add(
>>                new SpringComponentInjector(this));
>>        mountPackage("/", HomePage.class);
>>        mountPackage("/feedback", FeedbackPage.class);
>>        mountPackage("/login", LoginPage.class);
>>        mountPackage("/test", TestPage.class);
>>        this.getMarkupSettings().setStripWicketTags(true);
>>        loadProperties();
>>        initSecurity();
>>    }
>>
>> loadProperties load a property file from web-inf as the name suggests
>> initSecurity is setting an getSecuritySettings().setauthorizationStrategy()
>> - guess the latter two methods have nothing to do with my problem
>>
>> Cheers
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>



--
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Martin Grigorov-4
mountPackage() will mount all *Page* classes in the same package as the page
used for the mount
but it doesn't do anything else, i.e. it doesn't handle components or models
or ...

mountPage() mounts just a single page without any knowledge about other
pages, panels, models ...

On Wed, Apr 13, 2011 at 11:19 AM, Christian Grobmeier
<[hidden email]>wrote:

> > do you really need mountPackage() ?
> > I guess you actually need #mountPage()
> > I find mountPackage("/", HomePage.class); as the culprit
>
> if I use only mountPage it leads to the situation of some components not
> found.
> My structure is like following:
>
> /HomePage.class
> /App.class
> /pages/login/LoginPage.class
> /pages/login/LoginForm.class
> /pages/login/LoginEntities.class
> /pages/login/LoginBusinessLogic.class
> /pages/login/LoginPage.html
> ...
>
> The docs told me I could mount a whole package. As subfolders are not
> mounted, I thougth this would work.
>
> However, if I only use mountPage, the missing css error is gone. But
> then I am puzzled about mountPackage
>
> It seems I should restructure my app... is there a recommended way?
>
>
>
> >
> > On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
> > <[hidden email]>wrote:
> >
> >> > can you paste your MyApp#init() ?
> >>
> >> Sure:
> >>
> >>  @Override
> >>    public void init() {
> >>        super.init();
> >>        getComponentInstantiationListeners().add(
> >>                new SpringComponentInjector(this));
> >>        mountPackage("/", HomePage.class);
> >>        mountPackage("/feedback", FeedbackPage.class);
> >>        mountPackage("/login", LoginPage.class);
> >>        mountPackage("/test", TestPage.class);
> >>        this.getMarkupSettings().setStripWicketTags(true);
> >>        loadProperties();
> >>        initSecurity();
> >>    }
> >>
> >> loadProperties load a property file from web-inf as the name suggests
> >> initSecurity is setting an
> getSecuritySettings().setauthorizationStrategy()
> >> - guess the latter two methods have nothing to do with my problem
> >>
> >> Cheers
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >>
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com <http://jweekend.com/>
> >
>
>
>
> --
> http://www.grobmeier.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Christian Grobmeier
> mountPackage() will mount all *Page* classes in the same package as the page
> used for the mount
> but it doesn't do anything else, i.e. it doesn't handle components or models
> or ...

OK, I have imagined that. But it seems mountPackage does also "mount" the forms.
If I mountPackage everything the LoginForm is available.

If I do mountPage my LoginForm is not available after I submit (same
package as LoginPage). Which does not make sense to me:
ComponentNotFoundException: Could not find component 'loginForm' on
page 'class de.mydomain.HomePage

The HomePage does not have this component at all.

Even when I do:
mountPage(HomePage)
mountPackage(LoginPage)

it changes.
Only when i mountPackage everything it seems to work.

Btw, HomePage is in the root folder, while LoginPage is in a subfolder.


>
> mountPage() mounts just a single page without any knowledge about other
> pages, panels, models ...
>
> On Wed, Apr 13, 2011 at 11:19 AM, Christian Grobmeier
> <[hidden email]>wrote:
>
>> > do you really need mountPackage() ?
>> > I guess you actually need #mountPage()
>> > I find mountPackage("/", HomePage.class); as the culprit
>>
>> if I use only mountPage it leads to the situation of some components not
>> found.
>> My structure is like following:
>>
>> /HomePage.class
>> /App.class
>> /pages/login/LoginPage.class
>> /pages/login/LoginForm.class
>> /pages/login/LoginEntities.class
>> /pages/login/LoginBusinessLogic.class
>> /pages/login/LoginPage.html
>> ...
>>
>> The docs told me I could mount a whole package. As subfolders are not
>> mounted, I thougth this would work.
>>
>> However, if I only use mountPage, the missing css error is gone. But
>> then I am puzzled about mountPackage
>>
>> It seems I should restructure my app... is there a recommended way?
>>
>>
>>
>> >
>> > On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
>> > <[hidden email]>wrote:
>> >
>> >> > can you paste your MyApp#init() ?
>> >>
>> >> Sure:
>> >>
>> >>  @Override
>> >>    public void init() {
>> >>        super.init();
>> >>        getComponentInstantiationListeners().add(
>> >>                new SpringComponentInjector(this));
>> >>        mountPackage("/", HomePage.class);
>> >>        mountPackage("/feedback", FeedbackPage.class);
>> >>        mountPackage("/login", LoginPage.class);
>> >>        mountPackage("/test", TestPage.class);
>> >>        this.getMarkupSettings().setStripWicketTags(true);
>> >>        loadProperties();
>> >>        initSecurity();
>> >>    }
>> >>
>> >> loadProperties load a property file from web-inf as the name suggests
>> >> initSecurity is setting an
>> getSecuritySettings().setauthorizationStrategy()
>> >> - guess the latter two methods have nothing to do with my problem
>> >>
>> >> Cheers
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [hidden email]
>> >> For additional commands, e-mail: [hidden email]
>> >>
>> >>
>> >
>> >
>> > --
>> > Martin Grigorov
>> > jWeekend
>> > Training, Consulting, Development
>> > http://jWeekend.com <http://jweekend.com/>
>> >
>>
>>
>>
>> --
>> http://www.grobmeier.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>



--
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Igor Vaynberg-2
you mounted the package on root, which means when the browser requests
/favicon.ico wicket will think that the browser is asking for a wicket
page named my.domain.favicon.ico and will try to instantiate a class
with that name, thus the error. it should ultimately result in a 404
sent to the browser.

-igor

On Wed, Apr 13, 2011 at 2:51 AM, Christian Grobmeier
<[hidden email]> wrote:

>> mountPackage() will mount all *Page* classes in the same package as the page
>> used for the mount
>> but it doesn't do anything else, i.e. it doesn't handle components or models
>> or ...
>
> OK, I have imagined that. But it seems mountPackage does also "mount" the forms.
> If I mountPackage everything the LoginForm is available.
>
> If I do mountPage my LoginForm is not available after I submit (same
> package as LoginPage). Which does not make sense to me:
> ComponentNotFoundException: Could not find component 'loginForm' on
> page 'class de.mydomain.HomePage
>
> The HomePage does not have this component at all.
>
> Even when I do:
> mountPage(HomePage)
> mountPackage(LoginPage)
>
> it changes.
> Only when i mountPackage everything it seems to work.
>
> Btw, HomePage is in the root folder, while LoginPage is in a subfolder.
>
>
>>
>> mountPage() mounts just a single page without any knowledge about other
>> pages, panels, models ...
>>
>> On Wed, Apr 13, 2011 at 11:19 AM, Christian Grobmeier
>> <[hidden email]>wrote:
>>
>>> > do you really need mountPackage() ?
>>> > I guess you actually need #mountPage()
>>> > I find mountPackage("/", HomePage.class); as the culprit
>>>
>>> if I use only mountPage it leads to the situation of some components not
>>> found.
>>> My structure is like following:
>>>
>>> /HomePage.class
>>> /App.class
>>> /pages/login/LoginPage.class
>>> /pages/login/LoginForm.class
>>> /pages/login/LoginEntities.class
>>> /pages/login/LoginBusinessLogic.class
>>> /pages/login/LoginPage.html
>>> ...
>>>
>>> The docs told me I could mount a whole package. As subfolders are not
>>> mounted, I thougth this would work.
>>>
>>> However, if I only use mountPage, the missing css error is gone. But
>>> then I am puzzled about mountPackage
>>>
>>> It seems I should restructure my app... is there a recommended way?
>>>
>>>
>>>
>>> >
>>> > On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
>>> > <[hidden email]>wrote:
>>> >
>>> >> > can you paste your MyApp#init() ?
>>> >>
>>> >> Sure:
>>> >>
>>> >>  @Override
>>> >>    public void init() {
>>> >>        super.init();
>>> >>        getComponentInstantiationListeners().add(
>>> >>                new SpringComponentInjector(this));
>>> >>        mountPackage("/", HomePage.class);
>>> >>        mountPackage("/feedback", FeedbackPage.class);
>>> >>        mountPackage("/login", LoginPage.class);
>>> >>        mountPackage("/test", TestPage.class);
>>> >>        this.getMarkupSettings().setStripWicketTags(true);
>>> >>        loadProperties();
>>> >>        initSecurity();
>>> >>    }
>>> >>
>>> >> loadProperties load a property file from web-inf as the name suggests
>>> >> initSecurity is setting an
>>> getSecuritySettings().setauthorizationStrategy()
>>> >> - guess the latter two methods have nothing to do with my problem
>>> >>
>>> >> Cheers
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: [hidden email]
>>> >> For additional commands, e-mail: [hidden email]
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Martin Grigorov
>>> > jWeekend
>>> > Training, Consulting, Development
>>> > http://jWeekend.com <http://jweekend.com/>
>>> >
>>>
>>>
>>>
>>> --
>>> http://www.grobmeier.de
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com <http://jweekend.com/>
>>
>
>
>
> --
> http://www.grobmeier.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

Rene Stolle
Hey Igor,

this sounds logically, but what is the solution. One cannot create a
class favicon.ico
cause of the dot, and even if, how to place your own favicon in this case??

Rene

PS: I am loving 1.5!

On Wed, Apr 13, 2011 at 7:35 PM, Igor Vaynberg <[hidden email]> wrote:

> you mounted the package on root, which means when the browser requests
> /favicon.ico wicket will think that the browser is asking for a wicket
> page named my.domain.favicon.ico and will try to instantiate a class
> with that name, thus the error. it should ultimately result in a 404
> sent to the browser.
>
> -igor
>
> On Wed, Apr 13, 2011 at 2:51 AM, Christian Grobmeier
> <[hidden email]> wrote:
>>> mountPackage() will mount all *Page* classes in the same package as the page
>>> used for the mount
>>> but it doesn't do anything else, i.e. it doesn't handle components or models
>>> or ...
>>
>> OK, I have imagined that. But it seems mountPackage does also "mount" the forms.
>> If I mountPackage everything the LoginForm is available.
>>
>> If I do mountPage my LoginForm is not available after I submit (same
>> package as LoginPage). Which does not make sense to me:
>> ComponentNotFoundException: Could not find component 'loginForm' on
>> page 'class de.mydomain.HomePage
>>
>> The HomePage does not have this component at all.
>>
>> Even when I do:
>> mountPage(HomePage)
>> mountPackage(LoginPage)
>>
>> it changes.
>> Only when i mountPackage everything it seems to work.
>>
>> Btw, HomePage is in the root folder, while LoginPage is in a subfolder.
>>
>>
>>>
>>> mountPage() mounts just a single page without any knowledge about other
>>> pages, panels, models ...
>>>
>>> On Wed, Apr 13, 2011 at 11:19 AM, Christian Grobmeier
>>> <[hidden email]>wrote:
>>>
>>>> > do you really need mountPackage() ?
>>>> > I guess you actually need #mountPage()
>>>> > I find mountPackage("/", HomePage.class); as the culprit
>>>>
>>>> if I use only mountPage it leads to the situation of some components not
>>>> found.
>>>> My structure is like following:
>>>>
>>>> /HomePage.class
>>>> /App.class
>>>> /pages/login/LoginPage.class
>>>> /pages/login/LoginForm.class
>>>> /pages/login/LoginEntities.class
>>>> /pages/login/LoginBusinessLogic.class
>>>> /pages/login/LoginPage.html
>>>> ...
>>>>
>>>> The docs told me I could mount a whole package. As subfolders are not
>>>> mounted, I thougth this would work.
>>>>
>>>> However, if I only use mountPage, the missing css error is gone. But
>>>> then I am puzzled about mountPackage
>>>>
>>>> It seems I should restructure my app... is there a recommended way?
>>>>
>>>>
>>>>
>>>> >
>>>> > On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
>>>> > <[hidden email]>wrote:
>>>> >
>>>> >> > can you paste your MyApp#init() ?
>>>> >>
>>>> >> Sure:
>>>> >>
>>>> >>  @Override
>>>> >>    public void init() {
>>>> >>        super.init();
>>>> >>        getComponentInstantiationListeners().add(
>>>> >>                new SpringComponentInjector(this));
>>>> >>        mountPackage("/", HomePage.class);
>>>> >>        mountPackage("/feedback", FeedbackPage.class);
>>>> >>        mountPackage("/login", LoginPage.class);
>>>> >>        mountPackage("/test", TestPage.class);
>>>> >>        this.getMarkupSettings().setStripWicketTags(true);
>>>> >>        loadProperties();
>>>> >>        initSecurity();
>>>> >>    }
>>>> >>
>>>> >> loadProperties load a property file from web-inf as the name suggests
>>>> >> initSecurity is setting an
>>>> getSecuritySettings().setauthorizationStrategy()
>>>> >> - guess the latter two methods have nothing to do with my problem
>>>> >>
>>>> >> Cheers
>>>> >>
>>>> >> ---------------------------------------------------------------------
>>>> >> To unsubscribe, e-mail: [hidden email]
>>>> >> For additional commands, e-mail: [hidden email]
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> > --
>>>> > Martin Grigorov
>>>> > jWeekend
>>>> > Training, Consulting, Development
>>>> > http://jWeekend.com <http://jweekend.com/>
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> http://www.grobmeier.de
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>
>>>
>>> --
>>> Martin Grigorov
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com <http://jweekend.com/>
>>>
>>
>>
>>
>> --
>> http://www.grobmeier.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Could not resolve class: my.domain.favicon.ico

akarypid
Hello Rene,

I understand that you probably currently DON'T have a favicon for your  
site and you are disturbed by the browser's attempt to fetch it.

First of all, you should read http://en.wikipedia.org/wiki/Favicon to see  
what this is about. It's the icon that browser use to decorate the address  
bar, bookmarks menu, etc. You are NOT required to have one. If you don't  
have one, the browser simply shows a generic icon in those places. The  
browser will however try to fetch it anyway (most browsers will try to  
retrieve "favicon.ico" from the root folder of the site), so it is normal  
for you to get an error in your web server's logs, reporting a miss when  
the browser attempts to fetch it. In your case, as Igor pointed out, due  
to the mounting you performed the request will end up searching for the  
result within your home page package.

If you do add such an icon, I would recommend putting the icon file in  
src/main/webapp so that it is accessible from the root location.

Alternatively, point to the actual URL where it can be found (e.g. inside  
the home page package) using the <link> tag above.You can change the  
location from which to fetch the "favicon" using a link tag in your page  
header, as follows:

        <link rel="shortcut icon" href="http://example.com/myicon.ico" />

More information can be found here:

        http://en.wikipedia.org/wiki/Favicon#Accessibility


Regards,
Alexandros

On Mon, 25 Apr 2011 17:55:27 +0300, Rene Stolle  
<[hidden email]> wrote:

> Hey Igor,
>
> this sounds logically, but what is the solution. One cannot create a
> class favicon.ico
> cause of the dot, and even if, how to place your own favicon in this  
> case??
>
> Rene
>
> PS: I am loving 1.5!
>
> On Wed, Apr 13, 2011 at 7:35 PM, Igor Vaynberg <[hidden email]>  
> wrote:
>> you mounted the package on root, which means when the browser requests
>> /favicon.ico wicket will think that the browser is asking for a wicket
>> page named my.domain.favicon.ico and will try to instantiate a class
>> with that name, thus the error. it should ultimately result in a 404
>> sent to the browser.
>>
>> -igor
>>
>> On Wed, Apr 13, 2011 at 2:51 AM, Christian Grobmeier
>> <[hidden email]> wrote:
>>>> mountPackage() will mount all *Page* classes in the same package as  
>>>> the page
>>>> used for the mount
>>>> but it doesn't do anything else, i.e. it doesn't handle components or  
>>>> models
>>>> or ...
>>>
>>> OK, I have imagined that. But it seems mountPackage does also "mount"  
>>> the forms.
>>> If I mountPackage everything the LoginForm is available.
>>>
>>> If I do mountPage my LoginForm is not available after I submit (same
>>> package as LoginPage). Which does not make sense to me:
>>> ComponentNotFoundException: Could not find component 'loginForm' on
>>> page 'class de.mydomain.HomePage
>>>
>>> The HomePage does not have this component at all.
>>>
>>> Even when I do:
>>> mountPage(HomePage)
>>> mountPackage(LoginPage)
>>>
>>> it changes.
>>> Only when i mountPackage everything it seems to work.
>>>
>>> Btw, HomePage is in the root folder, while LoginPage is in a subfolder.
>>>
>>>
>>>>
>>>> mountPage() mounts just a single page without any knowledge about  
>>>> other
>>>> pages, panels, models ...
>>>>
>>>> On Wed, Apr 13, 2011 at 11:19 AM, Christian Grobmeier
>>>> <[hidden email]>wrote:
>>>>
>>>>> > do you really need mountPackage() ?
>>>>> > I guess you actually need #mountPage()
>>>>> > I find mountPackage("/", HomePage.class); as the culprit
>>>>>
>>>>> if I use only mountPage it leads to the situation of some components  
>>>>> not
>>>>> found.
>>>>> My structure is like following:
>>>>>
>>>>> /HomePage.class
>>>>> /App.class
>>>>> /pages/login/LoginPage.class
>>>>> /pages/login/LoginForm.class
>>>>> /pages/login/LoginEntities.class
>>>>> /pages/login/LoginBusinessLogic.class
>>>>> /pages/login/LoginPage.html
>>>>> ...
>>>>>
>>>>> The docs told me I could mount a whole package. As subfolders are not
>>>>> mounted, I thougth this would work.
>>>>>
>>>>> However, if I only use mountPage, the missing css error is gone. But
>>>>> then I am puzzled about mountPackage
>>>>>
>>>>> It seems I should restructure my app... is there a recommended way?
>>>>>
>>>>>
>>>>>
>>>>> >
>>>>> > On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier
>>>>> > <[hidden email]>wrote:
>>>>> >
>>>>> >> > can you paste your MyApp#init() ?
>>>>> >>
>>>>> >> Sure:
>>>>> >>
>>>>> >>  @Override
>>>>> >>    public void init() {
>>>>> >>        super.init();
>>>>> >>        getComponentInstantiationListeners().add(
>>>>> >>                new SpringComponentInjector(this));
>>>>> >>        mountPackage("/", HomePage.class);
>>>>> >>        mountPackage("/feedback", FeedbackPage.class);
>>>>> >>        mountPackage("/login", LoginPage.class);
>>>>> >>        mountPackage("/test", TestPage.class);
>>>>> >>        this.getMarkupSettings().setStripWicketTags(true);
>>>>> >>        loadProperties();
>>>>> >>        initSecurity();
>>>>> >>    }
>>>>> >>
>>>>> >> loadProperties load a property file from web-inf as the name  
>>>>> suggests
>>>>> >> initSecurity is setting an
>>>>> getSecuritySettings().setauthorizationStrategy()
>>>>> >> - guess the latter two methods have nothing to do with my problem
>>>>> >>
>>>>> >> Cheers
>>>>> >>
>>>>> >>  
>>>>> ---------------------------------------------------------------------
>>>>> >> To unsubscribe, e-mail: [hidden email]
>>>>> >> For additional commands, e-mail: [hidden email]
>>>>> >>
>>>>> >>
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Martin Grigorov
>>>>> > jWeekend
>>>>> > Training, Consulting, Development
>>>>> > http://jWeekend.com <http://jweekend.com/>
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.grobmeier.de
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [hidden email]
>>>>> For additional commands, e-mail: [hidden email]
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Martin Grigorov
>>>> jWeekend
>>>> Training, Consulting, Development
>>>> http://jWeekend.com <http://jweekend.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> http://www.grobmeier.de
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...