[JBoss Portal] New message: "how to change the input user name"
by Janardan N
User development,
A new message was posted in the thread "how to change the input user name":
http://community.jboss.org/message/523889#523889
Author : Janardan N
Profile : http://community.jboss.org/people/njrfrens
Message:
--------------------------------------------------------------
Hi,
My users log in to the portal with user name as "<DOMAIN>\<username>".
>From this, i need to extract <username>.
I wrote a custom login module by extending SynchronizingLDAPExtLoginModule.
I overrided the method getUsernameAndPassword().
super.getUsernameAndPassword(), will return an array of username and password.
i am manipulating this <username> and am returning.
But this is not working properly...(not setting the principal in the session).
Any help will be highly grateful
Thanks and Regards,
Janardan
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523889#523889
16 years, 2 months
[jBPM] New message: "Data-(Document)flow, elemental questions"
by Philipp Kanis
User development,
A new message was posted in the thread "Data-(Document)flow, elemental questions":
http://community.jboss.org/message/523882#523882
Author : Philipp Kanis
Profile : http://community.jboss.org/people/StudentTrier
Message:
--------------------------------------------------------------
Hallo everybody,
my name is Philipp Kanis and I study at the university Trier Germany. For my diploma thesis i need some informations about jBPM / JBoss.I dont know whether this is here the right place for my questions. So i hope anyone can help me.
What i want to know is about the modelling of process respectively workflows in jBPM.
Does the modelling part of JBPM support a data- or documentflow? I mean, can i integrate documents (.pdf, .doc…) in a workflow respectively in a workflowtask?
If the answer is yes, there are following questions i want to ask:
Which documenttypes are supported to integrate into a workflow?
Is it possible to upload documents in a main storage like a repository?
Are there access authorisations for these documents?
Is it possible to manage the metadata form these documents?
How is the visual presentation of these documents in a workflow? A seperate flow or just like a small add-on to a workflowtask?
I hope my english is not so bad and anybody can help me.
Sincerely, Philipp
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523882#523882
16 years, 2 months
[jBPM] New message: "handling exceptions in AssignmentHandler"
by Andrzej Urban
User development,
A new message was posted in the thread "handling exceptions in AssignmentHandler":
http://community.jboss.org/message/523881#523881
Author : Andrzej Urban
Profile : http://community.jboss.org/people/andrzejurban
Message:
--------------------------------------------------------------
Hi,
1. I'm searching for some good practise tips on handling exceptions in AssignmentHandler.
When assigning task to an actor using a custom AssignmentHandler (that implements AssignmentHandler interface) exception occures in assign method.
How should I handle that exception in case of a first task in a process (the process has already started and it has a task with no actors to assign to)
My first solution is to delete the whole process and inform an user that a process hasn't started. But maybe there's a better solution to this problem.
And what in case this happens not in a first task of a process? I cannot delete a process. (I hope that in case of exception token stays on a previous node but haven't checked it yet)
2. Does JBPM support going back to a previous node (i.e. when exception occures in node-enter event action)? Or maybe there's a better practise?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523881#523881
16 years, 2 months
[Beginner's Corner] New message: "Migrate from Jboss 4.2.3 to Jboss 5.1.0 ==> lookup("java:comp/env") threw exception"
by James Norton
User development,
A new message was posted in the thread "Migrate from Jboss 4.2.3 to Jboss 5.1.0 ==> lookup("java:comp/env") threw exception":
http://community.jboss.org/message/523873#523873
Author : James Norton
Profile : http://community.jboss.org/people/lledmouse
Message:
--------------------------------------------------------------
Hi,
We are trying to migrade from jboss4.2.3 to 5.1.0 but We have not been successful.
Our application is a WAR file created with an external tool called AllfusionGen.
In Jboss4.2.3 We are doing the following:
1) rename jboss-4.2.3.GA\server\default folder to unittest76
2) copy WAR file (unittest76.war) to jboss-4.2.3.GA\server\unittest76\deploy
3) copy D2D1.sar folder to jboss-4.2.3.GA\server\unittest76\deploy
Now We are doing the same with Jboss5.1.0. It seems to work fine (the war is deployed) but once we load the main jsp We get the following error:
12:31:59,524 INFO [STDOUT] 02/03/10-12:31:59:524[http-127.0.0.1-8080-1]: ServletRequest.setLoader(): *lookup("java:comp/env") threw: "javax.naming.NameNotFoundException: env not bound"*
12:31:59,618 INFO [STDOUT] 02/03/10-12:31:59:618[http-127.0.0.1-8080-1]: LoadModule.getInstance(): Load Module get instance of sirius.TSEC0004.LoadModule.class Failed: java.lang.NullPointerException. Please contact your web server administrator.
12:31:59,618 INFO [STDOUT] 02/03/10-12:31:59:618[http-127.0.0.1-8080-1]: java.lang.NullPointerException
at java.util.StringTokenizer.<init>(Unknown Source)
at java.util.StringTokenizer.<init>(Unknown Source)
at com.ca.gen76.fmrt.LoadModule.load(Unknown Source)
at com.ca.gen76.fmrt.LoadModule.getInstance(Unknown Source)
...
Why is this happening?, the application is the same.
Here is our D2D1.sar\db2-ds.xml:
<datasources>
<local-tx-datasource>
<jndi-name>SIRIUSDB</jndi-name>
<connection-url>jdbc:odbc:D2D1</connection-url>
<driver-class>sun.jdbc.odbc.JdbcOdbcDriver</driver-class>
<min-pool-size>1</min-pool-size>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>SIRHPLDB</jndi-name>
<connection-url>jdbc:odbc:D2D1</connection-url>
<driver-class>sun.jdbc.odbc.JdbcOdbcDriver</driver-class>
<min-pool-size>1</min-pool-size>
</local-tx-datasource>
</datasources>
and our unittest76.war\WEB-INF\web.xml file: (part of it)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" xmlns="http://java.sun.com/xml/ns/j2ee">
<display-name>SIRIUS76</display-name>
<description>Web Application Generated by AllFusion(R) Gen. Copyright 2003-2006, Computer Associates International, Inc.</description>
<context-param>
<param-name>deploystyle</param-name>
<param-value>classic</param-value>
</context-param>
<context-param>
<param-name>traceurl</param-name>
<param-value>localhost:4567</param-value>
</context-param>
<context-param>
<param-name>threads</param-name>
<param-value>disabled</param-value>
</context-param>
<context-param>
<param-name>localName</param-name>
<param-value>sirius</param-value>
</context-param>
<context-param>
<param-name>browserControlledHistory</param-name>
<param-value>NO</param-value>
</context-param>
<context-param>
<param-name>usedso</param-name>
<param-value>enabled</param-value>
</context-param>
<context-param>
<param-name>useResourceRefs</param-name>
<param-value>enabled</param-value>
</context-param>
<!-- Servlet Definition for LoadModule BOOKCREA -->
<servlet>
<servlet-name>BOOKCREAServletManager</servlet-name>
<servlet-class>sirius.BOOKCREA.ServletManager</servlet-class>
</servlet>
<servlet>
<servlet-name>bookcrea</servlet-name>
<jsp-file>/bookcrea.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>bookcr</servlet-name>
<jsp-file>/bookcr.jsp</jsp-file>
</servlet>
<!-- Servlet Definition for LoadModule DACC1WIN -->
...
<!-- Servlet Mapping for LoadModule TCTR3003 -->
<servlet-mapping>
<servlet-name>TCTR3003ServletManager</servlet-name>
<url-pattern>/TCTR3003ServletManager</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tctr3003</servlet-name>
<url-pattern>/tctr3003</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tctr3003</servlet-name>
<url-pattern>/tctr3003.jsp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>sctr3003</servlet-name>
<url-pattern>/sctr3003</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>sctr3003</servlet-name>
<url-pattern>/sctr3003.jsp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tstylst1</servlet-name>
<url-pattern>/tstylst1</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tstylst1</servlet-name>
<url-pattern>/tstylst1.jsp/*</url-pattern>
</servlet-mapping>
<!-- Servlet Mapping for LoadModule TCTR4000 -->
...
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<env-entry>
<env-entry-name>LoadModuleList</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>sirius.tlogon</env-entry-value>
</env-entry>
</web-app>
Any help is appreciated.
Thank you.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523873#523873
16 years, 2 months
[JBoss Microcontainer Development] New message: "Re: Pluggable dependency resolver"
by Kabir Khan
User development,
A new message was posted in the thread "Pluggable dependency resolver":
http://community.jboss.org/message/523860#523860
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
I've done some work on scoped aliases, and made the dependency resolver matchers not throw errors if things cannot be found when cleaning up the registered dependencies on uninstall (since multiple controllers may be involved). In dependency I still see some failures which I need to dig into, but all the tests in kernel pass with the new resolver. I need to add some tests making sure that everything is cleaned up in the new dependency resolver to make sure we don't leak memory.
As mentioned before I will look into this
"One thing I think we're lacking is "wrong order" tests for contextual injection, at least with qualifiers, so I need to add some. The same might be the case for supply/demand, which I need to check."
I need to revisit how I am handling concurrency when accessing the indexed dependencies in the matchers.
Next I'll look at how to get all the the tests run in all controller modes, I'll probably do this by adding some maven profiles as suggested by Paul
> I'm assuming you are using the surefire plugin, right? You can set up multiple executions of any plugin, including surefire, and these executions can be in the same profile or separate profiles. Just make sure you have a different ID for the two profiles.
>
> It looks something like this:
>
> <plugin>
> <groupId>
> <artifctId>
> <executions>
> <execution>
> <id>test-config-1</id>
> <configuration>
> ...
> </configuration>
> </execution>
> <execution>
> <id>test-setup-2</id>
> <configuration>
> ...
> </configuration>
> </execution>
> </executions>
> </plugin>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523860#523860
16 years, 2 months
[JBoss Web Services] New message: "Re: Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders"
by Andrew Dinn
User development,
A new message was posted in the thread "Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders":
http://community.jboss.org/message/523859#523859
Author : Andrew Dinn
Profile : http://community.jboss.org/people/adinn
Message:
--------------------------------------------------------------
Hi Richard,
> mailto:richard.opalka@jboss.com wrote:
>
> you need to have $JBOSS_HOME/lib/endorsed/jbossws-native-factories.jar on the classpath. It defines all the factories.
That is on the classpath but it doesn't stop the problem.
I just noticed that this is happening after a hot depoy and the exception trace includes the following text
com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl could not be instantiated: java.lang.IllegalStateException:BaseClassLoader@144ee21 classLoader is not connected to a domain (probably undeployed?) for class com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl
So, this is probably to do with the undeploy/redeploy leaving something hanging on to the wrong version of a class. My app is deployed as an EAR containing i) a servlet in an embedded war, ii) an EJB exposed as a Web Servce in an embedded jar and iii) an AOP aspect classwhich transforms the EJB implementtaion class in another embedded '.aop' jar. I guess any of these could be responsible for the undployredeploy problem.
Life is probably too short to worry about finding the culprit.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523859#523859
16 years, 2 months