Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Can't create glassfish-web.xml in my web project (Glassfish/Netbeans)

This should work if you are using Netbeans 8. If you are using an older version of Netbeans you should update to the latest version.

You can manually create a new xml file named glassfish-web.xml (or rename the sun-web.xml) and insert the following content:

<?xml version="1.0"
<!DOCTYPE glassfish-web-app PUBLIC
"-// GlassFish Application
Server 3.1 Servlet 3.0//EN"
<glassfish-web-app error-url="">
  <class-loader delegate="true"/>
    <property name="keepgenerated"

This is the content Netbeans creates by default.

Categories : Java

Related to : Can't create glassfish-web.xml in my web project (Glassfish/Netbeans)
Where to add the jdbc driver on Netbeans/Glassfish in Windows?
Putting the jar file in $glassfish-v3-install-root/glassfish/lib turned out to be correct. The "SEVERE: RAR5111 : Error casting to javax.sql.Datasource java.lang.ClassCastException: com.mysql.jdbc.Driver cannot be cast to javax.sql.DataSource" error was, I believe, caused by an incorrect setting for the jdbc pooling on the glassfish server. But going to the admin console, available from the

Categories : Java
Netbeans/Glassfish - Expected to find an expanded directory but found a JAR
Had to change the EAR's pom.xml to include the modules section below - note the "unpack" command. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.3.2</version> <configuration> <version>5</version> <modules> <webM

Categories : Java
java.lang.RuntimeException: Cannot create a secure XMLInputFactory when deploying on Glassfish
Please prefer to implement kelmers answer to not open security holes! Depending on the security requirements of your application you could use the org.apache.cxf.stax.allowInsecureParser option. From the documentation There is a "org.apache.cxf.stax.allowInsecureParser" System Property that can be set to true to allow using an insecure parser, but that is HIGHLY not recommended But I t

Categories : Java
Install awstats in glassfish
Try the following: Enable Glassfish access logging Open the Glassfish Admin GUI (http://localhost:4848), navigate to server-config -> HTTP Service and enable Access Logging. Change the Format to the following string: combined (this is Apache combined log format). Now Glassfish should start logging to a file in GLASSFISH_HOME/glassfish/domains/domain1/logs/access. Configure awstats: Open the

Categories : Java
Adding a filter to a Glassfish server
Filters are independently added w.r.t. servlets <filter> <filter-name>ContainerResponseFilter</filter-name> <filter-class>com.filters.CrossOriginResourceSharingFilter</filter-class> <init-param> <param-name>...</param-name> <param-value>42</param-value> </init-param> </filter> <filter-mapping>

Categories : Java
Recently Add
Redirecting the output directory of 'mvn package' or 'mvn compile' command
No suitable constructor found for ProductoExtranjero
java Composite design pattern(Directory &File)
Java JTree's ui refresh after removing node from parent
First REST Spring application
How to cancel Indexing of a Solr document using Update Request Processor
PowerMock - Mock a Singleton with a Private Constructor
Calling a Postgres stored function SQL error
Where to store Morphlines Java custom command class?
Generic repository using map
How can I scroll a ScrolledComposited in Eclipse SWT Design view?
2 Frames/layout in 1 Activity
Writing a switch differently
Next button opens another activity when its reaches the array limit
Is EclipseLink MOXy capable of applying JSR-303 Bean Validation when unmarshalling XML to object?
Why my jdk can't work,and before the java_home, there is a space that is not from me
How to add List of objects in a Map
How to make notepad++ function like regular notepad in cmd?
Cell renderer and the lost focus
how can I implement iterable for LinkedList>
Disable Androids image-crunch in eclipse (run as) builds
java 8 lambda != myMap.size() after merging myMap
Issue with Calendar calculation that spans 2 calendar years
JSF 2.0 Spring bean injection
Java Regex ReplaceAll with grouping
Getting any word and last word using sed
Clicking on link on JEditorPane throws IOException
printing out difference of two arrays
Spring Bean Alias in JavaConfig
Using Factory Method to Create Generics
© Copyright 2017 Publishing Limited. All rights reserved.