[google-appengine] PROD - QUEUE - DJANGO_SETTINGS_MODULE is undefined

2012-05-28 Thread Amine Azariz


I am using Django 1.2, Python 2.5. This error happens from time to time. - 
e.g. some tasks got this error, some - not. 

How to solve this one? 

File 
/base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loader.py,
 line 168, in get_template_from_string
return Template(source, origin, name)
  File 
/base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/__init__.py,
 line 156, in __init__
if settings.TEMPLATE_DEBUG and origin is None:
  File 
/base/python_runtime/python_lib/versions/third_party/django-1.2/django/utils/functional.py,
 line 276, in __getattr__
self._setup()
  File 
/base/python_runtime/python_lib/versions/third_party/django-1.2/django/conf/__init__.py,
 line 38, in _setup
raise ImportError(Settings cannot be imported, because environment 
variable %s is undefined. % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable 
DJANGO_SETTINGS_MODULE is undefined.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/A1bWVSwArvMJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How do I use locales and resource bundles to internationalize my application?

2012-05-28 Thread Torleif
I get this error message in my logfile:

java.lang.RuntimeException: java.io.NotSerializableException: 
javax.servlet.jsp.jstl.fmt.LocalizationContext
at 
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:373)
at 
com.google.apphosting.runtime.jetty.DatastoreSessionStore.createEntityForSession(DatastoreSessionStore.java:71)
at 
com.google.apphosting.runtime.jetty.DatastoreSessionStore.saveSession(DatastoreSessionStore.java:93)
at 
com.google.apphosting.runtime.jetty.SessionManager$AppEngineSession.save(SessionManager.java:164)
at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:41)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:249)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at 
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
at 
com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:477)
at 
com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:695)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453)
at 
com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.NotSerializableException: 
javax.servlet.jsp.jstl.fmt.LocalizationContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
at java.util.HashMap.writeObject(HashMap.java:1018)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:962)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
at 
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:370)


On Monday, May 28, 2012 1:21:57 PM UTC+8, Torleif wrote:

 I have a web page which has 3 different languages, Swedish, English and 
 Russian! WebTexts_en.properties, WebTexts_sv.properties and 
 WebTexts_ry.properties files together with LangSupport.jsp to chose the 
 Locale for the browser.
 My page works in English, neptune-app-id.appspot.com but only 
 this language, Swedish and Russian not. Do i need to create a 
 Internationalization.class of some kind to get this to work. Or how do i 
 use the locale to work with the resource bundels?

 Here are som very good links for this but i do not understand how to make 
 this, 

 http://www.avajava.com/tutorials/lessons/how-do-i-internationalize-my-web-application.html?page=1

 http://www.avajava.com/tutorials/lessons/how-do-i-use-locales-and-resource-bundles-to-internationalize-my-application.html;jsessionid=72C23BCD47546E9D05DF422DA3F0EC39

 

Re: [google-appengine] PROD - QUEUE - DJANGO_SETTINGS_MODULE is undefined

2012-05-28 Thread Matt McDonald
Define the DJANGO_SETTINGS_MODULE environment variable in your app.yaml
config.
https://developers.google.com/appengine/docs/python/config/appconfig#env_variables

This will ensure it's always available to any entry point that's handling a
request.

On Mon, May 28, 2012 at 6:23 AM, Amine Azariz
amine.aza...@greendizer.comwrote:

 I am using Django 1.2, Python 2.5. This error happens from time to time. -
 e.g. some tasks got this error, some - not.

 How to solve this one?


 File 
 /base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loader.py,
  line 168, in get_template_from_string
 return Template(source, origin, name)
   File 
 /base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/__init__.py,
  line 156, in __init__
 if settings.TEMPLATE_DEBUG and origin is None:
   File 
 /base/python_runtime/python_lib/versions/third_party/django-1.2/django/utils/functional.py,
  line 276, in __getattr__
 self._setup()
   File 
 /base/python_runtime/python_lib/versions/third_party/django-1.2/django/conf/__init__.py,
  line 38, in _setup
 raise ImportError(Settings cannot be imported, because environment 
 variable %s is undefined. % ENVIRONMENT_VARIABLE)
 ImportError: Settings cannot be imported, because environment variable 
 DJANGO_SETTINGS_MODULE is undefined.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/A1bWVSwArvMJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How to design data model

