[Installation, Configuration & DEPLOYMENT] - Deploymente ERROR
by jplistero
hi, I `m trying to deploy my app but i have some errors ...
I 'm using openSUSE linux with java JDK version "1.6.0_06" and jboss-4.2.2.GA
the log:
ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/home/jp/Desktop/jboss-4.2.2.GA/server/default/depl
oy/ejb3.deployer/
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive ejb3.deployer
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
....
11:11:10,391 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@13b95a99{ url=file:/home/jp/Desktop/jboss-4.2.2.GA/server/default/deploy/ejb3.deployer/, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive ejb3.deployer
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
... etc etc
I dont have this problem running the same jboss @ MS - Windows XP
any ideas ?
thanks!
(I have ok declared JAVA_HOME & JBOSS_HOME)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160276#4160276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160276
17 years, 10 months
[JBoss/Spring Integration] - JBoss + Spring + Struts 2
by davehz
Hi,
I'm trying to deploy Struts 2 on JBoss but I would like to keep the struts2 jar inside the server lib directory instead of WEB-INF/lib so that many apps can share it . . .
When I do this, the struts2 JAR's classes are loaded and my application deploys successfully. The action servlet is called and runs successfully and forwards to a JSP. However, the JSP cannot be loaded because the struts TLD file cannot be found (see log below). The struts TLD is in the Struts 2 Core jar. How can I have my app search in the JAR for the TLD?
Thanks in Advance,
Dave
LOG:
> ....
> 2008-06-23 17:12:49,085 DEBUG
> [com.opensymphony.xwork2.util.InstantiatingNullHandler] Entering
> nullPropertyValue
>[target=[com.lehman.corpsec.web.UpdateDailyCheckoutStatusXMLServlet@15
> 0b 99d, com.opensymphony.xwork2.DefaultTextProvider@162ac83],
> property=org]
> 2008-06-23 17:12:49,280 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jsf-libs/jsf
> -i
> mpl.jar
> 2008-06-23 17:12:49,420 DEBUG
> [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in:
> file:/home/nycco2q/jboss/eap4.2/deploy/jboss-web.deployer/jstl.jar
> 2008-06-23 17:12:49,513 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CO2/
> Da ilyCheckout].[jsp]] Servlet.service() for servlet jsp threw
> exception
> org.apache.jasper.JasperException: File "/struts-tags" not found
> at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHa
> nd
> ler.java:51)
> ....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160274#4160274
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160274
17 years, 10 months
[Security & JAAS/JBoss] - Re: Simple Auth for HelloWorld-Example not working...
by j0llyr0g3r
Hey folks,
my final remark how to achieve the same as above for an EAR:
== Securing access to the EJB-application ==
* Create the file users.properties under /$PROJECT-ROOT/META-INF:
admin=secretadminpassword
| user=secretuserpassword
* Create the file roles.properties under /$PROJECT-ROOT/META-INF:
| admin=adminRole
| user=userRole
* Add the following annotations to your beans:
@RolesAllowed("adminRole")
| public class SendCommandBean implements ISendCommandRemote, ISendCommandLocal {
|
| @RolesAllowed("adminRole")
| public String sendCommand(myArgs...) {
* Add the file jboss.xml to the ejb-subproject under the directory /META-INF
<jboss>
| <security-domain>java:/jaas/myDomain</security-domain>
| </jboss>
|
* Adjust the file login-config.xml under the directory $JBOSS_HOME/server/$PROFILE/conf/
<application-policy name = "myDomain">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
| <module-option
| name="usersProperties">
| META-INF/users.properties
| </module-option>
| <module-option
| name="rolesProperties">
| META-INF/roles.properties
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160272#4160272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160272
17 years, 10 months