jAPS problems and jpmail

7 views
Skip to first unread message

Joel

unread,
Jan 25, 2011, 10:17:53 AM1/25/11
to jAPS 2.0 Platform
I'm using Ubuntu 10.10, with eclipse 3.5.2 and psql (PostgreSQL) 8.4.6
and tomcat 6.0.18 (not the one from apt-get but downloaded from
apache) and have been following this guide:
http://dev.japsportal.org/trac/wiki/DocumentationTechnicalIstantiateNewPortal

So I have been having a lot of problems with jAPS from the beginning,
but I finally got it to run although the tests do not work at all
because it keeps looking for things in the wrong folders (I'll send
the sites that helped me out to this list later if you are
interested).

However since I installed the jpmail plugin (I installed it in the
deployed portal, not the original jAPS I downloaded) it has been
broken again. This seems similar to this guy's problem:
http://sourceforge.net/tracker/index.php?func=detail&aid=2937505&group_id=153060&atid=786271

If this is a configuration problem could you please tell me what is
wrong with my configuration. I also noticed that my ant build files
(neither the original nor the one in the deployed portal) do not see
their ant properties.

The output from trying to run the server from eclipse is below, thanks:

Jan 25, 2011 10:02:01 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
Setting property 'debug' to '1' did not find a matching property.
Jan 25, 2011 10:02:01 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
Setting property 'source' to 'org.eclipse.jst.jee.server:jAPS2_portal'
did not find a matching property.
Jan 25, 2011 10:02:01 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64:/usr/lib/xulrunner-1.9.2.13:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jan 25, 2011 10:02:01 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 25, 2011 10:02:02 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Jan 25, 2011 10:02:02 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1505 ms
Jan 25, 2011 10:02:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 25, 2011 10:02:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer Tiles
Conf files:
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/apsadmin/tiles.xml
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/plugins/jacms/apsadmin/jacms-tiles.xml
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/plugins/jpmail/apsadmin/jpmail-tiles.xml
com.agiletec.aps.servlet.StartupListener: INIT @webapp@ - powered by jAPS 2.0
Jan 25, 2011 10:02:04 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2011-01-25 10:02:10,254 ERROR
(org.springframework.web.context.ContextLoader:215) - Context
initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [com.agiletec.plugins.jpmail.aps.services.mail.MailManager]
for bean with name 'jpmailMailManager' defined in ServletContext
resource [/WEB-INF/plugins/jpmail/conf/managers/jpmailManagersConfig.xml];
nested exception is java.lang.ClassNotFoundException:
com.agiletec.plugins.jpmail.aps.services.mail.MailManager
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.agiletec.aps.servlet.StartupListener.contextInitialized(StartupListener.java:37)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
com.agiletec.plugins.jpmail.aps.services.mail.MailManager
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
... 25 more
Jan 25, 2011 10:02:10 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener
instance of class com.agiletec.aps.servlet.StartupListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [com.agiletec.plugins.jpmail.aps.services.mail.MailManager]
for bean with name 'jpmailMailManager' defined in ServletContext
resource [/WEB-INF/plugins/jpmail/conf/managers/jpmailManagersConfig.xml];
nested exception is java.lang.ClassNotFoundException:
com.agiletec.plugins.jpmail.aps.services.mail.MailManager
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.agiletec.aps.servlet.StartupListener.contextInitialized(StartupListener.java:37)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
com.agiletec.plugins.jpmail.aps.services.mail.MailManager
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
... 25 more
Jan 25, 2011 10:02:11 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 25, 2011 10:02:11 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jAPS2_portal] startup failed due to previous errors
Jan 25, 2011 10:02:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jan 25, 2011 10:02:11 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 25, 2011 10:02:11 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Jan 25, 2011 10:02:11 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 25, 2011 10:02:11 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/52 config=null
Jan 25, 2011 10:02:11 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8753 ms

William Ghelfi

unread,
Jan 25, 2011, 10:33:27 AM1/25/11
to japs-p...@googlegroups.com
On Tue, Jan 25, 2011 at 4:17 PM, Joel <felixth...@gmail.com> wrote:
> I also noticed that my ant build files
> (neither the original nor the one in the deployed portal) do not see
> their ant properties.

This should not be... maybe something's very wrong with your
environment... too bad I can't think of a cause!

>
> The output from trying to run the server from eclipse is below, thanks:
>

> nested exception is java.lang.ClassNotFoundException:

do you have the option "Project ---> Build Automatically" active in Eclipse?
If not, did you compile the sources using the proper ant task? ("compile")

--
William Ghelfi
R&D Director - Tzente s.r.l.
E-mail: w.gh...@tzente.it
Mobile: +39 393 9676926
http://www.tzente.it/
http://www.japsportal.org/

Tzente Srl
Viale Elmas 142 - 09122 - Cagliari (Italia)
Phone: +39 070 240053 - Fax: +39 070 240053
Cod. Fisc/P. Iva : IT03264290929 - REA: CA 258069
Cap. Soc. : Sottoscritto € 10.000,00 – Versato € 2.500,00.

Le informazioni contenute in questo messaggio, come anche eventuali
file allegati, sono riservati e confidenziali. Il loro utilizzo e'
consentito esclusivamente al destinatario del messaggio, per le
finalità indicate nel messaggio stesso. Qualora non non fosse il
destinatario a cui il presente messaggio è destinato, La invitiamo ad
eliminarlo dal Suo sistema ed a distruggere le varie copie o stampe,
dandocene gentilmente comunicazione. Ogni utilizzo improprio e'
contrario ai principi del D.lgs 196/03 e alla legislazione europea
(Direttiva 2002/58/CE).

The information contained in this message as well as the attached
file(s) is confidential / privileged and is only intended for the
person to whom it is addressed. If the reader of this message is not
the intended recipient or the employee or agent responsible for
delivering the message to the intended recipient, or you have received
this communication in error, please be aware that any dissemination,
distribution or duplication is strictly prohibited, and can be
illegal. Please notify us immediately and delete all copies from your
mailbox and other archives.

Joel

unread,
Jan 25, 2011, 10:40:20 AM1/25/11
to japs-p...@googlegroups.com
>> The output from trying to run the server from eclipse is below, thanks:
>>
>
>> nested exception is java.lang.ClassNotFoundException:
>
> do you have the option "Project ---> Build Automatically" active in Eclipse?
> If not, did you compile the sources using the proper ant task? ("compile")


Build automatically is checked, right now when I compile I get this

Buildfile: /home/joel/workspace/jAPS2_portal/buildTasks.xml
clean:
compile:

BUILD FAILED
/home/joel/workspace/jAPS2_portal/buildTasks.xml:51:
/home/joel/workspace/jAPS2_portal/${src.path} does not exist.

Total time: 306 milliseconds

(I guess I just need to go through hard code all the paths in the
antTasks file)

Joel

unread,
Jan 25, 2011, 10:41:34 AM1/25/11
to japs-p...@googlegroups.com


We are talking about the buildTasks.xml in the deployed portal project correct?

Andrea Dessì

unread,
Jan 25, 2011, 10:44:00 AM1/25/11
to japs-p...@googlegroups.com
Hi Joel,

if you are using the "buildTasks.xml" file (in the root of eclipse project) with ANT
it cannot work :)

Please use the build.xml with ANT, everything should work.

--
Andrea Dessì

Skype: nkjoep
Blog: http://www.stealthefish.com/
Twitter: http://www.twitter.com/NKjoep





--
_________________________________________________________________________
jAPS-Platform Group
japs-p...@googlegroups.com
http://groups.google.com/group/japs-platform
_________________________________________________________________________
Follow us on Identi.ca: http://identi.ca/japsplatform
Follow us on Twitter http://twitter.com/jAPSPlatform/
Follow us on Linkedin http://www.linkedin.com/groups?gid=2570784&trk=hb_side_g
Follow us on Slideshare http://www.slideshare.net/japsplatform
Follow us on IdeaScale http://japsplatform.ideascale.com/

Joel

unread,
Jan 25, 2011, 12:21:10 PM1/25/11
to japs-p...@googlegroups.com
> if you are using the "buildTasks.xml" file (in the root of eclipse project)
> with ANT
> it cannot work :)
> Please use the build.xml with ANT, everything should work.

The build works:
Buildfile: /home/joel/workspace/jAPS2_portal/build.xml
clean:
compile:
[copy] Copying 113 files to /home/joel/workspace/jAPS2_portal/build/classes
[copy] Copied 231 empty directories to 138 empty directories
under /home/joel/workspace/jAPS2_portal/build/classes
[javac] /home/joel/workspace/jAPS2_portal/buildTasks.xml:56:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 681 source files to
/home/joel/workspace/jAPS2_portal/build/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL
Total time: 6 seconds


But the project still fails to run:
Jan 25, 2011 12:20:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin


WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
Setting property 'debug' to '1' did not find a matching property.

Jan 25, 2011 12:20:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin


WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}
Setting property 'source' to 'org.eclipse.jst.jee.server:jAPS2_portal'
did not find a matching property.

Jan 25, 2011 12:20:06 PM org.apache.catalina.core.AprLifecycleListener init


INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64:/usr/lib/xulrunner-1.9.2.13:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Jan 25, 2011 12:20:06 PM org.apache.coyote.http11.Http11Protocol init


INFO: Initializing Coyote HTTP/1.1 on http-8080

Jan 25, 2011 12:20:06 PM org.apache.coyote.http11.Http11Protocol init


INFO: Initializing Coyote HTTP/1.1 on http-8443

Jan 25, 2011 12:20:06 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 929 ms
Jan 25, 2011 12:20:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 25, 2011 12:20:06 PM org.apache.catalina.core.StandardEngine start


INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer Tiles
Conf files:
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/apsadmin/tiles.xml
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/plugins/jacms/apsadmin/jacms-tiles.xml
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/plugins/jpmail/apsadmin/jpmail-tiles.xml
com.agiletec.aps.servlet.StartupListener: INIT @webapp@ - powered by jAPS 2.0

Jan 25, 2011 12:20:07 PM org.apache.catalina.core.ApplicationContext log


INFO: Initializing Spring root WebApplicationContext

2011-01-25 12:20:09,820 ERROR

Jan 25, 2011 12:20:09 PM org.apache.catalina.core.StandardContext listenerStart

Jan 25, 2011 12:20:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 25, 2011 12:20:10 PM org.apache.catalina.core.StandardContext start


SEVERE: Context [/jAPS2_portal] startup failed due to previous errors

Jan 25, 2011 12:20:10 PM org.apache.catalina.core.ApplicationContext log


INFO: Closing Spring root WebApplicationContext

Jan 25, 2011 12:20:10 PM org.apache.coyote.http11.Http11Protocol start


INFO: Starting Coyote HTTP/1.1 on http-8080

Jan 25, 2011 12:20:10 PM org.apache.coyote.http11.Http11Protocol start


INFO: Starting Coyote HTTP/1.1 on http-8443

Jan 25, 2011 12:20:10 PM org.apache.jk.common.ChannelSocket init


INFO: JK: ajp13 listening on /0.0.0.0:8009

Jan 25, 2011 12:20:10 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/29 config=null
Jan 25, 2011 12:20:10 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3773 ms

Joel

unread,
Jan 25, 2011, 12:49:41 PM1/25/11
to japs-p...@googlegroups.com
Does anyone know why it might be looking in the root directory for
this stuff and where the property is that is wrong?

Joel

unread,
Jan 25, 2011, 12:50:16 PM1/25/11
to japs-p...@googlegroups.com
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer Tiles
Conf files:
com.agiletec.apsadmin.system.tiles.impl.JapsBasicTilesContainer
/WEB-INF/apsadmin/tiles.xml

William Ghelfi

unread,
Jan 25, 2011, 1:04:50 PM1/25/11
to japs-p...@googlegroups.com
On Tue, Jan 25, 2011 at 6:21 PM, Joel <felixth...@gmail.com> wrote:

> nested exception is java.lang.ClassNotFoundException:
> com.agiletec.plugins.jpmail.aps.services.mail.MailManager

the error seems to say: hey, where's this class? You just didn't
compiled it, did you?
Maybe there's something wrong with the installation of the plugin, and
then at some point in the process you are unable to compile its
classes.
So, they aren't available as compiled classes at the start of the system....

Joel

unread,
Jan 25, 2011, 1:13:09 PM1/25/11
to japs-p...@googlegroups.com
>> nested exception is java.lang.ClassNotFoundException:
>> com.agiletec.plugins.jpmail.aps.services.mail.MailManager
>
> the error seems to say: hey, where's this class? You just didn't
> compiled it, did you?
> Maybe there's something wrong with the installation of the plugin, and
> then at some point in the process you are unable to compile its
> classes.
> So, they aren't available as compiled classes at the start of the system....

the full error is:


org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [com.agiletec.plugins.jpmail.aps.services.mail.MailManager]
for bean with name 'jpmailMailManager' defined in ServletContext
resource [/WEB-INF/plugins/jpmail/conf/managers/jpmailManagersConfig.xml];
nested exception is java.lang.ClassNotFoundException:

I don't think what you say is the issue, look:

[/WEB-INF/plugins/jpmail/conf/managers/jpmailManagersConfig.xml];

Maybe I am missing something but why on earth would it be looking in
my root directory? A directory that the PROJECT isn't even in. It is
obvious to me there is a property/path that spring is misinterpreting
or is set wrong. I did not set such a property in the plugin
installation and I have had this same exact problem with the junit
tests for the platform which have nothing to do with this plugin (the
junit tests still don't work because of this)

Joel

unread,
Jan 25, 2011, 1:19:07 PM1/25/11
to japs-p...@googlegroups.com
Since the path starts with a '/' it is looking in the root directory
of my machine correct?

Andrea Dessì

unread,
Jan 25, 2011, 3:09:06 PM1/25/11
to japs-p...@googlegroups.com
Every path in the console is relative to tomcat.

I have to ask you, if you are using eclipse with the j2ee packages installed.
(you can see the packages list of the standard eclipse j2ee here http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/galileosr2)

And have a look at these video: http://www.youtube.com/thefagianissimo
maybe they are useful :)

and... nothing more in your console/log?

--
Andrea


Joel

unread,
Jan 25, 2011, 9:12:13 PM1/25/11
to japs-p...@googlegroups.com
On Tue, Jan 25, 2011 at 3:09 PM, Andrea Dessì <nkj...@gmail.com> wrote:
> Every path in the console is relative to tomcat.
I think "/WEB-INF" is an absolute path a relative path. Please explain
what you mean by relative path.


> I have to ask you, if you are using eclipse with the j2ee packages
> installed.

No and when I installed them it permanently broke my workspace in
about 10 different ways.
"java.io.IOException: invalid header" caused by j2ee is somewhere in
it, but I can't even copy the error because there is an array out of
bound exception whenever I try to display it.
I believe it is slightly similar to this error:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11054.html


> and... nothing more in your console/log?

I posted the entire thing. But it looks like I have to go through the
entire jAPS installation process again in the java EE eclipse I
downloaded so I will let you know.

Joel

unread,
Jan 25, 2011, 9:13:46 PM1/25/11
to japs-p...@googlegroups.com

should be:

"I think "/WEB-INF" is an absolute path, not a relative path."

William Ghelfi

unread,
Jan 26, 2011, 4:30:21 AM1/26/11
to japs-p...@googlegroups.com
On Wed, Jan 26, 2011 at 3:13 AM, Joel <felixth...@gmail.com> wrote:
>
> "I think "/WEB-INF" is an absolute path, not a relative path."
>

Hey Joel,
that message you posted is a component of jAPS saying that starting up
it can't find that class (thus, ClassNotFound exception) declared in
/WEB-INF/.../.../.../...xml
So, because is a component of jAPS complaining, the path is relative
to the world of jAPS in that moment.
You can consider it as an URL, instead of a path.
Thus, the path is relative to the root of the world in that moment.
And the world in that moment is the webapp running into tomcat, not
your system root :)

Coming back to your problem, I think trying to use Eclipse Galileo for
JAVA EE Developers [1] is the best chance you can ever get to get rid
of the problem.
We'll try to keep supporting you as you proceed further!

Please, be also aware of that developing in a Java environment upon a
64bit operative system has proven to be occasionally a... well... a
pain in the ass :)
You may also try to get a 32bit operative system, or a 32bit JDK
running in a 64bit operative system.

[1] http://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/galileosr2

Bau,
Wiz

Joel

unread,
Jan 26, 2011, 12:03:40 PM1/26/11
to japs-p...@googlegroups.com
On Wed, Jan 26, 2011 at 4:30 AM, William Ghelfi <w.gh...@tzente.it> wrote:
> On Wed, Jan 26, 2011 at 3:13 AM, Joel <felixth...@gmail.com> wrote:
>>
>> "I think "/WEB-INF" is an absolute path, not a relative path."
>>
>
> Hey Joel,
> that message you posted is a component of jAPS saying that starting up
> it can't find that class (thus, ClassNotFound exception) declared in
> /WEB-INF/.../.../.../...xml
> So, because is a component of jAPS complaining, the path is relative
> to the world of jAPS in that moment.
> You can consider it as an URL, instead of a path.
> Thus, the path is relative to the root of the world in that moment.
> And the world in that moment is the webapp running into tomcat, not
> your system root  :)
>
Well now since I know that I can see there is no jpmail folder under
/opt/apache-tomcat-6.0.18/webapps/jAPS2_portal/WEB-INF/plugins
I wish I had known that before I broke my workspace :)

I know exactly what my problem was. When editing the context.xml in
this part of the tutorial:
http://dev.japsportal.org/trac/wiki/DocumentationTechnicalIstantiateNewPortal#file_context_xml_example

I either didn't see "url" or assumed that url meant the same thing as
"path". So I put in absolute paths for a bunch of things.

I went through the tutorial again with java EE and had almost no
problems. It is now running smoothly on my 64 bit OS :)

The only problem I did have was this:
"
BUILD FAILED
/home/joel/workspace2/jAPS2-tech/admin/build_newPortal.xml:32:
Warning: Could not find file
/home/joel/workspace2/temp/jAPS2_portal/db/export/jAPS2-techPort_data.sql
to copy.

Total time: 1 second
"

To fix this I simply used the default name for the original project "jAPS2".

Thanks for your help. It works. Although I haven't tried to install
any plugins or write my plugin yet :)

Andrea Dessì

unread,
Jan 26, 2011, 12:08:29 PM1/26/11
to japs-p...@googlegroups.com
yay!

happy to know the tutorial was helpul :)

--
Andrea
Reply all
Reply to author
Forward
0 new messages