[
https://issues.apache.org/jira/browse/WICKET-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769883#action_12769883
]
Igor Vaynberg commented on WICKET-2080:
---------------------------------------
igor.vaynb...@eve ~/dev/src/wib/org.djo.tp
$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - org.djo:org.djo.tp:pom:0.0.1-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Missing:
----------
1) org.springframework.osgi:jetty.start.osgi:jar:1.0.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.osgi
-DartifactId=jetty.start.osgi -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework.osgi
-DartifactId=jetty.start.osgi -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.djo:org.djo.tp:pom:0.0.1-SNAPSHOT
2) org.springframework.osgi:jetty.start.osgi:jar:1.0.0
2) org.springframework.osgi:jetty.web.extender.fragment.osgi:jar:1.0.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.osgi
-DartifactId=jetty.web.extender.fragment.osgi -Dversion=1.0.1 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework.osgi
-DartifactId=jetty.web.extender.fragment.osgi -Dversion=1.0.1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.djo:org.djo.tp:pom:0.0.1-SNAPSHOT
2) org.springframework.osgi:jetty.web.extender.fragment.osgi:jar:1.0.1
----------
2 required artifacts are missing.
for artifact:
org.djo:org.djo.tp:pom:0.0.1-SNAPSHOT
from the specified remote repositories:
com.springsource.repository.bundles.release
(http://repository.springsource.com/maven/bundles/release),
com.springsource.repository.bundles.external
(http://repository.springsource.com/maven/bundles/external),
central (http://repo1.maven.org/maven2)
> InjectorHolder is broken when wicket-ioc.jar is shared between multiple web
> applications
> ----------------------------------------------------------------------------------------
>
> Key: WICKET-2080
> URL: https://issues.apache.org/jira/browse/WICKET-2080
> Project: Wicket
> Issue Type: Bug
> Components: wicket-spring
> Affects Versions: 1.4-M3
> Environment: Java6 tomcat 6.0.18
> Reporter: Matej Zupanc
> Assignee: Igor Vaynberg
> Fix For: 1.5-M1
>
> Attachments: wib.zip
>
>
> I notice that in case, when I use two web-application on tomcat, sharing
> spring and wicket libraries, applications start to behave unpredictably.
> After short exploring and debug running, I discovered that wicket "ProxyBean"
> return wrong bean from Spring. When I try with ordinary call to Spring
> context
> (WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplication.get().getServletContext()).getBean("testBeanName");)
> I get correct bean.
> My testCase has been run on tomcat 6.0.18. Shared library are placed under
> shared lib location in tomcat. All spring and wicket libraries are placed in
> shared lib location. For test I create webA and webB war archives. In both
> applications I use bean named "appIdProvider" but each application has
> different implementing class for this bean. When I start tomcat I see in
> logs, that both spring applicationContext are initialised. First I test webA
> application and result is what I expect. Next I make call to webB and result
> isn't what I expect, but result of call to bean injected with @SpringBean is
> same to call from webA application.
> Same story happens if I make first call to webB and after that to webA. In
> this case call to webB are correct and execution of webA is wrong.
> After printing the returned beans I see that annotated beans (@SpringBean)
> are LazyInitProxyFactory (in test values are
> "org.apache.wicket.proxy.lazyinitproxyfactory$jdkhand...@107eafc") and are
> same instances in both applications. If I make direct lookup in SpringContext
> I get back concrete bean and instances of this bean are different for each
> webapplication.
> All this doesn't happens if I deploy both web-application together with all
> spring and wicket libraries embedded into web application archive
> (WEB-INF/lib). But deployment of spring and wicket libraries for each
> application is expensive if I have many web application (using wicket and
> spring) on same server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.