You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ballist1c <le...@msn.com> on 2007/10/02 09:23:41 UTC

Google Maps API

Hey guys, 

I have been testing and attempting to get the google maps api running, with
little avail.

I have done some digging around for info and components written for Google
map api integration.  Unfortunately, the ones i have come across no longer
exist in their respective SVNs :(

As much as I would like to use something that i can load up and parse in
values, i would very much like to learn how to generate custom Javascript in
the <head> tags like the one required for google maps to locate a position.

e.g.
<script type="text/javascript">

   //<![CDATA[

   function load() {
     if (GBrowserIsCompatible()) {
       var map = new GMap2(document.getElementById("map"));
       map.setCenter(new GLatLng(37.4419, -122.1419), 13);
     }
   }

   //]]>
</script> 

At the moment I am stuck on how to reference javascript from an external
HTTP url, as opposed to a local js file. 

e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"

If anyone has any tips, that would be greatly appreciated :)

Thanks guys, 

Take care,
Leo!
-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a12993967
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by Ballist1c <le...@msn.com>.
Ah that might explain it... ive attempted to deploy it in the current
Netbeans IDE im using with the crappy tomcat integrated server (v5.5 or
osmething i think).... 

My main project is destined to run on a base tomcat server at the moment,
and as a team we are not considering adding any other containers or
extensions to tomcat just yet... :(

so whatever googlemap implementation i use.. or googmap implementation i
create, will need to run on tomcat. :S... 


martinf wrote:
> 
> hmm..
> 
> how do you deploy?
> 
> To get a first glimpse, a:
> 
> mvn jetty:run
> 
> should get the jetty server running and the examples should be visible at:
> http://localhost:8080/wicket-contrib-gmap2-examples/
> 
> If you want to start it from within Eclipse using the Start class a:
> 
> mvn eclipse:clean eclipse:eclipse
> 
> cleanly rebuilding eclipses project and classpath files might help.
> Also a eclipse classpath variable has to be set up, but eclipse warning 
> will guide you to that.
> 
> Basically the exception says that that the classes providing the logging 
> implementation can't be found,
> Log4J, in this case.
> 
> Could it be that you are trying to get it started in a geronimo server?
> I'm not quite familiar with setting those up, but the Log4J jar has to 
> be present on the runtime classpath, WEB-INF/lib if you go by the 
> standards, but maybe your container has configuration files for that.
> 
> Martin
> 
> Ballist1c schrieb:
>> Ive downloaded and compiled the Gmap2 and examples, however, the examples
>> don't seem to deploy... there seems to be some low level issue. I have
>> the
>> latest wicket snapshot so I am assuming that there may be compatibility
>> issues.
>>
>> Also the Gmap (original) the SVN provided no long works :(
>>
>> The problem unfortuantely still exists and even though Gmap2 does not
>> work
>> deploy, now that i have the code, i can begin to write my own Gmap
>> implementation.
>>
>> Its gonna take a while to work through the code, im going to start with a
>> straight forward method to embed the most simple googlemap in a webpage
>> with
>> using default Wicket components. Any tips?
>>
>>
>> SEVERE: error stopping 
>> org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger) (Caused by
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger))
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>>         at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>>         at
>> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>>         at
>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3623)
>>         at
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4336)
>>         at
>> org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5068)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
>>         at
>> org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:3960)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>         at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>>         at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>>         at
>> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>>         at
>> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>>         at
>> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>>         at
>> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>         at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>         at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>         at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>>         ... 49 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:169)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>>         ... 50 more
>> 3/10/2007 13:51:31 org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\Projects\Gmap2Examples\build\web\WEB-INF\lib\servlet.jar)
>> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
>> javax/servlet/Servlet.class
>> 3/10/2007 13:51:31 org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> SEVERE: Error deploying configuration descriptor Gmap2Examples.xml
>> org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger) (Caused by
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger))
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>>         at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>>         at
>> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>         at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>>         at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>>         at
>> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>>         at
>> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>>         at
>> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>>         at
>> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>         at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>         at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>         at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>>         ... 40 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:169)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>>         ... 41 more
>>
>>
>>
>>
>> martinf wrote:
>>   
>>> This:
>>>
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java
>>>
>>> is the heart of its JavaScript header contribution.
>>> Beyond that I don't see no real reason to add any JavaScript to the
>>> HTML.
>>> Just add it in its own *.js file and refer to that in the header section
>>> of the HTML.
>>>
>>> For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
>>> quite usefull for JavaScript debugging.
>>>
>>> Martin
>>>
>>>
>>>
>>> Ballist1c wrote:
>>>     
>>>> I'll definately have a look at that over the next day or so. At the
>>>> same
>>>> time, i would like to learn how to work these headerContributors for
>>>> other javascript based APIs :)
>>>>
>>>> Thanks for the heads up martin,:)
>>>>
>>>>
>>>> martinf wrote:
>>>>       
>>>>> You have seen 
>>>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>>>>> havent you?
>>>>>
>>>>> For GeoCoding check out the examples.
>>>>>
>>>>> Martin
>>>>>
>>>>>
>>>>> Ballist1c wrote:
>>>>>         
>>>>>> Hey guys, 
>>>>>>
>>>>>> I have been testing and attempting to get the google maps api
>>>>>> running,
>>>>>> with little avail.
>>>>>>
>>>>>> I have done some digging around for info and components written for
>>>>>> Google map api integration.  Unfortunately, the ones i have come
>>>>>> across
>>>>>> no longer exist in their respective SVNs :(
>>>>>>
>>>>>> As much as I would like to use something that i can load up and parse
>>>>>> in values, i would very much like to learn how to generate custom
>>>>>> Javascript in the <head> tags like the one required for google maps
>>>>>> to
>>>>>> locate a position.
>>>>>>
>>>>>> e.g.
>>>>>> <script type="text/javascript">
>>>>>>
>>>>>>    //<![CDATA[
>>>>>>
>>>>>>    function load() {
>>>>>>      if (GBrowserIsCompatible()) {
>>>>>>        var map = new GMap2(document.getElementById("map"));
>>>>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>>>>      }
>>>>>>    }
>>>>>>
>>>>>>    //]]>
>>>>>> </script> 
>>>>>>
>>>>>> At the moment I am stuck on how to reference javascript from an
>>>>>> external HTTP url, as opposed to a local js file. 
>>>>>>
>>>>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>>>>>
>>>>>> If anyone has any tips, that would be greatly appreciated :)
>>>>>>
>>>>>> Thanks guys, 
>>>>>>
>>>>>> Take care,
>>>>>> Leo!
>>>>>>
>>>>>>           
>>>>>         
>>>>       
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a13030048
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by Ballist1c <le...@msn.com>.
Ah that might explain it... ive attempted to deploy it in the current
Netbeans IDE im using with the crappy tomcat integrated server (v5.5 or
osmething i think).... 

My main project is destined to run on tomcat at the moment so whatever
googlemap implementation i use.. or googmap implementation i create, will
need to run on tomcat. :S... 


martinf wrote:
> 
> hmm..
> 
> how do you deploy?
> 
> To get a first glimpse, a:
> 
> mvn jetty:run
> 
> should get the jetty server running and the examples should be visible at:
> http://localhost:8080/wicket-contrib-gmap2-examples/
> 
> If you want to start it from within Eclipse using the Start class a:
> 
> mvn eclipse:clean eclipse:eclipse
> 
> cleanly rebuilding eclipses project and classpath files might help.
> Also a eclipse classpath variable has to be set up, but eclipse warning 
> will guide you to that.
> 
> Basically the exception says that that the classes providing the logging 
> implementation can't be found,
> Log4J, in this case.
> 
> Could it be that you are trying to get it started in a geronimo server?
> I'm not quite familiar with setting those up, but the Log4J jar has to 
> be present on the runtime classpath, WEB-INF/lib if you go by the 
> standards, but maybe your container has configuration files for that.
> 
> Martin
> 
> Ballist1c schrieb:
>> Ive downloaded and compiled the Gmap2 and examples, however, the examples
>> don't seem to deploy... there seems to be some low level issue. I have
>> the
>> latest wicket snapshot so I am assuming that there may be compatibility
>> issues.
>>
>> Also the Gmap (original) the SVN provided no long works :(
>>
>> The problem unfortuantely still exists and even though Gmap2 does not
>> work
>> deploy, now that i have the code, i can begin to write my own Gmap
>> implementation.
>>
>> Its gonna take a while to work through the code, im going to start with a
>> straight forward method to embed the most simple googlemap in a webpage
>> with
>> using default Wicket components. Any tips?
>>
>>
>> SEVERE: error stopping 
>> org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger) (Caused by
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger))
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>>         at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>>         at
>> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>>         at
>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3623)
>>         at
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4336)
>>         at
>> org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5068)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
>>         at
>> org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:3960)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>         at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>>         at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>>         at
>> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>>         at
>> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>>         at
>> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>>         at
>> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>         at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>         at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>         at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>>         ... 49 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:169)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>>         ... 50 more
>> 3/10/2007 13:51:31 org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\Projects\Gmap2Examples\build\web\WEB-INF\lib\servlet.jar)
>> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
>> javax/servlet/Servlet.class
>> 3/10/2007 13:51:31 org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> SEVERE: Error deploying configuration descriptor Gmap2Examples.xml
>> org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger) (Caused by
>> org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger))
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>>         at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>>         at
>> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>         at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>>         at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>>         at
>> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>         at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>>         at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>>         at
>> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>>         at
>> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>>         at
>> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>         at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>         at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>         at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>         at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>>         at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>         at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>         at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>         at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>         at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>>         at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>         at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>         at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>         at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger (Caused by
>> java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>>         ... 40 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.logging.impl.Log4JLogger
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:169)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>>         at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>>         ... 41 more
>>
>>
>>
>>
>> martinf wrote:
>>   
>>> This:
>>>
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java
>>>
>>> is the heart of its JavaScript header contribution.
>>> Beyond that I don't see no real reason to add any JavaScript to the
>>> HTML.
>>> Just add it in its own *.js file and refer to that in the header section
>>> of the HTML.
>>>
>>> For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
>>> quite usefull for JavaScript debugging.
>>>
>>> Martin
>>>
>>>
>>>
>>> Ballist1c wrote:
>>>     
>>>> I'll definately have a look at that over the next day or so. At the
>>>> same
>>>> time, i would like to learn how to work these headerContributors for
>>>> other javascript based APIs :)
>>>>
>>>> Thanks for the heads up martin,:)
>>>>
>>>>
>>>> martinf wrote:
>>>>       
>>>>> You have seen 
>>>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>>>>> havent you?
>>>>>
>>>>> For GeoCoding check out the examples.
>>>>>
>>>>> Martin
>>>>>
>>>>>
>>>>> Ballist1c wrote:
>>>>>         
>>>>>> Hey guys, 
>>>>>>
>>>>>> I have been testing and attempting to get the google maps api
>>>>>> running,
>>>>>> with little avail.
>>>>>>
>>>>>> I have done some digging around for info and components written for
>>>>>> Google map api integration.  Unfortunately, the ones i have come
>>>>>> across
>>>>>> no longer exist in their respective SVNs :(
>>>>>>
>>>>>> As much as I would like to use something that i can load up and parse
>>>>>> in values, i would very much like to learn how to generate custom
>>>>>> Javascript in the <head> tags like the one required for google maps
>>>>>> to
>>>>>> locate a position.
>>>>>>
>>>>>> e.g.
>>>>>> <script type="text/javascript">
>>>>>>
>>>>>>    //<![CDATA[
>>>>>>
>>>>>>    function load() {
>>>>>>      if (GBrowserIsCompatible()) {
>>>>>>        var map = new GMap2(document.getElementById("map"));
>>>>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>>>>      }
>>>>>>    }
>>>>>>
>>>>>>    //]]>
>>>>>> </script> 
>>>>>>
>>>>>> At the moment I am stuck on how to reference javascript from an
>>>>>> external HTTP url, as opposed to a local js file. 
>>>>>>
>>>>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>>>>>
>>>>>> If anyone has any tips, that would be greatly appreciated :)
>>>>>>
>>>>>> Thanks guys, 
>>>>>>
>>>>>> Take care,
>>>>>> Leo!
>>>>>>
>>>>>>           
>>>>>         
>>>>       
>>>     
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a13030048
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by Martin Funk <fu...@arcor.de>.
hmm..

how do you deploy?

To get a first glimpse, a:

mvn jetty:run

should get the jetty server running and the examples should be visible at:
http://localhost:8080/wicket-contrib-gmap2-examples/

If you want to start it from within Eclipse using the Start class a:

mvn eclipse:clean eclipse:eclipse

cleanly rebuilding eclipses project and classpath files might help.
Also a eclipse classpath variable has to be set up, but eclipse warning 
will guide you to that.

Basically the exception says that that the classes providing the logging 
implementation can't be found,
Log4J, in this case.

Could it be that you are trying to get it started in a geronimo server?
I'm not quite familiar with setting those up, but the Log4J jar has to 
be present on the runtime classpath, WEB-INF/lib if you go by the 
standards, but maybe your container has configuration files for that.

Martin

Ballist1c schrieb:
> Ive downloaded and compiled the Gmap2 and examples, however, the examples
> don't seem to deploy... there seems to be some low level issue. I have the
> latest wicket snapshot so I am assuming that there may be compatibility
> issues.
>
> Also the Gmap (original) the SVN provided no long works :(
>
> The problem unfortuantely still exists and even though Gmap2 does not work
> deploy, now that i have the code, i can begin to write my own Gmap
> implementation.
>
> Its gonna take a while to work through the code, im going to start with a
> straight forward method to embed the most simple googlemap in a webpage with
> using default Wicket components. Any tips?
>
>
> SEVERE: error stopping 
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger) (Caused by
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger))
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>         at
> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>         at
> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3623)
>         at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4336)
>         at
> org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5068)
>         at
> org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
>         at
> org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3960)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>         at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>         at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>         at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>         at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>         ... 49 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>         ... 50 more
> 3/10/2007 13:51:31 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(C:\Projects\Gmap2Examples\build\web\WEB-INF\lib\servlet.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> 3/10/2007 13:51:31 org.apache.catalina.startup.HostConfig deployDescriptor
> SEVERE: Error deploying configuration descriptor Gmap2Examples.xml
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger) (Caused by
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger))
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
>         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
>         at
> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
>         at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>         at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>         at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>         at
> org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>         ... 40 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.Log4JLogger
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
>         at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
>         ... 41 more
>
>
>
>
> martinf wrote:
>   
>> This:
>>
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java
>>
>> is the heart of its JavaScript header contribution.
>> Beyond that I don't see no real reason to add any JavaScript to the HTML.
>> Just add it in its own *.js file and refer to that in the header section
>> of the HTML.
>>
>> For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
>> quite usefull for JavaScript debugging.
>>
>> Martin
>>
>>
>>
>> Ballist1c wrote:
>>     
>>> I'll definately have a look at that over the next day or so. At the same
>>> time, i would like to learn how to work these headerContributors for
>>> other javascript based APIs :)
>>>
>>> Thanks for the heads up martin,:)
>>>
>>>
>>> martinf wrote:
>>>       
>>>> You have seen 
>>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>>>> havent you?
>>>>
>>>> For GeoCoding check out the examples.
>>>>
>>>> Martin
>>>>
>>>>
>>>> Ballist1c wrote:
>>>>         
>>>>> Hey guys, 
>>>>>
>>>>> I have been testing and attempting to get the google maps api running,
>>>>> with little avail.
>>>>>
>>>>> I have done some digging around for info and components written for
>>>>> Google map api integration.  Unfortunately, the ones i have come across
>>>>> no longer exist in their respective SVNs :(
>>>>>
>>>>> As much as I would like to use something that i can load up and parse
>>>>> in values, i would very much like to learn how to generate custom
>>>>> Javascript in the <head> tags like the one required for google maps to
>>>>> locate a position.
>>>>>
>>>>> e.g.
>>>>> <script type="text/javascript">
>>>>>
>>>>>    //<![CDATA[
>>>>>
>>>>>    function load() {
>>>>>      if (GBrowserIsCompatible()) {
>>>>>        var map = new GMap2(document.getElementById("map"));
>>>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>>>      }
>>>>>    }
>>>>>
>>>>>    //]]>
>>>>> </script> 
>>>>>
>>>>> At the moment I am stuck on how to reference javascript from an
>>>>> external HTTP url, as opposed to a local js file. 
>>>>>
>>>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>>>>
>>>>> If anyone has any tips, that would be greatly appreciated :)
>>>>>
>>>>> Thanks guys, 
>>>>>
>>>>> Take care,
>>>>> Leo!
>>>>>
>>>>>           
>>>>         
>>>       
>>     
>
>   


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