2012-05-28 Thread thebrianschott
Niklas (et al),

I am very pleased to find your link below of djangoforms because it seems 
so promising for my app.

http://code.google.com/appengine/articles/djangoforms.html

But when I enter the code for the app I get lots of warnings and finally 
the shopping list app stops with the following messages in the log.

INFO 2012-05-28 18:27:04,446 dev_appserver_multiprocess.py:647] Running 
application dev~shoppinglist on port 8083: http://localhost:8083

INFO 2012-05-28 18:27:04,447 dev_appserver_multiprocess.py:649] Admin 
console is available at: http://localhost:8083/_ah/admin

INFO 2012-05-28 18:27:29,059 dev_appserver.py:2904] GET / HTTP/1.1 
200 -

I am using Python2.7 and webapp2 for the first time and I fear there is 
some conflict with this django forms example. I seem to remember reading 
that webapp2 does not support cgi, for example. 

Btw, I am getting the following warnings also in the log. Can they be 
ignored?

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/search/search.py:232:
 
UserWarning: DocumentOperationResult._CODES is deprecated. Use 
OperationResult._CODES instead.

  'Use OperationResult.%s instead.' % (name, name))

WARNING  2012-05-28 18:27:04,346 rdbms_mysqldb.py:74] The rdbms API is not 
available because the MySQLdb library could not be loaded.

WARNING  2012-05-28 18:27:04,438 datastore_file_stub.py:518] Could not read 
datastore data from 
/var/folders/cm/fffkv5rd69j054q9yr1vg38hgn/T/dev_appserver.datastore

WARNING  2012-05-28 18:27:04,440 dev_appserver.py:3423] Could not 
initialize images API; you are likely missing the Python PIL module. 
ImportError: No module named _imaging

Thanks very much,

Brian in Atlanta





On Sunday, November 15, 2009 11:38:04 PM UTC-5, Niklas Rosencrantz wrote:



 On Nov 15, 5:48 pm, fhucho fhu...@gmail.com wrote: 
  Hi, 
  I am developing a web app, where users should be able to (in this 
  order): 
  1) create their item type (item type can be everything - car, 
  book, movie..., item type has some user defined parameters, 
  likeprice, rating) 
  2) add items of their type - e.g. they can create book type (with 
  title, author, rating parameters) and then add books 
  3) view, filter (at least by one parameter), delete, edit their 
  items 
  
  How should I design the data model? Is this even posible in App 
  Engine? 
  
  Thanks in advance 
 django has impressive builtin editor for our models with 
 djangoforms.ModelForm seen on 
 http://code.google.com/appengine/articles/djangoforms.html 
 Theoretically the create CRUD and/or factory pattern 
 http://en.wikipedia.org/wiki/Factory_method_pattern 
 I recommend and use for likewise. The categoryproperty.db 

 http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#Category
  
 seems obvious choice which needs documention how it differs from a 
 word. app I maintain has similar function, create item, add item, 
 edit, view, filter by longitude latitude and/or category 
 (www.koolbusiness.com/ai) sourced montao.googlecode.com 
 Sincerely 
 Nick RTZ 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/BkBHM22tdZIJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] “Temporary error retrieving documents. ” in full text search

2012-05-28 Thread Sinan Yüce
I added some documents to an index, and when I try to reach it using 
administrator console, I got this error:  Temporary error retrieving 
documents. I get this error well over a week now.

The issue is that I can add documents to the index, it works just fine. But 
when I try to make a simple query on this index I got something like this:

