Reinhard,
I've experimented this with eclipse, i recommend to delete the server an
re-create it again:
- Select the Server view (Tab) and make active the server you are using, then
right click on it an select Delete.
Sometimes when you run tomcat from inside eclipse, eclipse us unable to stop
it, i use the next command:
kill -KILL `ps -fea | grep -vw $$ | awk '/tomcat/ {print $2}'`
Bye
Hans
----- Mensaje original -----
De: "Reinhard Hnat" <[email protected]>
Para: [email protected]
Enviados: Viernes, 15 de Julio 2011 4:07:29
Asunto: Re: Form no longer displayed
I explicitely kill all tomcat processes before starting with eclipse.
the select htm becomes displayed as if it was static html. The class
select.class becomes never instanciated. I have tried to export my
project t a WAR-file and deployed it on another server. This worked
without problems.
Reinhard
Am 2011-07-12 11:42, schrieb Bob Schellink:
> java.net.BindException: Address already in use
>
> means you already have an instance of TC running. Shut down the old
> version first.
>
> Bob
>
> On Tue, Jul 12, 2011 at 10:52 AM, Reinhard Hnat<[email protected]> wrote:
>> Do exist whiches only because brooms exist?? Sometimes i believe so.
>>
>> I renamed the deploy directory from
>> /home/hnat/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/GealogForWeb
>> to
>> /home/hnat/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/webapps/GealogForWeb
>>
>> and now i get new logfiles. catalina.2011-07-12.log shows the following:
>>
>> 12.07.2011 10:32:43 org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path:
>> /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
>> 12.07.2011 10:32:44 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8081
>> 12.07.2011 10:32:44 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1231 ms
>> 12.07.2011 10:32:44 org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> 12.07.2011 10:32:44 org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
>> 12.07.2011 10:32:44 org.apache.catalina.startup.HostConfig deployDescriptor
>> INFO: Deploying configuration descriptor examples.xml
>> 12.07.2011 10:32:45 org.apache.catalina.startup.HostConfig deployDescriptor
>> INFO: Deploying configuration descriptor ROOT.xml
>> 12.07.2011 10:32:45 org.apache.catalina.startup.HostConfig deployDescriptor
>> INFO: Deploying configuration descriptor docs.xml
>> 12.07.2011 10:32:45 org.apache.catalina.startup.HostConfig deployDescriptor
>> INFO: Deploying configuration descriptor host-manager.xml
>> 12.07.2011 10:32:45 org.apache.catalina.startup.HostConfig deployDescriptor
>> INFO: Deploying configuration descriptor manager.xml
>> 12.07.2011 10:32:45 org.apache.catalina.startup.HostConfig deployDirectory
>> INFO: Deploying web application directory GealogWeb
>> 12.07.2011 10:32:47 org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8081
>> 12.07.2011 10:32:47 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 3087 ms
>> 12.07.2011 10:32:47 org.apache.catalina.core.StandardServer await
>> SCHWERWIEGEND: StandardServer.await: create[8005]:
>> java.net.BindException: Address already in use
>> at java.net.PlainSocketImpl.socketBind(Native Method)
>> at
>> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
>> at java.net.ServerSocket.bind(ServerSocket.java:336)
>> at java.net.ServerSocket.<init>(ServerSocket.java:202)
>> at
>> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
>> at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>> I am confused!!
>>
>> Reinhard
>>
>>
>>
>>
>> Am 2011-07-12 09:55, schrieb Bob Schellink:
>>
>> And if you restart tomcat you still don't get a log file? I suggest
>> you get the log files working first, otherwise you won't receive any
>> debug information.
>>
>> regards
>>
>> Bob
>>
>> On Tue, Jul 12, 2011 at 9:52 AM, Bob Schellink<[email protected]> wrote:
>>
>> Are you using custom Click services or just vanilla Click?
>>
>> Is login.htm the template that does not render the form?
>>
>> Things to check:
>> - Is the form added to the page through addControl(form)?
>> - is methods of Page being overridden such as addControl or addModel?
>> Does the BorderTemplate override Page methods?
>>
>> regards
>>
>> Bob
>>
>>
>> On Tue, Jul 12, 2011 at 9:40 AM, Reinhard Hnat<[email protected]>
>> wrote:
>>
>> This is what catalina.out says (All other log-files are gone, i do not know
>> why.
>>
>> [Click] [debug] GET http://localhost:8080/GealogWeb/
>> [Click] [trace] is Ajax request: false
>> [Click] [trace] invoked: Login.<<init>>
>> [Click] [trace] invoked: Login.onSecurityCheck() : true
>> [Click] [trace] invoked: Login.onInit()
>> [Click] [trace] invoked: Login.onGet()
>> [Click] [trace] invoked: Login.onRender()
>> [Click] [info ] renderTemplate: /login.htm - 4 ms
>> [Click] [trace] invoked: Login.onDestroy()
>> [Click] [info ] handleRequest: /login.htm - 6 ms
>> 17.06.2011 10:29:32 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context [/manager]
>> 17.06.2011 10:29:32 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context []
>> 17.06.2011 10:29:32 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context [/GealogWeb]
>> [Click] [info ] *** Initializing Click 2.3.0 in trace mode ***
>> [Click] [info ] initialized LogService:
>> org.apache.click.service.ConsoleLogService
>> [Click] [trace] resource deploy folder: /var/lib/tomcat6/webapps/GealogWeb/
>> [Click] [debug] listing classes in
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-2.2.0.jar!/META-INF/resources
>> [Click] [trace] find jar url:
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-2.2.0.jar!/META-INF/resources
>> [Click] [trace] inner url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-2.2.0.jar!/META-INF/resources
>> [Click] [trace] extracted jar url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-2.2.0.jar
>> [Click] [info ] found jar:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-2.2.0.jar
>> [Click] [debug] listing classes in
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.2.0.jar!/META-INF/resources
>> [Click] [trace] find jar url:
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.2.0.jar!/META-INF/resources
>> [Click] [trace] inner url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.2.0.jar!/META-INF/resources
>> [Click] [trace] extracted jar url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.2.0.jar
>> [Click] [info ] found jar:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.2.0.jar
>> [Click] [debug] listing classes in
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.3.0.jar!/META-INF/resources
>> [Click] [trace] find jar url:
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.3.0.jar!/META-INF/resources
>> [Click] [trace] inner url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.3.0.jar!/META-INF/resources
>> [Click] [trace] extracted jar url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.3.0.jar
>> [Click] [info ] found jar:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-calendar-1.3.0.jar
>> [Click] [debug] listing classes in
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-extras-2.2.0.jar!/META-INF/resources
>> [Click] [trace] find jar url:
>> jar:file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-extras-2.2.0.jar!/META-INF/resources
>> [Click] [trace] inner url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-extras-2.2.0.jar!/META-INF/resources
>> [Click] [trace] extracted jar url:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-extras-2.2.0.jar
>> [Click] [info ] found jar:
>> file:/var/lib/tomcat6/webapps/GealogWeb/WEB-INF/lib/click-extras-2.2.0.jar
>> [Click] [trace] deployed files from jars and folders - 364 ms
>> [Click] [debug] click.xml pages:
>> [Click] [debug] /login.htm -> Rootpack.Login
>> [Click] [debug] /user/select.htm -> Rootpack.Select
>> [Click] [debug] /user/graphik.htm -> Rootpack.Graphik
>> [Click] [debug] /user/tabelle.htm -> Rootpack.Tabelle
>> [Click] [debug] automapped pages:
>> [Click] [debug] /click/error.htm -> CLASS NOT FOUND
>> [Click] [trace] class not found: Rootpack.click.Error
>> [Click] [debug] /click/not-found.htm -> CLASS NOT FOUND
>> [Click] [trace] class not found: Rootpack.click.NotFound
>> [Click] [debug] initializing FileLoadService:
>> org.apache.click.service.CommonsFileUploadService
>> [Click] [debug] initializing TemplateService:
>> org.apache.click.service.VelocityTemplateService
>> [Click] [trace] velocity properties: {class.resource.loader.cache=false,
>> class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader,
>> directive.if.tostring.nullcheck=false, input.encoding=UTF-8,
>> resource.loader=webapp, class,
>> runtime.log.logsystem.class=org.apache.click.service.VelocityTemplateService$LogChuteAdapter,
>> velocimacro.library=/click/VM_global_library.vm,
>> velocimacro.library.autoreload=true, webapp.resource.loader.cache=false,
>> webapp.resource.loader.class=org.apache.velocity.tools.view.WebappResourceLoader}
>> [Click] [debug] initializing ResourceService:
>> org.apache.click.service.ClickResourceService
>> [Click] [debug] initializing MessagesMapService:
>> org.apache.click.service.DefaultMessagesMapService
>> [Click] [info ] Click 2.3.0 initialized in trace mode
>> 17.06.2011 10:29:34 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context [/docs]
>> 17.06.2011 10:29:34 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context [/examples]
>> 17.06.2011 10:29:34 org.apache.catalina.startup.HostConfig checkResources
>> INFO: Reloading context [/host-manager]
>>
>> Reinhard
>>
>>
>> Am 2011-07-12 06:56, schrieb Bob Schellink:
>>
>> Hi Reinhard,
>>
>> Sounds like the template is not processed by Click. What URL are using and
>> what does the log say?
>>
>> regards
>>
>> Bob
>>
>> On 2011/07/11 10:54 AM, Reinhard Hnat wrote:
>>
>> I am developing a web-application using Eclipse and Apache click deploing
>> it with a Tomcat 6.6.
>> Everything went fine until i inserted a line to an htm file and deleted
>> it immediately afterwards.
>> Since then i get the following output to the browser instead of my form:
>>
>> /$headElements $form $jsElements
>> /
>> What could be broken? I am searching for the problem but can not find any
>> cause.
>>
>> Please give me some hints where to search for the problem.
>>
>> Thanks
>> Reinhard
>>
>>