Re: Google Maps API

Posted by Ballist1c <le...@msn.com>.
Ive downloaded and compiled the Gmap2 and examples, however, the examples
don't seem to deploy... there seems to be some low level issue. I have the
latest wicket snapshot so I am assuming that there may be compatibility
issues.

Also the Gmap (original) the SVN provided no long works :(

The problem unfortuantely still exists and even though Gmap2 does not work
deploy, now that i have the code, i can begin to write my own Gmap
implementation.

Its gonna take a while to work through the code, im going to start with a
straight forward method to embed the most simple googlemap in a webpage with
using default Wicket components. Any tips?


SEVERE: error stopping 
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger) (Caused by
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger))
        at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
        at
org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
        at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3623)
        at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4336)
        at
org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5068)
        at
org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
        at
org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3960)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
        at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
        at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
        at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
        at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
        ... 49 more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
        ... 50 more
3/10/2007 13:51:31 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\Projects\Gmap2Examples\build\web\WEB-INF\lib\servlet.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
3/10/2007 13:51:31 org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor Gmap2Examples.xml
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger) (Caused by
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger))
        at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
        at
org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
        at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
        at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
        at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
        at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
        ... 40 more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4JLogger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:447)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376)
        ... 41 more




martinf wrote:
> 
> This:
> 
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java
> 
> is the heart of its JavaScript header contribution.
> Beyond that I don't see no real reason to add any JavaScript to the HTML.
> Just add it in its own *.js file and refer to that in the header section
> of the HTML.
> 
> For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
> quite usefull for JavaScript debugging.
> 
> Martin
> 
> 
> 
> Ballist1c wrote:
>> 
>> I'll definately have a look at that over the next day or so. At the same
>> time, i would like to learn how to work these headerContributors for
>> other javascript based APIs :)
>> 
>> Thanks for the heads up martin,:)
>> 
>> 
>> martinf wrote:
>>> 
>>> You have seen 
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>>> havent you?
>>> 
>>> For GeoCoding check out the examples.
>>> 
>>> Martin
>>> 
>>> 
>>> Ballist1c wrote:
>>>> 
>>>> Hey guys, 
>>>> 
>>>> I have been testing and attempting to get the google maps api running,
>>>> with little avail.
>>>> 
>>>> I have done some digging around for info and components written for
>>>> Google map api integration.  Unfortunately, the ones i have come across
>>>> no longer exist in their respective SVNs :(
>>>> 
>>>> As much as I would like to use something that i can load up and parse
>>>> in values, i would very much like to learn how to generate custom
>>>> Javascript in the <head> tags like the one required for google maps to
>>>> locate a position.
>>>> 
>>>> e.g.
>>>> <script type="text/javascript">
>>>> 
>>>>    //<![CDATA[
>>>> 
>>>>    function load() {
>>>>      if (GBrowserIsCompatible()) {
>>>>        var map = new GMap2(document.getElementById("map"));
>>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>>      }
>>>>    }
>>>> 
>>>>    //]]>
>>>> </script> 
>>>> 
>>>> At the moment I am stuck on how to reference javascript from an
>>>> external HTTP url, as opposed to a local js file. 
>>>> 
>>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>>> 
>>>> If anyone has any tips, that would be greatly appreciated :)
>>>> 
>>>> Thanks guys, 
>>>> 
>>>> Take care,
>>>> Leo!
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a13012589
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by martinf <fu...@arcor.de>.
This:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java