com.google.appengine.api.search.SearchException
at com.google.appengine.api.search.IndexImpl$3.wrap(IndexImpl.java:277)
at com.google.appengine.api.search.IndexImpl$3.wrap(IndexImpl.java:264)
at 
com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:57)
at 
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:98)
at 
com.google.appengine.api.search.FutureHelper.getInternal(FutureHelper.java:74)
at 
com.google.appengine.api.search.FutureHelper.quietGet(FutureHelper.java:33)
at com.google.appengine.api.search.IndexImpl.search(IndexImpl.java:390)


I also posted this issue StackOverflow 
(http://stackoverflow.com/questions/10675996/temporary-error-retrieving-documents-in-full-text-search)
 so if you have any idea about how to solve this issue, feel free to post here 
or there. Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/_XLw5AbjKjgJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Undocumented quota: Log Records Received

2012-05-28 Thread Alexis
I just got another undocumented quota...
This one is more critical for us as it's not used for debugging like the 
logs one was.

 It's called File Call Count and the limit is 8,640,000 daily. I hope it 
can be increased.

I opened a ticket about these undocumented quotas:
http://code.google.com/p/googleappengine/issues/detail?id=7594 

It'd be nice if we could build the list together until AppEngine team 
decides to provide it to us...
http://stackoverflow.com/questions/10791242/what-are-appengine-hidden-quotas
 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ohAAwdarFo0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] “Temporary error retrieving documents. ” in full text search

2012-05-28 Thread Amy Unruh
Sinan,

Do you see these errors every time, or just occasionally?  What is your app
id? (You can email it to me directly if you like).

 -Amy

