[英]Start glassfish server on different port
I have created a new domain ac
and defined a different port in domain.xml
ie 11305
. 我创建了一个新的域ac
并在domain.xml
定义了另一个端口,即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] com.sun.enterprise.universal.xml.MiniXmlParserException:“ Xml分析器错误:javax.xml.stream.XMLStreamException:[row,col]处的ParseError:[253,34]
Message: Open quote is expected for attribute "{1}" associated with an element type "port". 消息:与元素类型“端口”相关联的属性“ {1}”应使用引号引起来。
Here is the command: 这是命令:
./asadmin start-domain ac
Here is the part of the domain.xml file 这是domain.xml文件的一部分
<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? 我要去哪里错了?
The xml config got malformed. xml配置格式错误。 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) 检查端口值是否带引号,并检查引号是否正确(尝试从xml中的其他位置复制引号)
Update: First and second quotes are non-standard in your excerpt of the domain.xml file, 3rd line. 更新:在您摘录的domain.xml文件的第三行中,第一引号和第二引号是非标准的。 Compare the quotes around 11305
and the quotes around http-listener-1
. 比较11305
周围的引号和http-listener-1
周围的引号。 They are different. 他们是不同的。 The quotes around http-listener-1
are proper and you should use those. http-listener-1
周围的引号是正确的,您应该使用这些引号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.