is the heart of its JavaScript header contribution.
Beyond that I don't see no real reason to add any JavaScript to the HTML.
Just add it in its own *.js file and refer to that in the header section of
the HTML.

For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
quite usefull for JavaScript debugging.

Martin



Ballist1c wrote:
> 
> I'll definately have a look at that over the next day or so. At the same
> time, i would like to learn how to work these headerContributors for other
> javascript based APIs :)
> 
> Thanks for the heads up martin,:)
> 
> 
> martinf wrote:
>> 
>> You have seen 
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>> havent you?
>> 
>> For GeoCoding check out the examples.
>> 
>> Martin
>> 
>> 
>> Ballist1c wrote:
>>> 
>>> Hey guys, 
>>> 
>>> I have been testing and attempting to get the google maps api running,
>>> with little avail.
>>> 
>>> I have done some digging around for info and components written for
>>> Google map api integration.  Unfortunately, the ones i have come across
>>> no longer exist in their respective SVNs :(
>>> 
>>> As much as I would like to use something that i can load up and parse in
>>> values, i would very much like to learn how to generate custom
>>> Javascript in the <head> tags like the one required for google maps to
>>> locate a position.
>>> 
>>> e.g.
>>> <script type="text/javascript">
>>> 
>>>    //<![CDATA[
>>> 
>>>    function load() {
>>>      if (GBrowserIsCompatible()) {
>>>        var map = new GMap2(document.getElementById("map"));
>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>      }
>>>    }
>>> 
>>>    //]]>
>>> </script> 
>>> 
>>> At the moment I am stuck on how to reference javascript from an external
>>> HTTP url, as opposed to a local js file. 
>>> 
>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>> 
>>> If anyone has any tips, that would be greatly appreciated :)
>>> 
>>> Thanks guys, 
>>> 
>>> Take care,
>>> Leo!
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994699
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Theres also 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap :)

Ballist1c wrote:
> I'll definately have a look at that over the next day or so. At the same
> time, i would like to learn how to work these headerContributors for other
> javascript based APIs :)
>
> Thanks for the heads up martin,:)
>
>
> martinf wrote:
>   
>> You have seen 
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>> havent you?
>>
>> For GeoCoding check out the examples.
>>
>> Martin
>>
>>
>> Ballist1c wrote:
>>     
>>> Hey guys, 
>>>
>>> I have been testing and attempting to get the google maps api running,
>>> with little avail.
>>>
>>> I have done some digging around for info and components written for
>>> Google map api integration.  Unfortunately, the ones i have come across
>>> no longer exist in their respective SVNs :(
>>>
>>> As much as I would like to use something that i can load up and parse in
>>> values, i would very much like to learn how to generate custom Javascript
>>> in the <head> tags like the one required for google maps to locate a
>>> position.
>>>
>>> e.g.
>>> <script type="text/javascript">
>>>
>>>    //<![CDATA[
>>>
>>>    function load() {
>>>      if (GBrowserIsCompatible()) {
>>>        var map = new GMap2(document.getElementById("map"));
>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>      }
>>>    }
>>>
>>>    //]]>
>>> </script> 
>>>
>>> At the moment I am stuck on how to reference javascript from an external
>>> HTTP url, as opposed to a local js file. 
>>>
>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>>>
>>> If anyone has any tips, that would be greatly appreciated :)
>>>
>>> Thanks guys, 
>>>
>>> Take care,
>>> Leo!
>>>
>>>       
>>     
>
>   

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


Re: Google Maps API

Posted by Ballist1c <le...@msn.com>.
I'll definately have a look at that over the next day or so. At the same
time, i would like to learn how to work these headerContributors for other
javascript based APIs :)

Thanks for the heads up martin,:)


martinf wrote:
> 
> You have seen 
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
> havent you?
> 
> For GeoCoding check out the examples.
> 
> Martin
> 
> 
> Ballist1c wrote:
>> 
>> Hey guys, 
>> 
>> I have been testing and attempting to get the google maps api running,
>> with little avail.
>> 
>> I have done some digging around for info and components written for
>> Google map api integration.  Unfortunately, the ones i have come across
>> no longer exist in their respective SVNs :(
>> 
>> As much as I would like to use something that i can load up and parse in
>> values, i would very much like to learn how to generate custom Javascript
>> in the <head> tags like the one required for google maps to locate a
>> position.
>> 
>> e.g.
>> <script type="text/javascript">
>> 
>>    //<![CDATA[
>> 
>>    function load() {
>>      if (GBrowserIsCompatible()) {
>>        var map = new GMap2(document.getElementById("map"));
>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>      }
>>    }
>> 
>>    //]]>
>> </script> 
>> 
>> At the moment I am stuck on how to reference javascript from an external
>> HTTP url, as opposed to a local js file. 
>> 
>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>> 
>> If anyone has any tips, that would be greatly appreciated :)
>> 
>> Thanks guys, 
>> 
>> Take care,
>> Leo!
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994550
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Google Maps API

Posted by martinf <fu...@arcor.de>.
You have seen 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
havent you?

For GeoCoding check out the examples.

Martin


Ballist1c wrote:
> 
> Hey guys, 
> 
> I have been testing and attempting to get the google maps api running,
> with little avail.
> 
> I have done some digging around for info and components written for Google
> map api integration.  Unfortunately, the ones i have come across no longer
> exist in their respective SVNs :(
> 
> As much as I would like to use something that i can load up and parse in
> values, i would very much like to learn how to generate custom Javascript
> in the <head> tags like the one required for google maps to locate a
> position.
> 
> e.g.
> <script type="text/javascript">
> 
>    //<![CDATA[
> 
>    function load() {
>      if (GBrowserIsCompatible()) {
>        var map = new GMap2(document.getElementById("map"));
>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>      }
>    }
> 
>    //]]>
> </script> 
> 
> At the moment I am stuck on how to reference javascript from an external
> HTTP url, as opposed to a local js file. 
> 
> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
> 
> If anyone has any tips, that would be greatly appreciated :)
> 
> Thanks guys, 
> 
> Take care,
> Leo!
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994408
Sent from the Wicket - User mailing list archive at Nabble.com.


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


RE: Google Maps API

Posted by Maeder Thomas <th...@ecofin.ch>.
I quickly added the following line to one of my pages:

 
add(HeaderContributor.forJavaScript("http://maps.google.com/maps?file=ap
i&amp;v=2&amp;key=ABC")); 


It correctly renders in the page's header as

<script type="text/javascript"
src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"></script>

I'm using 1.3 beta-3. Either you're using a different version, or I
don't think the header contribution is the problem. Can you do "view
source" when the page hangs?

Thomas

> -----Original Message-----
> From: Ballist1c [mailto:leobi@msn.com] 
> Sent: Dienstag, 2. Oktober 2007 10:00
> To: users@wicket.apache.org
> Subject: RE: Google Maps API
> 
> 
> I have tried that...
> 
> add(HeaderContributor.forJavaScript("http://maps.google.com/ma
> ps?file=api&amp;v=2&amp;key=ABC"));
> 
> However, when I have that line of code, accessing the page 
> with that HeaderContributor the system hangs, and the page 
> doesn't load, i dont even seem to get an error and the only 
> way i can get out of it is through a manual refresh to the baseURL.
> 
> Any thoughts?
> 
> 
> Thomas Maeder wrote:
> > 
> > How does HeaderContributor.forJavaScript(final String location) not 
> > fit your needs?
> > 
> > Thomas
> > 
> > 
> > <Snip...>
> >> 
> >> At the moment I am stuck on how to reference javascript from an 
> >> external HTTP url, as opposed to a local js file.
> >> 
> >> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
> >> 
> >> If anyone has any tips, that would be greatly appreciated :)
> >> 
> >> Thanks guys,
> >> 
> >> Take care,
> >> Leo!
> >> --

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


RE: Google Maps API

Posted by Ballist1c <le...@msn.com>.
I have tried that...

add(HeaderContributor.forJavaScript("http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"));

However, when I have that line of code, accessing the page with that
HeaderContributor the system hangs, and the page doesn't load, i dont even
seem to get an error and the only way i can get out of it is through a
manual refresh to the baseURL.

Any thoughts?


Thomas Maeder wrote:
> 
> How does HeaderContributor.forJavaScript(final String location) not fit
> your needs?
> 
> Thomas
> 
> 
> <Snip...>
>> 
>> At the moment I am stuck on how to reference javascript from 
>> an external HTTP url, as opposed to a local js file. 
>> 
>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
>> 
>> If anyone has any tips, that would be greatly appreciated :)
>> 
>> Thanks guys, 
>> 
>> Take care,
>> Leo!
>> --
>> View this message in context: 
>> http://www.nabble.com/Google-Maps-API-tf4553339.html#a12993967
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994533
Sent from the Wicket - User mailing list archive at Nabble.com.


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


RE: Google Maps API

Posted by Maeder Thomas <th...@ecofin.ch>.
How does HeaderContributor.forJavaScript(final String location) not fit
your needs?

Thomas


<Snip...>
> 
> At the moment I am stuck on how to reference javascript from 
> an external HTTP url, as opposed to a local js file. 
> 
> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC"
> 
> If anyone has any tips, that would be greatly appreciated :)
> 
> Thanks guys, 
> 
> Take care,
> Leo!
> --
> View this message in context: 
> http://www.nabble.com/Google-Maps-API-tf4553339.html#a12993967
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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