[appengine-java] Re: Can't get log4j working

2011-10-16 Thread Martin Newstead
make sure your log4j.properties gets copied to your classes directory
when you build the application. You should need to use the system
property to tell the application or web server where the file is so
long as the location is on the classpath which WEB-INF/classes is.

On Oct 15, 8:12 pm, Andrew Ducker  wrote:
> I have the default log4j.properties in the root of my src folder
> (which is then copied to the war/WEB-INF/classes folder
> automatically).
>
> I have this in my appengine-web.xml:
>         
>                 
>                 
>         
>
> If I do this:
> Logger logger = Logger.getRootLogger();
> logger.warn("Testing!");
>
> then I get this:
> log4j:WARN No appenders could be found for logger (root).
> log4j:WARN Please initialize the log4j system properly.
>
> Any suggestions?
>
> Thanks,
>
> Andy

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



Re: [appengine-java] Re: Can't get log4j working

2011-10-16 Thread Andrew Ducker

On 16/10/2011 09:01, Martin Newstead wrote:

make sure your log4j.properties gets copied to your classes directory
when you build the application.


Yup, it's there.

Says:
# A default log4j configuration for log4j users.
#
# To use this configuration, deploy it into your application's 
WEB-INF/classes

# directory.  You are also encouraged to edit it as you like.

# Configure the console as our one appender
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n

Any ideas why I'd be getting an error?

Andy

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



Re: [appengine-java] Selecting 100 records from 789 taking 2.5 seconds

2011-10-16 Thread Bruno Fuster
Hi,

I'm not sure but have you enabled appstats? It can help you find out.



On Sun, Oct 16, 2011 at 4:00 AM, keyvez  wrote:

> What can I do to fix this? Please help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/QBzjCLIdv2IJ.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
Bruno Fuster

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



[appengine-java] Re: Namespace not being set from google apps

2011-10-16 Thread Satish
I switched to using App Engine's inbuilt federated identity option and now 
even the above work around is not working. I am logged in properly but the 
namespace value is still blank and the value returned by the following 
method is also blank. I am trying to troubleshoot.

com.google.apphosting.api.ApiProxy

.getCurrentEnvironment()

.getAttributes()

.get(
"com.google.appengine.api.users.UserService.user_organization");

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



Re: [appengine-java] Selecting 100 records from 789 taking 2.5 seconds

2011-10-16 Thread keyvez
Thanks. I used it, and it pointed my out in the right direction, the problem 
was creating entitymanager in jpa, i switched to low-level datastore calls 
an its taking 0ms instead of 800ms.

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



[appengine-java] Re: Which credentials should I put in for Google App Engine BulkLoader at JAVA development server?

2011-10-16 Thread Zacheusz Siedlecki
I figured it out. It was a temporary issue. Undeploying, restarting
the server and then deploying the application fixed the problem. Empty
password with any email forks fine. I think that it w wasn't connected
with SSL.

On Oct 1, 1:43 pm, Mark Nuttall-Smith 
wrote:
> Hi, in theory you should be able to enter any credentials, as long as the
> username is a valid email address. In practice I've never found that this
> works - I would always get an "Authentication Failed" error.
>
> The solution in my case was to run an http proxy such as Charles in the
> background.
>
> Not sure this is entirely the same situation as you however, as your problem
> seems to be something to do with the SSL configuration - can you switch this
> off as well perhaps?

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