[Design of JBoss/Tomcat Integration] - Re: Bad deployment cleanup issues?
by scott.stark@jboss.org
Brian thinks this is due to http://jira.jboss.com/jira/browse/JBAS-4060.
Looking earlier in the log I do see another war undeployment resulting in an NPE:
| 2007-02-08 08:09:33,828 DEBUG [org.jboss.web.WebModule] Destroyed jboss.web.deployment:war=manifest-web.war,id=995861669
| 2007-02-08 08:09:33,843 ERROR [org.apache.coyote.http11.Http11Processor] Error processing request
| java.lang.NullPointerException
| at org.apache.catalina.session.StandardSession.endAccess(StandardSession.java:638)
| at org.apache.catalina.connector.Request.recycle(Request.java:419)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:239)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| at java.lang.Thread.run(Thread.java:595)
|
I'm not clear on how this affects subsequent deployments that claim they were successfully deployed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013116#4013116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013116
19 years, 1 month
[Design of JBoss/Tomcat Integration] - Bad deployment cleanup issues?
by scott.stark@jboss.org
There are some tests that excercise bad war deployment that are failing inconsistently. Two are:
http://jira.jboss.com/jira/browse/JBAS-4085
http://jira.jboss.com/jira/browse/JBAS-4031
In the example I looked at, jbossweb is claiming a given webapp is not available even though the server log indicates otherwise:
| The test.log shows that jbossweb claims that no such webapp exists:
|
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.test.util.web.HttpUtils] RequestURI: http://localhost:8080/redeploy/index.html
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to localhost:8080
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "GET /redeploy/index.html HTTP/1.1[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "Host: localhost:8080[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] >> "[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "HTTP/1.1 503 This application is not currently available[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Server: Apache-Coyote/1.1[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Transfer-Encoding: chunked[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Date: Thu, 08 Feb 2007 16:12:06 GMT[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [httpclient.wire.header] << "Connection: close[\r][\n]"
| 2007-02-08 08:12:06,843 DEBUG [org.apache.commons.httpclient.HttpConnection] Input data available
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.test.util.web.HttpUtils] responseCode=503, response=This application is not currently available
|
|
| Even though the server.log indicates it was started:
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.web.WebModule] Starting jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,750 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] webContext: /redeploy
| ...
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Initialized: {WebApplication: /C:/svn/JBossAS/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc/tmp/deploy/tmp44326jbosstest-good.ear-contents/good-web-exp.war/, URL: file:/C:/svn/JBossAS/Branch_4_2/build/output/jboss-4.2.0.CR1/server/jacc/tmp/deploy/tmp44326jbosstest-good.ear-contents/good-web-exp.war/, classLoader: java.net.FactoryURLClassLoader@248f34:2395956} jboss.web:j2eeType=WebModule,name=//localhost/redeploy,J2EEApplication=none,J2EEServer=none
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:war=good-web.war,id=627826940
| 2007-02-08 08:12:06,828 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:war=good-web.war,id=627826940 dependent components: []
| 2007-02-08 08:12:06,843 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: good-web.war
|
There is no NPE in the log as Brian saw in another issue. I have had the failing test switch from testBadWarRedeploy to testBadEarRedeploy to no failure.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013113#4013113
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013113
19 years, 1 month
[Design of JBoss jBPM] - Re: commands & EJB 3
by camunda
Hi Tom,
okay, the idea sounds nice. As a Java-EE guy JACC is new to me, but no problem :-)
Okay, I found the AuthorizationService (-Interface). I haven't found any good informations on the "EJBRoleRefPermission", not even with Google! But okay, to get it working with JAAS should not be a big deal. I will try that and come back, if there are any problems.
One problem I just want to pass to you Tom: Can you add the AuthorizationService to the jbpmContext? Or shall I try to do that by myself?
And one problem remains: How we do the mapping between commands and roles? Going by Command-Name is not the best idea, I think. 2 other ideas:
- introduce a mapping-file (CommandName, required-roles)
- add the method to the CommandInterface as suggested
The first one is maybe more flexible, but to have everything in java more handy. And special solutions (like "this guy is only allowed for processes of that organizational unit") has to be implemented by hand anyway. So I would prefer the second way, but what do you prefer for that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013051#4013051
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013051
19 years, 2 months
[Design the new POJO MicroContainer] - Re: Scoped beans deployment
by adrian@jboss.org
"alesj" wrote :
| Currently I have a separate binding element, which takes any MC value. This should do it for the injection / dependency, right?
|
Ok, the binding metadata makes sense from what I said above
about keeping the xml simple, but you still need to create the BeanMetaData
for the installer pojo. You have to add a context to the MC that does this work
and resolves the ValueMetaData objects (e.g. injections).
I don't understand why you have visitor callbacks on the Binding/Policy/ScopeMetaData?
They are not a part of the BeanMetaData tree so they are never going to get
invoked.
An alternative to creating a MapMetaData would be to make BindingMetaData
extend ValueMetaData so you can set it directly as the value of the PropertyMetaData
of the installer pojo?
Or more accurately you would need a BindingsMetaData that specializes
AbstractSetMetaData to effectively a Set.
The PolicyMetaData and the installer pojo could then take a BindingsMetaData.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013033#4013033
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013033
19 years, 2 months