on 09-15-2004 9:34 PM
Hi,
I am trying to deploy an ear file using the deploymanager.bat file. I have followed the example xml file and have my ear file all packaged correctly. I have specified the user name and password in the xml file, so I shouldn't have to have psw-file. Any idea??
I get the following error message:
com.sap.engine.deploy.manager.DeployManagerException: Cannot parse Deploy Manager XML file java.io.IOException: Cannot parse Deploy Manager XML file com.sap.engine.lib.xml.parser.NestedSAXParserException: com.sap.engine.lib.xml.parser.ParserException: '' expected at (zero-based) position 18 in content model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xml, row:25, col:43) -> com.sap.engine.lib.xml.parser.NestedSAXParserException: com.sap.engine.lib.xml.parser.ParserException: '' expected at (zero-based) position 18 in conte
nt model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xml, row:25, col:43)(deploy_nwp.xml, row=25, col=43) -> com.sap.engine.lib.xm
l.parser.ParserException: '*' expected at (zero-based) position 18 in content model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xm
l, row:25, col:43) at com.sap.engine.deploy.manager.DeployManagerImpl.<init>(DeployManagerImpl.java:179) at com.sap.engine.deploy.manager.DeployManagerImpl.main(DeployManagerImpl.java:3067)
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:324) at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
NOT Deployed ! :
com.sap.engine.deploy.manager.DeployManagerException: Cannot parse Deploy Manager XML file java.io.IOException: Cannot parse Deploy Manager XML file com.sap.eng
ine.lib.xml.parser.NestedSAXParserException: com.sap.engine.lib.xml.parser.ParserException: '' expected at (zero-based) position 18 in content model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xml, row:25, col:43) -> com.sap.engine.lib.xml.parser.NestedSAXParserException: com.sap.engine.lib.xml.parser.ParserException: '' expected at (zero-based) position 18 in content model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xml, row:25, col:43)(deploy_nwp.xml, row=25, col=43) -> com.sap.engine.lib.xm
l.parser.ParserException: '*' expected at (zero-based) position 18 in content model '(#PCDATA|psw-file)' -> (#PCDATA|psw-file) << >> [EXCEPTION](deploy_nwp.xm
l, row:25, col:43)
Thanks.
Hasnain
Hi Hasnain,
The problem is in DTD.
The line
<!ELEMENT user-password (#PCDATA | psw-file)>
should be declared as
<!ELEMENT user-password (#PCDATA | psw-file)*>
It is an omission in documentation. It is fixed now and will be available in SP 10.
Best Regards,
Radoslav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I am getting the exception whenevr I deploy the application through Netweaver Developer Studio .
Please give the solution to the following problem
Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.
com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [sv1inap301] with user
Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Access Denied.]
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hasnain
Seems that there is something wrong with deploy manager xml file. Is it possible to take a look at it?
Best Regards,
Radoslav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Here is the xml file I am using. I have modified it from the one provided with the example:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE deploy-manager-config [
<!ELEMENT deploy-manager-config (version-id, project-dir?, deployable-object, element*, login-info, user-role-mapping?, server-components-xml?, library-info?, supports, deployment-properties?, repl-var-properties?, log-file?)>
<!ELEMENT version-id (#PCDATA)>
<!ELEMENT project-dir (#PCDATA)>
<!ELEMENT deployable-object (ear-file|j2ee-module)>
<!ATTLIST deployable-object action-type (deploy|update) #REQUIRED>
<!ELEMENT ear-file (ear-path, display-name?, altdd*)>
<!ELEMENT ear-path (#PCDATA)>
<!ELEMENT display-name (#PCDATA)>
<!ELEMENT j2ee-module (archive-path, altdd*)>
<!ELEMENT archive-path (#PCDATA)>
<!ATTLIST j2ee-module container (appclient|connector|EJB_Container|servlet_jsp) #REQUIRED>
<!ELEMENT element (entry-name, context-root?, altdd*)>
<!ELEMENT context-root (#PCDATA)>
<!ELEMENT altdd (pathname, entry-name)>
<!ATTLIST altdd use-alternative (yes|no) #REQUIRED>
<!ELEMENT pathname (#PCDATA)>
<!ELEMENT entry-name (#PCDATA)>
<!ELEMENT login-info (host, port, transport-protocol*, user-name, user-password)>
<!ELEMENT host (#PCDATA)>
<!ELEMENT port (#PCDATA)>
<!ELEMENT transport-protocol (#PCDATA)>
<!ELEMENT user-name (#PCDATA)>
<!ELEMENT user-password (#PCDATA|psw-file)>
<!ELEMENT psw-file (#PCDATA)>
<!ELEMENT user-role-mapping (role-name+)>
<!ELEMENT role-name (#PCDATA | mapping)*>
<!ELEMENT mapping (name, type)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT server-components-xml (#PCDATA)>
<!ELEMENT library-info (library, reference)>
<!ELEMENT library (lib-name, lib-jar+)>
<!ELEMENT lib-name (#PCDATA)>
<!ELEMENT lib-jar (#PCDATA)>
<!ATTLIST lib-jar server-map-name CDATA #REQUIRED>
<!ELEMENT reference (from-loader, to-loader+)>
<!ELEMENT from-loader (#PCDATA)>
<!ELEMENT to-loader (#PCDATA)>
<!ELEMENT supports (support+)>
<!ELEMENT support (#PCDATA)>
<!ELEMENT repl-var-properties (property*)>
<!ELEMENT deployment-properties (property*)>
<!ELEMENT property (#PCDATA)>
<!ELEMENT log-file (#PCDATA)>
]>
<deploy-manager-config>
<deployable-object action-type="deploy">
<ear-file>
<ear-path>
C:\dev\hpdsnwp\exports\bin\dmEar.ear
</ear-path>
</ear-file>
</deployable-object>
<element>
</element>
<login-info>
<host>
localhost
</host>
<port>
50004
</port>
<transport-protocol>
httptunneling
</transport-protocol>
<user-name>
Administrator
</user-name>
<user-password>
sap
</user-password>
</login-info>
<user-role-mapping>
<role-name>
unknown role
</role-name>
</user-role-mapping>
<supports>
<support>
p4
</support>
</supports>
<deployment-properties>
<property>
container_type = B
</property>
</deployment-properties>
<log-file>
C:\dev\hpdsnwp\logs\deploying.txt
</log-file>
</deploy-manager-config>
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.