user1584253
user1584253

Reputation: 1005

Start glassfish server on different port

I have created a new domain ac and defined a different port in domain.xml i.e. 11305. But when I try to start the domain it gives me following exception:

com.sun.enterprise.universal.xml.MiniXmlParserException: "Xml Parser Error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[253,34]

Message: Open quote is expected for attribute "{1}" associated with an element type "port".

Here is the command:

./asadmin start-domain ac

Here is the part of the domain.xml file

<network-listeners>

          <network-listener port=“11305” protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>

          <network-listener port="33389" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>

          <network-listener port="33356" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>

        </network-listeners>

Where am I going wrong?

Upvotes: 0

Views: 1272

Answers (1)

Varis
Varis

Reputation: 254

The xml config got malformed. Check if the port value is quoted and check if your quote is the right symbol (try copying quotes from other places in the xml)

Update: First and second quotes are non-standard in your excerpt of the domain.xml file, 3rd line. Compare the quotes around 11305 and the quotes around http-listener-1. They are different. The quotes around http-listener-1 are proper and you should use those.

Upvotes: 1

Related Questions