> Can you comment out the
> <security-realm-name>geronimo-properties-realm</security-realm-name>
> element as suggested before, in your geronimo-web.*.xml not the standard
> web.xml ?
>
>
> Thanks,
> Mario
I did so...
If only the security-realm-name sections were commited out, following stack
trace occurs:
Using GERONIMO_BASE: C:\ApplicationServers\geronimo-1.1
Using GERONIMO_HOME: C:\ApplicationServers\geronimo-1.1
Using GERONIMO_TMPDIR: C:\ApplicationServers\geronimo-1.1\var\temp
Using JRE_HOME: C:\Programme\Java\jre1.5.0_06
Error: Unable to distribute connector.ear: xml problem for web
app ccserver.war
Invalid deployment descriptor: [error: cvc-complex-type.2.4a:
Expected elements
'[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/naming-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.1
[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1' instead of
'[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/security-1.1' here]
Descriptor: <xml-fragment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"
xmlns:jet="http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.1"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1">
<dep:environment>
<dep:moduleId>
<dep:groupId>com.myapps</dep:groupId>
<dep:artifactId>ccserver</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>war</dep:type>
</dep:moduleId>
</dep:environment>
<jet:context-root>/connector</jet:context-root>
<!--<security-realm-name>geronimo-properties-realm</security-realm-name>-->
<sec:security>
<sec:default-principal>
<sec:principal name="anonymous"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
</sec:default-principal>
<sec:role-mappings>
<sec:role role-name="AdminRole">
<sec:principal name="administrators"
designated-run-as="true"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/>
<sec:principal name="root"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
</sec:role>
</sec:role-mappings>
</sec:security>
<nam:ejb-ref>
<nam:ref-name>ejb/clientInterface</nam:ref-name>
<nam:pattern>
<nam:artifactId>ejb</nam:artifactId>
<nam:name>ClientInterfaceJAR/EJBClientInterfaceEJB</nam:name>
</nam:pattern>
</nam:ejb-ref>
</xml-fragment>
#########################################################################
Next I commited the security section out, too. Then these errors occured.
Using GERONIMO_BASE: C:\ApplicationServers\geronimo-1.1
Using GERONIMO_HOME: C:\ApplicationServers\geronimo-1.1
Using GERONIMO_TMPDIR: C:\ApplicationServers\geronimo-1.1\var\temp
Using JRE_HOME: C:\Programme\Java\jre1.5.0_06
Error: Unable to distribute connector.ear: web.xml for web app
ccserver.war includes security elements but Geronimo deployment plan
is not provided or does not contain <security-realm-name> element
necessary to configure security accordingly.
This means in my opinion, that the security-elements in web.xml should also
been commited out... Am I right?
Thanks a lot for good deals of trouble,
mika
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer