deployment-descriptor

Glassfish: Deploying application in domain failed; Error loading deployment descriptors - invalid bit length repeat

I'm trying to deploy a .war trough the server's web interface. Getting the same error when deploying it as an exploded directory with IDEA. What is the solution to this problem? ...

How to initialize a value in web.xml from a JNDI variable?

Hi All, In my Java web application, the NTLM domain controller name is specified in web.xml like this: <filter> <!-- other code --> <init-param> <param-name>jcifs.http.domainController</param-name> <param-value>DCNAME</param-value> </init-param> <!-- other code --> </filter> In the above XML, we've hard-coded t...

Can I have multiple EJB declarations for the same Home and Remote classes?

Can one declare multiple beans in the ejb-jar.xml (in EJB 1.1) deployment descriptor with different names but the same classes behind? For example: <session> <ejb-name>AccountFacade</ejb-name> <home>com.something.ejb.AccountFacadeHome</home> <remote>com.something.ejb.AccountFacadeRemote</remote> <ejb-class>com.something...

DD elements, <context-param> and <init-param> both use the getInitParameter() method.

DD elements <context-param> and <init-param> both can be retrieved by the getInitParameter() method, in the servlet code. Now the question is, how does it differentiate <context-param> and <init-param>? ...

Eclipse Java EE Plugin to edit the Deployment Descriptor

Okay, so I have been using Java EE with glassfish for a little while now. And have started to realize that my deployment descriptor is getting really cluttered up and hard to find things in it anymore. So I was wondering if anyone knows of a plugin for Eclipse that makes managing the descriptor easier, perhaps something visual? I know th...

How can I catch all errors to same page from web.xml?

I tried to use <error-page> <exception-type>java.lang.Exception</exception-type> <location>/errors/error.jsp</location> </error-page> but i dosen't catch 404 errors. How can I catch also 404 etc. errors to that same page ? I want to catch ALL error codes to same error page jsp. ...

How do I use wild cards (*) in url-pattern with MVC correctly

I am trying to get a servlet to respond to every request with a url-pattern of "/test/*". so this controller should respond to : myApp/test/ myApp/test/whatever myApp/somehting?other=stuff using the following mapping: <servlet-mapping> <servlet-name>test</servlet-name> <url-pattern>/test/</url-pattern> </servlet-mapping> Th...