[
http://mifosforge.jira.com/browse/MIFOS-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64542#action_64542
]
Udai Gupta commented on MIFOS-4602:
-----------------------------------
Some notes from today.
The problem : resource loading from a Jar
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/resources.html
read section 4.3.2 (Mifos uses classpathresource loader)
Why it's not reflected when using mifos-server module?
You can see the problem if you close all the other modules (eclipse
projects) and then try to run the server, because now it points to the
jars in m2 repo and not the exploded code. I think that Jetty is able
to detect the resources from other jars (may be explodes jar
internally), while tomcat is not able to access resources inside a jar
file. (read 4.3.2)
To see what errors Tomcat is facing, close all modules (eclipse
projects) except mifos-webapp and run LoanBOIntegrationTest.
You will see errors about resource locating.
Solution,
Use
Thread.currentThread().getContextClassLoader().getResourceAsStream(filename),
this method can get an input stream even from a jar.
We should use InputStream as much as possible.
We can create temp File from InputStream and return that.
Next Problems?
- BIRT OSGI startup, Michael knows how to solve that :)
- tlds should not be in jar, tag libs are JSP specs.
> built war is not deployable in either Tomcat 7.0.6 or Jetty 7.2.2
> -----------------------------------------------------------------
>
> Key: MIFOS-4602
> URL: http://mifosforge.jira.com/browse/MIFOS-4602
> Project: mifos
> Issue Type: Dev Task
> Environment: 64-bit Ubuntu 10.04.1 LTS. Oracle Java 1.6.0_20
> (32-bit). Tomcat 7.0.6 stable.
> Reporter: Adam Monsen
> Assignee: Michael Vorburger
> Priority: Critical
>
> Error seen:
> {noformat}
> SEVERE: The display name was defined in multiple fragments with different
> values
> including fragment with name [Mifos Application Core] located at
> [jar:jndi:/localhost/mifos/WEB-INF/lib/mifos-webapp-1.8-SNAPSHOT.jar!/]
> {noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues