Wednesday, October 9, 2013

Re: Problems using JavaMail within hosted mode in Eclipse

Hello i faced with problem:

javax.mail.NoSuchProviderException: smtp

         at javax.mail.Session.getService(Session.java:798)

                              

under running application in hosted mode. Can you give advise to me on fix this issue?

but I cant understand how to add special jar to bootstrap with gwt-maven-plugin.

I am trying this:

  <plugin>

                <groupId>org.codehaus.mojo</groupId>

                <artifactId>gwt-maven-plugin</artifactId>

                <version>2.4.0</version>

                <executions>

                    <execution>

                        <goals>

                            <goal>compile</goal>

                        </goals>

                    </execution>

                </executions>

                <configuration>

                    <module>com.db.dbtracer.paymentstp.webapp.PaymentsManagementApplication</module>

                    <runTarget>PaymentsManagementApplication.html</runTarget>

                    <draftCompile>true</draftCompile>

                    <optimizationLevel>1</optimizationLevel>

                    <extraParam>true</extraParam>

                    <extra>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</extra>

                    <extraJvmArgs>-cp ${project.build.directory}/${project.build.finalName}/WEB-INF/lib/mail-1.4.4.jar -Dapp.config=${project.build.outputDirectory}/etc/localhost.properties -Dnc.log4j.configuration=file:/${project.build.outputDirectory}/etc/log4j.xml -Dlog4j.debug</extraJvmArgs>

                </configuration>

            </plugin>

 

But it's not make sense to me.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment