Wyskakuje mi taki błąd w debugerze:
In-place deployment at C:\Users\Tomek\Documents\NetBeansProjects\WebApplication3\build\web
GlassFish Server 4.1.1, deploy, null, false
C:\Users\Tomek\Documents\NetBeansProjects\WebApplication3\nbproject\build-impl.xml:1152: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 2 seconds)
Nie mam pojęcia co z tym zrobić. Reinstalacja Netbeansa nie pomogła. Obecnie w pliku servlet jak mam taki kod:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<servlet-name>NewServlet</servlet-name>
<servlet-class>NewServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>NewServlet</servlet-name>
<url-pattern>/NewServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>
to program się skompiluje, ale jak już dodam init params to wyskakuje ten błąd, kod z init params:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<servlet-name>NewServlet</servlet-name>
<servlet-class>NewServlet</servlet-class>
</servlet>
<servlet-mapping>
<init-param>
<param-name>myparam1</param-name>
<param-value>myvalue1</param-value>
</init-param>
<servlet-name>NewServlet</servlet-name>
<url-pattern>/NewServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>