Subversion Repository Public Repository

litesoft

Diff Revisions 30 vs 48 for /trunk/Java/GWT/Server/src/org/litesoft/GWT/server/AbstractServerApp.java

Diff revisions: vs.
  @@ -10,9 +10,9 @@
10 10 import org.litesoft.core.simpletypes.temporal.*;
11 11 import org.litesoft.logger.*;
12 12 import org.litesoft.logger.nonpublic.*;
13 + import org.litesoft.reports.*;
13 14 import org.litesoft.util.*;
14 15 import org.litesoft.util.template.*;
15 - import org.litesoft.reports.*;
16 16
17 17 import com.google.gwt.user.client.rpc.*;
18 18 import com.google.gwt.user.server.rpc.*;
  @@ -50,6 +50,7 @@
50 50 sOneTimeInitException = pOneTimeInitException;
51 51 }
52 52
53 + @Override
53 54 public void init()
54 55 throws ServletException
55 56 {
  @@ -104,7 +105,10 @@
104 105 private void initializeLogger( LoggerLevel pLoggerLevel )
105 106 {
106 107 ServletContext zSC = getServletContext();
107 - zSC.log( "****** Test ******" ); // todo: Note that the ServletContext has Logging support, we should look into using it as an additional Logging sync
108 + if ( zSC != null )
109 + {
110 + zSC.log( "****** Test ******" ); // todo: Note that the ServletContext has Logging support, we should look into using it as an additional Logging sync
111 + }
108 112
109 113 LoggerFactory.init( pLoggerLevel );
110 114 }
  @@ -113,11 +117,15 @@
113 117 {
114 118 if ( getLogger().info.isEnabled() )
115 119 {
116 - Enumeration zParamNames = getServletContext().getInitParameterNames();
117 - while ( zParamNames.hasMoreElements() )
120 + ServletContext zSC = getServletContext();
121 + if ( zSC != null )
118 122 {
119 - String zParamName = (String) zParamNames.nextElement();
120 - getLogger().info.log( "Context Param " + zParamName, " value is ", getServletContext().getInitParameter( zParamName ) );
123 + Enumeration zParamNames = zSC.getInitParameterNames();
124 + while ( zParamNames.hasMoreElements() )
125 + {
126 + String zParamName = (String) zParamNames.nextElement();
127 + getLogger().info.log( "Context Param " + zParamName, " value is ", getServletContext().getInitParameter( zParamName ) );
128 + }
121 129 }
122 130 }
123 131 }
  @@ -161,7 +169,9 @@
161 169 for ( ServerReportFactory zFactory : pFactories )
162 170 {
163 171 if ( zFactory != null )
164 - ServerReportFactory.Registry.register( zFactory );
172 + {
173 + ServerReportFactory.Registry.register( zFactory );
174 + }
165 175 }
166 176 }
167 177 }
  @@ -184,6 +194,7 @@
184 194 }
185 195 }
186 196
197 + @Override
187 198 public String processCall( String payload )
188 199 throws SerializationException
189 200 {
  @@ -204,6 +215,7 @@
204 215 }
205 216 }
206 217
218 + @Override
207 219 protected void service( HttpServletRequest pRequest, HttpServletResponse pResponse )
208 220 throws ServletException, IOException
209 221 {