Hi all,
I am trying to do the same thing - embedded James into our Java Application
for sending emails only purpose. I am following this thread and check out
the spring-deployment and build-tool project, then try to build it with ant
(in Eclipse). I got the following errors. Could you please help? If you need
more information, please let me know. Appreciated!
Many thanks,
tim
Buildfile: E:\Job\spring-deployment\build.xml
compile:
[javac] Compiling 4 source files to
E:\Job\spring-deployment\build\classes
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\adaptor\FileSystemBridge.java:21:
package org.apache.james.services does not exist
[javac] import org.apache.james.services.FileSystem;
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\adaptor\FileSystemBridge.java:30:
cannot find symbol
[javac] symbol: class FileSystem
[javac] public class FileSystemBridge implements FileSystem,
ResourceLoaderAware {
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\JamesApplicationContext.java:32:
cannot find symbol
[javac] symbol: class AvalonApplicationContext
[javac] public class JamesApplicationContext extends
AvalonApplicationContext {
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\AvalonWebApplicationContext.java:44:
cannot find symbol
[javac] symbol : variable AvalonApplicationContext
[javac] location: class
org.apache.james.container.spring.beanfactory.AvalonWebApplicationContext
[javac]
AvalonApplicationContext.loadAvalonBasedBeanDefinitions(defaultListableBeanFactory,
springBeanResource, jamesAssemblyResource);
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\JamesApplicationContext.java:45:
cannot find symbol
[javac] symbol : variable SPRING_BEANS_CONF
[javac] location: class
org.apache.james.container.spring.beanfactory.JamesApplicationContext
[javac] return newJamesApplicationContext(SPRING_BEANS_CONF,
JAMES_ASSEMBLY_CONF);
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\JamesApplicationContext.java:56:
cannot find symbol
[javac] symbol : method refresh()
[javac] location: class
org.apache.james.container.spring.beanfactory.JamesApplicationContext
[javac] result.refresh();
[javac] ^
[javac]
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\JamesApplicationContext.java:87:
cannot find symbol
[javac] symbol : variable super
[javac] location: class
org.apache.james.container.spring.beanfactory.JamesApplicationContext
[javac] r = super.getResource(fileURL);
[javac] ^
[javac] Note:
E:\Job\spring-deployment\src\main\java\org\apache\james\container\spring\beanfactory\AvalonWebApplicationContext.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
BUILD FAILED
E:\Job\spring-deployment\build.xml:266: Compile failed; see the compiler
error output for details.
Total time: 12 seconds
--
View this message in context:
http://www.nabble.com/Embedding-James-in-a-Java-application-tp17638835p20403953.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]