On 29 May 2012 05:16, Sinan Yüce migl...@hotmail.com wrote:

 I added some documents to an index, and when I try to reach it using
 administrator console, I got this error:  Temporary error retrieving
 documents. I get this error well over a week now.

 The issue is that I can add documents to the index, it works just fine.
 But when I try to make a simple query on this index I got something like
 this:

 com.google.appengine.api.search.SearchException
   at com.google.appengine.api.search.IndexImpl$3.wrap(IndexImpl.java:277)
   at com.google.appengine.api.search.IndexImpl$3.wrap(IndexImpl.java:264)
   at 
 com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:57)
   at 
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:98)
   at 
 com.google.appengine.api.search.FutureHelper.getInternal(FutureHelper.java:74)
   at 
 com.google.appengine.api.search.FutureHelper.quietGet(FutureHelper.java:33)
   at com.google.appengine.api.search.IndexImpl.search(IndexImpl.java:390)


 I also posted this issue StackOverflow 
 (http://stackoverflow.com/questions/10675996/temporary-error-retrieving-documents-in-full-text-search)
  so if you have any idea about how to solve this issue, feel free to post 
 here or there. Thanks for your help.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/_XLw5AbjKjgJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Server Error (Text Search) on Admin Console

2012-05-28 Thread eshe muta

We're seeing this:
 

Server Error
 
A server error has occurred.
 
Return to Applications screen »
 
 
Whenever we click on Any index of Text Search on Admin Console.
 
100% reproducible.
 
Is this happening to other apps?
 
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/nhT0A0eCoT4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Best way to read/write text data

2012-05-28 Thread Alex V.
Hi, i'm trying to figure out best way to do this. I basically want to
create a pastebin alternative on app engine, whats the best way to
read/write such paste into on an App Engine stack? Should i use
blobstore or try to dump them into data store? Any feedback is well
appreciated, thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Mysterious problem with ajax get call only on GAE (maybe GAE/jquery bug ?)

2012-05-28 Thread Konrad Rotkiewicz
Hi,
when I am trying to make ajax get request to url /ad/ in my
application I allways get exception no matter what.
It is strange, because I can make normal and ajax request to all urls
in my application (with 404 but it doesn't matter) but I can't do ajax
GET request to /ad/.
Can any body help me with this ?

You can try in http://kiedynaurlop-konrad.appspot.com/ and make
request like: $.get('/ad/', function(data){console.log(data)})

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Server Error (Text Search) on Admin Console

2012-05-28 Thread Amy Unruh
Eshe,

What is your app id? (You can email it to me directly if you like).

On 28 May 2012 14:49, eshe muta eshem...@dishcrunch.com wrote:


 We're seeing this:

 
 Server Error

 A server error has occurred.

 Return to Applications screen »
  

 Whenever we click on Any index of Text Search on Admin Console.

 100% reproducible.

 Is this happening to other apps?





 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/nhT0A0eCoT4J.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: python/java conflict? version problems?

2012-05-28 Thread rcp
nevermind! I had a corrupt app.yaml


On Wednesday, May 16, 2012 6:11:43 PM UTC-7, rcp wrote:

 OSX 10.6.8; I'm running a jsonengine (app engine with the java framework) 
 instance fine and have run an app engine instance with the python framework 
 with no problem in the past.

 Now, I can't get the app engine (python) simulator to work on this OSX 
 box. The launcher starts ok, the test application indicates green, but 
 when I direct the browser to the localhost address, the gae Launcher log 
 spews Python 2.6 errors and the browser reports http 500.

 I have seen that gae wants python 2.5 or 2.7 and I have tried to install 
 each with no success, and I can't figure out how to switch from one 
 python framework to another. How is this supposed to work? Is there a 
 verify your python install process somewhere?

 Or, is it perhaps a collision between gae java and gae python? Thanks for 
 any suggestions.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/fgkaAkc6NJYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] “Temporary error retrieving documents. ” in full text search

2012-05-28 Thread Sinan Yüce
Hi Amy,

My application id is hedefuniversite-hrd. 

Thanks for your help...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/NBE5q0L21pcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How do I use locales and resource bundles to internationalize my application?

2012-05-28 Thread Torleif
This problem is solved now, thank you all for you great help and advise 
regarding this.

On Monday, May 28, 2012 1:21:57 PM UTC+8, Torleif wrote:

 I have a web page which has 3 different languages, Swedish, English and 
 Russian! WebTexts_en.properties, WebTexts_sv.properties and 
 WebTexts_ry.properties files together with LangSupport.jsp to chose the 
 Locale for the browser.
 My page works in English, neptune-app-id.appspot.com but only 
 this language, Swedish and Russian not. Do i need to create a 
 Internationalization.class of some kind to get this to work. Or how do i 
 use the locale to work with the resource bundels?

 Here are som very good links for this but i do not understand how to make 
 this, 

 http://www.avajava.com/tutorials/lessons/how-do-i-internationalize-my-web-application.html?page=1

 http://www.avajava.com/tutorials/lessons/how-do-i-use-locales-and-resource-bundles-to-internationalize-my-application.html;jsessionid=72C23BCD47546E9D05DF422DA3F0EC39

 Perhaps there are somebody who knows how to set this up who can help me 
 with this?

 I have included my file setup in Eclipse here for you as well to have a 
 look  at. My page are located at http://neptune-app-id.appspot.com/ at 
 Google App Engine.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/7EQ4942kRloJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Developing Multilingual Web Applications Using JavaServer Pages Technology

2012-05-28 Thread Torleif
This problem is solved now, thank you all for you great help and advise 
regarding this.

On Saturday, May 26, 2012 11:42:28 AM UTC+8, Torleif wrote:

 I have this error message in my console in google app engine;

 java.lang.RuntimeException: java.io.NotSerializableException: 
 javax.servlet.jsp.jstl.fmt.LocalizationContext


 On Saturday, May 26, 2012 10:13:46 AM UTC+8, Torleif wrote:

 My page works now in English, http://neptune-app-id.appspot.com  
 http://neptune-app-id.appspot.com/?locale=en_GB but only this language, 
 Swedish and Russian language do not work. If i try to change it stays in 
 English only.
 Somebody with an input what is missing here or if i still do something 
 wrong! Please help since i am so close to solve this issue now.

 -Jesper



 On Friday, May 25, 2012 1:33:37 PM UTC+8, Torleif wrote:

 I have put my properties files in WEB-INF/ but i think i am missing 
 something here since they do not load correctly. Could it be because it 
 does not load prepperly or that my java core properties is not there, 
 please help...

 -Jesper

 On Friday, May 25, 2012 1:08:46 PM UTC+8, Torleif wrote:

 Thank you for your help with this. I will keep trying but so far no 
 luck with this.

 Jesper


 On Friday, May 25, 2012 12:37:33 PM UTC+8, aramanuj wrote:

 That should have done it. I have Java files and properties files under 
 different folders and both are added here...not sure what else the 
 problem could be. You have keep trying other things you may find on 
 the net. 

 Arun 

 On May 24, 11:07 am, Torleif ad...@neptunediving.com wrote: 
  If i go to Properties then Java Build Path there are, 
  Source-Projects-Libraries-Order and Export. 
  I have tried to put it under source but it don't seem to work. So 
 where 
  should i put this?? 
  
  Jesper 
  
  
  
  
  
  
  
  On Wednesday, May 23, 2012 12:00:14 PM UTC+8, aramanuj wrote: 
  
   Using JSTL is fine, works like a charm in app. engine as well. You 
   could try right clicking on your project, go to Properties, within 
   that Build Path, and add the folder where the .properties files 
 are, 
   and see if that works. 
  
   Arun 
  
   On May 22, 10:40 am, Torleif ad...@neptunediving.com wrote: 
Are there some other ways of doing this with google app engine 
 instead 
   of 
using JSTL Tags? Or is the principles the same when you use 
 google app 
engine? 
  
-Jesper 
  
On Tuesday, May 22, 2012 1:37:53 PM UTC+8, Torleif wrote: 
  
 Hallo Arun! 
 Thank you very much for your message regarding this issue! 
  
 So how should this resource bundle look like. or the resource 
 key for 
   that 
 matter? My properties files are located in the WEB-INF/folder. 
 And my 
 LangSupport.jsp file are located in WEB-INF/include as it is 
 now. 
 So what i need to do here to get all this to work for me? Or 
 do i miss 
 something here that i need to fix, please let me know one 
 time. I am a 
 beginner in JSP so i really need some help with this. I use 
 Eclipse 
   3.7.2 
 together with the plug-in from google app engine for my web 
 page. 
  
 -Jesper 
  
 On Tuesday, May 22, 2012 11:57:05 AM UTC+8, aramanuj wrote: 
  
 It appears that the resource bundle is not being found, since 
 no 
 resource key is being shown with its value. You have to 
 ensure that 
 your .properties resource files are in the build path (in 
 case you 
   are 
 using Eclipse or other IDE, then you can configure these 
 under the 
 build path). 
  
 In any case, I documented my experience in building i18n 
 applications 
 in Java/JSP/JS, and there are some links from there you can 
 further 
 follow through, if necessary:
 http://www.techseva.org/blog/?p=174 
  
 Thanks, 
 Arun 
  
 On May 22, 8:32 am, Torleif ad...@neptunediving.com wrote: 
  After a few error messages and tweaking with the page it 
 looks like 
 this 
  now,http://neptune-app-id.appspot.com/Thereisa problem 
 with 
   either 
 my 
  text files, or how they are read i think. In my logs in 
 google app 
 engine i 
  get this messages from my last deploy, 
  
  No handlers matched this URL. 
  
  No handlers matched this URL. 
  
  / java.lang.RuntimeException: 
 java.io.NotSerializableException: 
  javax.servlet.jsp.jstl.fmt.LocalizationContext at 
  com.google.apphosting.runtime.jetty 
  
  This request caused a new process to be started for your 
   application, 
 and 
  thus caused your application code to be loaded for the 
 first time. 
   This 
 requ 
  
  I have uploaded the whole log file for you to read here 
 also one 
   time. 
  Anybody have some input on what i am doing wrong here? 
  
  On Monday, May 21, 2012 11:07:40 AM UTC+8, Torleif wrote: 
  
   I have a web page which has 3 different languages, 
 Swedish, 
   English 
 and 
   Russian! In my old java page i set this up with