简体   繁体   English

在其他端口上启动glassfish服务器

[英]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.

相关问题 无法启动GlassFish Server(已占用DAS端口) - Could not start GlassFish Server (DAS Port is occupied) 实例不是GlassFish Server 3+或未运行,部署错误:GlassFish Server 3+ Server无法启动。 端口已被占用 - Instance is not GlassFish Server 3+ or it is not running, Deployment error: GlassFish Server 3+ Server cannot start. Port is occupied 无法启动GlassFish服务器4.1.1:管理员端口被异常占用 - Could not start GlassFish server 4.1.1 : administrator port is occupied by exception Glassfish 服务器启动失败 - Glassfish server start failed 无法启动 GlassFish Server4.1 HTTP 或 HTTPS 侦听器端口被占用,而服务器未在 MAC 上运行 - Could not start GlassFish Server4.1 HTTP or HTTPS Listener port is occupied while server is not running ON A MAC 无法启动Glassfish Server 4.1.1 http或https侦听器端口在服务器未运行时被占用 - Could not start Glassfish Server 4.1.1 http or https listener port is occupied while server is not running Netbeans IDE8 Glassfish 4,GlassFish Server:管理员端口被null占用 - Netbeans IDE8 Glassfish 4, GlassFish Server: Administrator port is occupied by null GlassFish Server:管理员端口被空占用 - GlassFish Server: Administrator port is occupied by null 在Netbeans 7.3中更改远程glassfish服务器端口 - Change remote glassfish server port in Netbeans 7.3 使用JDK启动GlassFish Server 4.0错误 - GlassFish Server 4.0 start error with JDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM