Dears, I am facing a problem with my new created datasource, I added these fragments to my geronimo-web.xml
but when I do any changes to my model, then I try to publish my project (right-click on project -> Publish Application...)
I found these fragments removed from my file.
so the only way to publish my project is by exporting a war file to my project, then deploying it through the WASCE admin console, which is a very long process to be done when I do any small change to my models and builders.
This topic has been locked.
2 replies Latest Post - 2011-03-27T19:20:30Z by SystemAdmin
Pinned topic datasource publishing problem
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-03-27T19:20:30Z at 2011-03-27T19:20:30Z by SystemAdmin
kevintap 100000QN0341 PostsACCEPTED ANSWER
Re: datasource publishing problem2011-03-27T16:52:36Z in response to SystemAdminWhen Portlet Factory generates a .war file from your project, it will regenerate geronimo-web.xml from the template version of this file. The template is located in WebContent/WEB-INF/bin/deployment of your project. In older versions of Portlet Factory, it was required to modify the template. However, in newer versions of Portlet Factory, we have added an extension fragment framework.
Assuming you're using a newer version of Portlet Factory with the extension fragment support, take a look at the Readme.txt file under WebContent/WEB-INF/bin/deployment/extensions/geronimo.web. The Readme.txt file there should provide instructions on how to add an extension fragment to your project. Essentially, you just place the additional markup required for your geronimo-web.xml file in an .xml file under WebContent/WEB-INF/bin/deployment/extensions/geronimo.web. Portlet Factory's .war export & publish process will take care of merging your extensions into the generated geronimo-web.xml file.