Re: [appengine-java] Re: is it possible to use Java 7 on GAE ?
How 'bout now when Java 7 is out there in the wild? Any plans yet? -- 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/-/ucpVVTwHLjMJ. 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] Sending multi-part email from Googl e App Engine using Spring’s JavaMailSender
I've got a problem with sending Multi-Part email using Spring's JavaMailSender. It works fine without the multi-part (modified from the example in Spring documentation): final MimeMessagePreparator preparator = new MimeMessagePreparator() { public void prepare(final MimeMessage mimeMessage) throws Exception { final MimeMessageHelper message = new MimeMessageHelper( mimeMessage); message.setTo(toAddress); message.setFrom(fromAddress); message.setSubject(subject); final String htmlText = FreeMarkerTemplateUtils .processTemplateIntoString(configuration .getTemplate(htmlTemplate), model); message.setText(htmlText, true); } }; mailSender.send(preparator); But once I change it to: final MimeMessagePreparator preparator = new MimeMessagePreparator() { public void prepare(final MimeMessage mimeMessage) throws Exception { final MimeMessageHelper message = new MimeMessageHelper( mimeMessage, true); ... message.setText(plainText, htmlText); } }; mailSender.send(preparator); I get: Failed message 1: javax.mail.MessagingException: Converting attachment data failed at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java:231) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:402) ... This is especially difficult since the GMTransport is proprietary Google class and no source is available, which makes it pretty difficult to debug. Anyone have any ideas what to try next? My bean config, for helping you to help me: The question is also asked at Stack Overflow: http://stackoverflow.com/questions/2686889/sending-multi-part-email-from-google-app-engine-using-springs-javamailsender-fai Best Regards, Hannu -- 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-j...@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] Eclipse plugin + Maven integration problem
Check out my blog post: http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ It's for the "old" plugin version but still working with the new ones. I haven't yet had time to figure out how to utilize the WAR directory configuration. I hope you find this useful. -Hannu On 30.3.2010 16:31, Juan Edi wrote: > Hi! I am currently running a GAE application using Maven and the maven- > gae-plugin. I wanted to start using the Eclipse Plugin, since I read > that launching de GAE Development Server using the plugin lugin allows > changes to JSPs and static files to be reflected on the app without > the need to restart. > > I still cannot make the plugin work with my standard maven directory > structure. Setting the WAR directory to "src/main/webapp" and trying > to run/debug the application thows the following output: > > Exception in thread "main" java.lang.AbstractMethodError: > org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java: > 373) > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java: > 127) > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java: > 94) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java: > 662) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java: > 708) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java: > 313) > at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:259) > at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:338) > at java.util.prefs.FileSystemPreferences > $8.run(FileSystemPreferences.java:607) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java: > 600) > at > java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java: > 784) > at java.util.prefs.FileSystemPreferences.access > $2300(FileSystemPreferences.java:33) > at java.util.prefs.FileSystemPreferences > $13.run(FileSystemPreferences.java:754) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java: > 752) > at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java: > 1317) > at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java: > 1308) > at > java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java: > 731) > at > java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java: > 807) > at > com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java: > 136) > at com.google.appengine.tools.development.DevAppServerMain > $StartAction.apply(DevAppServerMain.java:150) > at com.google.appengine.tools.util.Parser > $ParseResult.applyArgs(Parser.java:48) > at > com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java: > 113) > at > com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java: > 89) > Exception in thread "Thread-2" java.lang.AbstractMethodError: > org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java: > 373) > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java: > 127) > at > com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java: > 94) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java: > 662) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java: > 708) > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java: > 313) > at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:259) > at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:338) > at java.util.prefs.FileSystemPreferences > $8.run(FileSystemPreferences.java:607) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java: > 600) > at > java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java: > 784) > at java.util.prefs.FileSystemPreferences.access > $2300(FileSystemPreferences.java:33) > at java.util.prefs.FileSystemPreferences > $13.run(FileSystemPreferences.java:754) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java: > 752) > at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java: > 1317) >
Re: [appengine-java] Re: GPE 1.3 Tutorial?
Jake, I think my blog post might help you a bit: http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ I haven't had time to fiddle with the 1.3 version of the Eclipse Plugin but there are some promising changes that might at least simplify the process. -Hannu On 23.3.2010 15:22, Jake wrote: > Hey, > > I see now - the front page lists Maven support (and other things), but > under GWT. I was under the impression that they were closely linked > enough that it would work for me as well. I also don't really > understand what about GWT would suddenly allow me to use Maven to > resolve dependencies? But yes, I'm just using App Engine so I'll > return to my hacked Maven/Ant method that was working before. Some > day, I would love to use the Google Plugin for Eclipse! > > Jake > > On Mar 22, 11:52 am, Jason Parekh wrote: >> Hey Jake, >> >> GPE 1.3 introduces support for Maven when working with GWT projects, but it >> doesn't look like you're using GWT (only App Engine, correct?). If this is >> true, then those FAQ entries aren't relevant as they're only for GWT or GWT >> + App Engine projects. >> >> Unfortunately, we don't have any instructions for your configuration, but if >> you do gain any traction, please let us know and we can update our FAQ. >> >> Thanks, >> jason >> >> On Fri, Mar 19, 2010 at 2:05 PM, Jake wrote: >>> Hey all, >> >>> I've swapped to Google Plugin for Eclipse 1.3 in the hopes that I can >>> use it with Maven and resolving workspace dependencies. I have >>> created a copy of my previously working project, upgraded to the >>> latest GAE SDK and m2e plugin and have tried to follow the GPE FAQ >>> instructions with Eclipse 3.5 EE. They don't always match up and >>> depending on what I'm doing, I get the following issues: >> >>> 1. As instructed, I'm unchecking "Run built-in server" in the Web >>> Application run configuration. However, it shows the following error: >>> "App Engine projects need to run the built-in server." >> >>> 2. When running the Web Application Configuration, the console ONLY >>> displays: >>> Usage: [options] >>> ... >> >>> 3. I'm not entirely certain of how the process should go. Do I start >>> my Tomcat 1.6 instance first and THEN do Run As Google Web >>> Application? Who is responsible for initializing my servlet? I know >>> almost nothing Tomcat or running a server, so if this is the problem I >>> would appreciate some detail. >> >>> Thanks in advance for the help! >> >>> Jake >> >>> -- >>> 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-j...@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. > -- 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-j...@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: Google Plugin for Eclipse 1.3 plans
Allright, As I've stated before on the list, Maven + GAE Eclipse plugin integration is already possible! Exact instructions can be found in my blog post at http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ I also have made an archetype for such a project. I'm currently using pretty much the same configuration in one of my projects and it works quite well (only downside being that you're required to clean the project on every Eclipse startup). Just type: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1.1 \ -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/releases -Hannu On 8.2.2010 20:35, Jake wrote: > I'm hoping for a good way to resolve workspace dependencies in > Eclipse. The m2eclipse plugin does this well, but that doesn't play > nicely with the maven-war-plugin, so it doesn't work for GAE. Running > a Maven Install on each workspace dependency before deploying, > however, is still nicer than having to manually generate/copy jar > files. I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's > possible, but I'm hopeful! :) > > Jake > > On Feb 6, 12:40 pm, 杨浩 wrote: >> Where's the lastest plugin update sites for GAE Plugin? >> I will to test it! >> >> 2010/2/6 Philippe Marschall >> >>> Sounds like a good start. Ideally the maven eclipse plugin [1] could >>> be configured to automatically generate the configuration for the >>> Google Plugin and M2Eclipse [2] picking that up as well. Also an >>> archetype would help quick starting. I assume you're aware that you >>> get the most benefit out of that only when there are up to date Maven >>> artifacts wit good metadata in a publicly available repo, preferably >>> Maven central. >> >>> [1]http://maven.apache.org/eclipse-plugin.html >>> [2]http://m2eclipse.sonatype.org/ >> >>> Cheers >>> Philippe > -- 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-j...@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] maven + GAE + Spring
By GAE plugin are you referring to the Maven GAE plugin or the Google flugin for Eclipse? Anyhow, a while ago I blogged about Eclipse, GAE and Maven working nicely together at http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ But if your issue is more related to the multiproject structure, I'm afraid I can't help you much, since I'm not really familiar with that. Regards, Hannu On 5.2.2010 19:15, Omri Cohen wrote: > Hi, > I am building a maven+GAE+Spring project, i have a problem: > it seems that GAE plugin ignores eclipse multiple projects as defined in > the .classpath and .project > I have to run mvn install (create jars) and eclipse:eclipse (copy jars > to project-web/WEB-INF/war/) after every change in any resources outside > of project-web. > can anyone advice? > Thanks, > Omri > > -- > 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-j...@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. -- 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-j...@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] Maven managed GAE project still functional in Eclipse
For all you App Engine, Maven and Eclipse lovers around, here are my instructions for a Maven managed GAE project still fully functional in Eclipse. http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ If you're not into reading the whole post, here's the most important part: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0- alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1 \ -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/ repository/releases Any improvement suggestions highly appreciated. In order to make it not to rely on a patched snapshot of maven-eclipse-plugin, I ask your help in getting these issues (and the patches I've provided) fixed: http://jira.codehaus.org/browse/MECLIPSE-402 http://jira.codehaus.org/browse/MECLIPSE-422 Best Regards, Hannu -- 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-j...@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.