How i can see java system properties (-D) ?
web.xml are set <param-name>tapestry.combine-scripts</param-name> <param-value>false</param-value> </context-param> And here are my AppModule.java combine-script are true in this appmodule. But in working server combine-script are trule false as in web.xml file // Copyright 2007, 2008 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package ee.softpro.services; import java.io.IOException; import org.apache.tapestry5.*; import org.apache.tapestry5.ioc.MappedConfiguration; import org.apache.tapestry5.ioc.OrderedConfiguration; import org.apache.tapestry5.ioc.ServiceBinder; import org.apache.tapestry5.ioc.annotations.InjectService; import org.apache.tapestry5.ioc.Configuration; import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.services.Request; import org.apache.tapestry5.services.RequestFilter; import org.apache.tapestry5.services.RequestHandler; import org.apache.tapestry5.services.Response; import org.apache.tapestry5.services.AliasContribution; import org.apache.tapestry5.services.BaseURLSource; import org.apache.tapestry5.services.RequestExceptionHandler; import org.apache.tapestry5.services.RequestGlobals; import org.slf4j.Logger; /** * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to * configure and extend Tapestry, or to place your own service definitions. */ public class AppModule { @Inject private RequestGlobals requestGlobals; public static void bind(ServiceBinder binder) { // binder.bind(MyServiceInterface.class, MyServiceImpl.class); // Make bind() calls on the binder object to define most IoC services. // Use service builder methods (example below) when the implementation // is provided inline, or requires more initialization than simply // invoking the constructor. } public static void contributeApplicationDefaults( MappedConfiguration<String, String> configuration) { // Contributions to ApplicationDefaults will override any contributions to // FactoryDefaults (with the same key). Here we're restricting the supported // locales to just "en" (English). As you add localised message catalogs and other assets, // you can extend this list of locales (it's a comma seperated series of locale names; // the first locale name is the default when there's no reasonable match). // configuration.add(TapestryConstants.SUPPORTED_LOCALES_SYMBOL, "en"); // The factory default is true but during the early stages of an application // overriding to false is a good idea. In addition, this is often overridden // on the command line as -Dtapestry.production-mode=false System.out.println("oleme nüüd lõpuks siin"); configuration.add(SymbolConstants.PRODUCTION_MODE, "false"); configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true"); } /** * This is a service definition, the service will be named "TimingFilter". The interface, * RequestFilter, is used within the RequestHandler service pipeline, which is built from the * RequestHandler service configuration. Tapestry IoC is responsible for passing in an * appropriate Log instance. Requests for static resources are handled at a higher level, so * this filter will only be invoked for Tapestry related requests. * * <p> * Service builder methods are useful when the implementation is inline as an inner class * (as here) or require some other kind of special initialization. In most cases, * use the static bind() method instead. * * <p> * If this method was named "build", then the service id would be taken from the * service interface and would be "RequestFilter". Since Tapestry already defines * a service named "RequestFilter" we use an explicit service id that we can reference * inside the contribution method. */ public RequestFilter buildTimingFilter(final Logger log) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); try { // The reponsibility of a filter is to invoke the corresponding method // in the handler. When you chain multiple filters together, each filter // received a handler that is a bridge to the next filter. return handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; log.info(String.format("Request time: %d ms", elapsed)); } } }; } /** * This is a contribution to the RequestHandler service configuration. This is how we extend * Tapestry using the timing filter. A common use for this kind of filter is transaction * management or security. */ public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, @InjectService("TimingFilter") RequestFilter filter) { // Each contribution to an ordered configuration has a name, When necessary, you may // set constraints to precisely control the invocation order of the contributed filter // within the pipeline. configuration.add("Timing", filter); } /* public void contributeAlias(Configuration<AliasContribution> configuration) { BaseURLSource source = new BaseURLSource() { public String getBaseURL(boolean secure) { String protocol = secure ? "https" : "http"; int port = secure ? 8443 : 8080; return String.format("%s://localhost:%d", protocol, port); } }; configuration.add(AliasContribution.create(BaseURLSource.class,source)); } */ public RequestFilter buildUtf8Filter( @InjectService("RequestGlobals") final RequestGlobals requestGlobals) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { requestGlobals.getHTTPServletRequest().setCharacterEncoding("UTF-8"); return handler.service(request, response); } }; } public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, @InjectService("TimingFilter") final RequestFilter timingFilter, @InjectService("Utf8Filter") final RequestFilter utf8Filter) { configuration.add("Utf8Filter", utf8Filter); // handle UTF-8 configuration.add("Timing", timingFilter); } } 2009/10/26 Inge Solvoll <inge.tapes...@gmail.com> > All of this works for me. > > Are you sure there aren't any JVM params set in your app server? And other > configuration points? > > On Mon, Oct 26, 2009 at 2:13 PM, Argo Vilberg <wilps...@gmail.com> wrote: > > > Thanks, seems taht web.xml variants works. > > > > But AppModule.java is no use :) > > > > > > Argo > > > > 2009/10/26 cordenier christophe <christophe.corden...@gmail.com> > > > > > Hello > > > > > > Actually, it is possible to configure Tapestry with (in priority order) > > > > > > 1. java system properties (-D) > > > 2. web.xml context parameters > > > 3 contributeApplicationDefaults > > > 4. contribteFactoryDefaults > > > > > > Check your environment to verify the configuration symbol is not > > duplicated > > > with a wrong value > > > > > > Regards > > > Christophe. > > > > > > > > > > > > 2009/10/26 Argo Vilberg <wilps...@gmail.com> > > > > > > > I tried > > > > configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true"); > > > > > > > > and also > > > > configuration.add(SymbolConstants.COMBINE_SCRIPTS, "false"); > > > > > > > > > > > > But in bot cases there are my localhost always every javascript its > own > > > > notation. > > > > And in production server always are javascript combained together. > > > > > > > > > > > > Why ? > > > > > > > > > > > > > > > > <meta content="Apache Tapestry Framework (version 5.1.0.5)" > > > name="generator > > > > "></meta><script > > > > src="/digileping/assets/scriptaculous/5.1.0.5/prototype.js< > > > > > https://localhost/digileping/assets/scriptaculous/5.1.0.5/prototype.js > > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/scriptaculous/5.1.0.5/scriptaculous.js< > > > > > > > > > > https://localhost/digileping/assets/scriptaculous/5.1.0.5/scriptaculous.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/scriptaculous/5.1.0.5/effects.js< > > > > https://localhost/digileping/assets/scriptaculous/5.1.0.5/effects.js > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/tapestry/5.1.0.5/tapestry.js< > > > > https://localhost/digileping/assets/tapestry/5.1.0.5/tapestry.js>" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/blackbird/5.1.0.5/blackbird.js< > > > > https://localhost/digileping/assets/blackbird/5.1.0.5/blackbird.js>" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/tapestry/5.1.0.5/tapestry-messages.js< > > > > > > > > > > https://localhost/digileping/assets/tapestry/5.1.0.5/tapestry-messages.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > > /digileping/assets/app/68abee1e93204a48/pages/js/ckeditor/ckeditor.js< > > > > > > > > > > https://localhost/digileping/assets/app/68abee1e93204a48/pages/js/ckeditor/ckeditor.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/app/68abee1e93204a48/pages/js/ckeditorconfig.js< > > > > > > > > > > https://localhost/digileping/assets/app/68abee1e93204a48/pages/js/ckeditorconfig.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/app/68abee1e93204a48/components/js/everything.js< > > > > > > > > > > https://localhost/digileping/assets/app/68abee1e93204a48/components/js/everything.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > > > /digileping/assets/app/68abee1e93204a48/components/js/iepngfix_tilebg.js< > > > > > > > > > > https://localhost/digileping/assets/app/68abee1e93204a48/components/js/iepngfix_tilebg.js > > > > >" > > > > type="text/javascript"></script><script src=" > > > > /digileping/assets/app/68abee1e93204a48/mixins/zone_updater_1_0.js< > > > > > > > > > > https://localhost/digileping/assets/app/68abee1e93204a48/mixins/zone_updater_1_0.js > > > > >" > > > > type="text/javascript"></script></head><body><div id="container"><div > > > id=" > > > > header"><h1 class="logo"><a > > > > href="admindigileping.border.homelink/1< > > > > https://localhost/digileping/admindigileping.border.homelink/1> > > > > "><span class="hidden">OÜ Digileping</span></a></h1><div > > > > id="controlpanel"><a > > > > class="cp iconlink lightbulb" > > > > href="adminuser<https://localhost/digileping/adminuser> > > > > ">Adminliides</a> > > > > > > > > > > > > > > > > And in my production server are : > > > > > > > > <meta content="Apache Tapestry Framework (version 5.1.0.5)" > > > name="generator > > > > "></meta><script src=" > > > > > > > > > > > > > > /digileping/assets/virtual/H4sIAAAAAAAAAJXOUWrDMAyAYVPYU68xxijUbliTpoOdJTiOkqlNbGMpo$002bmZerXdYXUggb2k9M2I75d8$002bxUvVyFWUgixFhuliYBJkQnoWZu$002bdT2pVCZyJ1Plg2PHgwd5IiGX7b9p9O$002fLHuoaDI$002fydZKsPRCHYUbTIKq3SZWtNucSQzWzeRLd9uG2bQdEuoHx$002bOfEtfeqSvbHD5Nm2T47Qp7kykemTqTMGSpkF$002bZHbA$002fPtcbZGpsY5ouhcZ13FiyPNfxAGPgb7Vh$002bPVEieNvUeCkYWyibxz$002fu8IKW1PW$002bouh9pRlCkRS7e$002fgHmDWLEDcCAAA$003d.js< > > > > > > > > > > https://www.digileping.ee/digileping/assets/virtual/H4sIAAAAAAAAAJXOUWrDMAyAYVPYU68xxijUbliTpoOdJTiOkqlNbGMpo$002bmZerXdYXUggb2k9M2I75d8$002bxUvVyFWUgixFhuliYBJkQnoWZu$002bdT2pVCZyJ1Plg2PHgwd5IiGX7b9p9O$002fLHuoaDI$002fydZKsPRCHYUbTIKq3SZWtNucSQzWzeRLd9uG2bQdEuoHx$002bOfEtfeqSvbHD5Nm2T47Qp7kykemTqTMGSpkF$002bZHbA$002fPtcbZGpsY5ouhcZ13FiyPNfxAGPgb7Vh$002bPVEieNvUeCkYWyibxz$002fu8IKW1PW$002bouh9pRlCkRS7e$002fgHmDWLEDcCAAA$003d.js > > > > >" > > > > type="text/javascript"></script></head><body><div id="container"><div > > > id=" > > > > header"><h1 class="logo"><a > > > > href="admindigileping.border.homelink/1< > > > > > https://www.digileping.ee/digileping/admindigileping.border.homelink/1 > > > > > > > "><span class="hidden">OÜ Digileping</span></a></h1><div > > > > id="controlpanel"><a > > > > class="cp iconlink lightbulb" > > > > href="adminuser<https://www.digileping.ee/digileping/adminuser> > > > > ">Adminliides</a> > > > > > > > > > >