[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread [EMAIL PROTECTED]
anonymous wrote : 
  | It appears that this thread, which ought to be quickly finding a 
ServerThread to handle the incoming request, calling ServerThread.start(), and 
getting back to the call to serverSocket.accept() as quickly as possible, is 
instead doing some socket I/O. ServerSocketWrapper.java has a method called 
createInputStream() that creates a new ObjectInputStream. The stack trace shows 
that the JBossObjectInputStream constructor is reading some bytes from the 
input stream, but I don't think that this problem is specific to JBoss 
Serialization, as java.io.ObjectInputStream's constructor also reads bytes from 
the stream.
  | 
  | It seems to me that this could be the cause of the problem that we are 
seeing. Any time that you're doing a blocking socket read like this, you can 
potentially just sit for a while until the socket times out. When you've got a 
thread calling serverSocket.accept(), you can't normally afford to do something 
like this on that thread.
  | 
  | Does this analysis make sense? Any thoughts/suggestions would be greatly 
appreciated. 
  | 

It does indeed make sense.  See JIRA issue JBREM-666 
(http://jira.jboss.com/jira/browse/JBREM-666 ).  

This problem was fixed in the Remoting 2.2.0 releases, the most recent of which 
is 2.2.0.SP4. Which version of the Application Server are you using?  The 
latest GA release, 4.2.0.GA, comes with Remoting 2.2.0.SP4.  If you can't 
upgrade that far, then you might try getting the latest version of EJB3, which, 
I believe, should work with Remoting 2.2.0.  This could cause problems for 
other Remoting clients which depend on an older version of Remoting.  In that 
case, look into scoped deployment, which allows different applications to use 
different library versions.  See, for example, the wiki page 
ClassLoadingConfiguration 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration).

-Ron

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057954#4057954

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why my condtion doesn't get evaluated?

2007-06-27 Thread sparklehorse
sparklehorse wrote : kukeltje wrote : Remaining question: did you upgrade 
from a 3.1 version:
  |   | 
  |   | http://jira.jboss.com/jira/browse/JBPM-854?
  |   | 
  |   | Or use mysql 5.0?
  |   | 
  |   | debugging the decisioncode requires adding a debug statement in the 
source to see what gets evaluated.
  | 
  | no upgrade, just fresh install of all the stuff
  | but i'm using mysql 5.0
  | 
  | i've also tried to change, even if i don't see any error,
  | every bit(1) in the mysql schema to tinyint(1)
  | ...same result
  | 
  | i will try the unit test you suggest and let you know
  | 
  | thanks
  | 
  | 
  | 

i've tried some test suite and they don't work with conditions

i've upgraded to 3.2.1 and now condition works

I think this two patches are important

# [JBPM-853] - Attribute 'expression' not taken from Condition element
# [JBPM-854] - Condition in transition not retrieved from database 
JBPM_TRANSITIONS#DECISION_


bye


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057956#4057956

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057956
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Bug? Seam-2.0-Beta - HttpSession Creation

2007-06-27 Thread PatrickMadden
Hi,

I have a workaround for this but I can't imagine that its something you all 
will be happy with.

For the sessionCreated and sessionDestroyed methods I simply put them in a 
runnable and called them later.

It appears that as soon as I call HttpSessionEvent.getSession() is when the 
recursive loop occurrs.

Anyway here is my workaround for now:


  | public void sessionCreated(final HttpSessionEvent evt)
  | {
  | Runnable runner = new Runnable()
  | {
  | public void run()
  | {
  | XSystem.logInfo(Session Created =  + 
evt.getSession().getId());
  | 
IdToSessionMap.getInstance().addHttpSession(evt.getSession());
  | SessionController.getInstance(evt.getSession().getId());
 
  | }
  | };
  | 
  | EventQueue.invokeLater(runner);
  |   
  | }
  | 
  | public void sessionDestroyed(final HttpSessionEvent evt)
  | {
  | Runnable runner = new Runnable()
  | {
  | public void run()
  | {
  | XSystem.logInfo(Session Destroyed =  + 
evt.getSession().getId());
  | 
IdToSessionMap.getInstance().removeHttpSession(evt.getSession());
  | SessionController.freeInstance(evt.getSession().getId());
  | }
  | };
  | 
  | EventQueue.invokeLater(runner);
  | }
  | 

Looking forward to know whether or not I'm crazy :)

Thanks,

PVM

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057957#4057957

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057957
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread [EMAIL PROTECTED]
javajedi wrote : Thanks Ron.  Yeah, I came across JBREM-409 a few days ago, 
and had already applied that patch from 1.4.6 (which seems to have been tagged 
in CVS but never released) to our code.  So this problem definitely seems to 
still exist in 1.4.6.
  | 

The 1.4.6.GA jar is at http://repository.jboss.com/jboss/remoting/1.4.6.GA/lib. 
 You might try it, just in case.  Note that it looks like the fix for JBREM-409 
involved some changes to SocketServerInvoker as well as ServerThread (though I 
don't remember what they were, off the top of my head).

-Ron

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057958#4057958

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057958
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-27 Thread genman

JBoss Cache 2 (which is not in release yet) fixes some problems, such as the 
hack where the map storage is used for book-keeping information.

This key is used to indicate that the data has not yet been loaded from disk. 
You say this data is already in memory, how do you know? Also, the children 
are not loaded with their data until they are accessed. This is a feature not a 
bug.

Some of the problems with JBCache 1.4 are caused by accessing data via the Node 
object and not the Cache object.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057955#4057955

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057955
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: Apparently losing data

2007-06-27 Thread genman

anonymous wrote : 
  | This seems to work well BUT sometimes the mechanism seems to break and no 
more work until the AS (in my case JBoss) is shutdown and restarted. The 
problem is that the data is put into the cache but when retrieved it is NULL. 
No errors were reported, simply the data seems to disappear from the cache. 
  | 

So, you mean that calls to TreeCache.put(x,y); stop working? How do you know 
this?

I assume your problem is the data is somehow not being updated in the BDBJE 
store (or the store is deleted), and upon restart the cache is missing data. Is 
this the problem?

By the way, putting important data in /tmp in UNIX would be a bad plan.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057959#4057959

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057959
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Exceptions in calls and callbacks

2007-06-27 Thread [EMAIL PROTECTED]
shdv wrote : [EMAIL PROTECTED] wrote : About the only thing can know for 
sure is if get a CannotConnectException, the call never reached the server.  
Anything else would be difficult to know for sure (i.e. if get SocketException, 
can't be certain that call didn't make it to server).
  | 
  | Why does org.jboss.remoting.Client.invoke() throw Exception when client is 
not connected? According to the above description it should be 
CannotConnectExcetption.
  | 
  | I was really disappointed when I got it. My code catches 
CannotConnectException to handle connection issues.
  | 
  | Since Client is usually wrapped in a proxy, under some circumstances proxy 
class can wrap it into UndeclaredThrowableException making things even worse.

Well, when Client.invoke() throws Exception, it's not a *cannot* connect 
problem, it's a *did not* connect problem.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057960#4057960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread javajedi
The only relevant change that I saw to SocketServerInvoker (that I already 
patched) was the call to
serverSocket.setReuseAddress(true);

Was there more that I'm missing?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057961#4057961

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread javajedi
BTW, we are using JBoss 4.0.4 and ejb 3.0-rc9.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057962#4057962

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Variable resolver

2007-06-27 Thread tarun1981
Hi chawax,

I am trying to do same thing but my actionHandler is not evaluating 
expressions.  

Can you please help me with this

I am using jbpm-3.1.4

-Tarun

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057963#4057963

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057963
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread javajedi
A few months ago, I think I tried using JBoss Remoting 2.x with EJB 3.0-rc9, 
and it didn't work.  Should it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057965#4057965

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-27 Thread aditsu
 You say this data is already in memory, how do you know?

Because I first put it myself in the cache. The data map already present in the 
cache node (I checked with peek) has all the information I need, plus the 
jboss:internal:uninitialized key which I don't need. When the cache finds that 
key, it decides to load data from the cacheloader.

 Also, the children are not loaded with their data until they are accessed. 
 This is a feature not a bug.

Well, I am calling getChildren() on a node, then getData() on the resulting 
map's values. Again, I get the data I want with that extra key added. Am I 
doing it the wrong way?

 Some of the problems with JBCache 1.4 are caused by accessing data via the 
 Node object and not the Cache object.

Well, when I put data in the cache, I use the cache object. When I get data (in 
the first case, without involving children), I use get(Fqn) on the cache object 
then getData() on the node; I haven't found a better way to get all the node's 
data.

I found that if I manually remove the uninitialized key immediately after 
putting a node in the cache, all the problems seem to disappear. However, this 
looks like an UGLY thing to do.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057966#4057966

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057966
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: Persistence and caching using Oracle

2007-06-27 Thread Honest
I forgot: Server side of application is deployed to a number of servers in a 
jboss cluster.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057967#4057967

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057967
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-27 Thread trekker880
hi
Can we do this unit testing using simple public static void main(). ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057968#4057968

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057968
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to create hibernate criteria

2007-06-27 Thread knuwu
The JBoss Version is JBoss 4.0.5 GA.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057969#4057969

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is

2007-06-27 Thread amitev
How is the remember me functionality working?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057971#4057971

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?

2007-06-27 Thread MindTheGap
Ok, thats right!
But in this case, findTaskInstances work?

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057964#4057964

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057964
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread [EMAIL PROTECTED]
javajedi wrote : The only relevant change that I saw to SocketServerInvoker 
(that I already patched) was the call to
  | serverSocket.setReuseAddress(true);
  | 
  | Was there more that I'm missing?

I guess you're right.  I can't see anything else.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057974#4057974

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057974
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-27 Thread de54hsa
Hi all,

I would not say that I have a problem to install the plugin ins, that works. 
But with the start of eclipse the problems start:

1. With the first start using an existing workspace created by pure Eclipse 3.2 
I get a serious error message about not beeing able to restore the 
perspectives. Not the warning, a real error.

2. As a result the newly offered 3.3 standard wizards disappear.

3. Also the JBoss tools wizards does not appear (f.e. jPBM, SEAM etc.)

4. A jBPM project can not be worked on as under 3.2 + jPBM editor.

I copy the eclipse log file for further details:

!SESSION 2007-06-26 12:02:56.593 ---
eclipse.buildId=I20070601-1539
java.version=1.4.2_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86 -data 
C:\Data\DEV_Workspace_Learn_JBoss

!ENTRY org.eclipse.ui.workbench 4 2 2007-06-26 12:03:04.453
!MESSAGE Problems occurred when invoking code from plug-in: 
org.eclipse.ui.workbench.
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.jboss.ide.eclipse.firstrun 
was unable to load class org.jboss.ide.eclipse.firstrun.FirstRunStartup.
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:164)
at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at 
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:49)
at 
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:239)
at 
org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117)
at 
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.runtime.CoreException[1]: 
java.lang.UnsupportedClassVersionError: 
org/jboss/ide/eclipse/firstrun/FirstRunStartup (Unsupported major.minor version 
49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:289)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at 
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at 

[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-27 Thread de54hsa
Sorry,

I forgot to metion: I only installed the zip file metioned in the above link 
and in the proposed sequence.

Regarding the workspace: I have the same problem using a fresh empty directory.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057976#4057976

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057976
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Howto: acces from bean to another SFSB?

2007-06-27 Thread Stateless Bean
Can U explain me for what reason u use @Factory here? What this do?


  | @Factory(name=gameAction,scope=SESSION)
  | public GameAction initGameAction() {
  | 
  | GameAction result = new GameAction(someId,someName);
  | return result;  
  | }
  | 

Maybe better way is to create in method my bean and outject using @Out like

  |   //in some other bean
  |   @Out
  |   private GameAction gameAction;
  | 






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057977#4057977

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057977
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with el parameter in dataTaqble

2007-06-27 Thread amitev
Hi all! I have the following code:

ejb for populating the dataTable


  | @Stateful
  | @Name(projectSearch)
  | public class ProjectSearchBean implements 
com.amitev.bts.ejb.ProjectSearchLocal {
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | @DataModel
  | private ListProject projects;
  | 
  | @Factory(projects)
  | @SuppressWarnings(unchecked)
  | public void retrieveProjects() {
  | projects = em.createQuery(from Project).getResultList();
  | }
  | ..
  | 

The web page with the dataTable:


  | h:dataTable var=proj value=#{projects}
  |   h:column
  |s:link value=#{proj.name} 
action=#{projectBrowse.selectProject(proj)} /
  |  /h:column
  | /h:dataTable
  | 

And the projectBrowse bean

  | @Stateful
  | @Name(projectBrowse)
  | public class ProjectBrowseBean implements 
com.amitev.bts.ejb.ProjectConversationLocal {
  | 
  | @PersistenceContext(type=PersistenceContextType.EXTENDED)
  | private EntityManager em;
  | 
  | @In(required=false) @Out
  | private Project project;
  | 
  | private Issue issue;
  | 
  | @Begin
  | public void selectProject(Project selectedProject) {
  | System.out.println(selectedProject:  + (selectedProject==null));
  | }
  | 
  | 

But when i click on the link in the dataTable, null is passed to the 
selectProject method. The url looks like this:

.../project/list.jsf?actionMethod=pages%2Fproject%2Flist.xhtml%3AprojectBrowse.selectProject%28proj%29cid=2dataModelSelection=proj%3Aprojects%5B0%5D

Idea why null is passed to the action method. I saw this code in seam 1.2.1 
booking demo so i suppose it has to work.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057978#4057978

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057978
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread javajedi
Thanks.  Posted at 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057982

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057983#4057983

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-27 Thread [EMAIL PROTECTED]
javajedi wrote : A few months ago, I think I tried using JBoss Remoting 2.x 
with EJB 3.0-rc9, and it didn't work.  Should it?

I can tell you that the Application Server 4.2.0.GA comes with Remoting 
2.2.0.SP4, so the version of EJB3 in that release must work with that version 
of Remoting.  I'm not sure which version of EJB3 that is, though.


I'm going to refer you to the EJB3 forum 
(http://www.jboss.com/index.html?module=bbop=viewforumf=221) .

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057979#4057979

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057979
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Version(s) of JBoss Remoting compatible with EJB3?

2007-06-27 Thread javajedi
As far as I can tell, it looks like the latest version of EJB3 ships with JBoss 
Remoting 1.4.3 as part of the download.  I have been using 1.4.4-1.4.6 with it 
for a while now.  I ran into a bug in JBoss Remoting 1.4.6 
(http://www.jboss.com/index.html?module=bbop=viewtopicp=4057965), and Ron 
Sigal suggested that I try JBoss Remoting 2.2.x.  I thought that I had tried 
this some time ago and it didn't seem to work with EJB3.  But Ron said 
anonymous wrote : I can tell you that the Application Server 4.2.0.GA comes 
with Remoting 2.2.0.SP4, so the version of EJB3 in that release must work with 
that version of Remoting.

Just hoping someone here can clarify.  Does/should the latest release of EJB3 
(3.0-rc9-patch-1) work with JBoss Remoting 2.2.x?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057982#4057982

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057982
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-27 Thread KnisterPeter
Do use TestNG or JUnit for testing.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057988#4057988

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057988
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with injecting EntityManager when invoking action wi

2007-06-27 Thread tuxzilla
I have a list view page that pops up within page a send-to-friend form (using 
display block/none toggle). The send to friend form is submitted via 
a:commandButton action=#{sendToFriend.send}/. The problem is that when the 
form is submitted, I always get the exception saying that the entityManager in 
the sendToFriend bean is null. I configured the entityManager the standard way, 
with auto-create and Conversation context.
 
  |core:managed-persistence-context name=entityManager
  |   auto-create=true
  |persistence-unit-jndi-name=java:/myEntityManagerFactory/
  | 

The sendToFriendBean is of EVENT scope:

  | @Name(sendToFriend)
  | @Scope(ScopeType.EVENT)
  | @AutoCreate
  | public class SendToFriend {
  | ...
  | @In
  | private EntityManager entityManager;
  | ...
  | public void send() {
  |  ...
  | }
  | }
  | 
I did some debugging, and found out that when BijectionInterceptor was trying 
to inject entityManager, there was no conversationContext alive (which was the 
scope of the entityManager). So no entityManager was created. How do I solve 
this problem? A related question is that, I have many other beans with EVENT 
scope and entityManager injection. How can they work, with conversation scope 
alive without me starting it?

Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057980#4057980

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057980
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Problem in calling an enity bean from the Stateless bean

2007-06-27 Thread ashusri000
Hi All ,

I am facing problem in calling a entity Bean from a Stateless Bean .The call 
flow goes like this:
Jsp Page -- Servlet -- Stateless Bean -- Persisting the Data obtained from 
jsp page into entity bean .

The jsp page  Servlet are deployed as a separate .war file on the Jboss server 
while the Stateless bean and the persistence unit is deployed as .ear file on 
the same Server . When I make a call to persist the values then it throws up an 
error at the runtime :

-

Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
system
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
12:19:00,984 ERROR [STDERR] at 
src.FirstSessionBean.sayHello(FirstSessionBean.java:23)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:19:01,000 ERROR [STDERR] at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)Exception
 Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
system
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
12:19:00,984 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
12:19:00,984 ERROR [STDERR] at 
src.FirstSessionBean.sayHello(FirstSessionBean.java:23)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:19:00,984 ERROR [STDERR] at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:19:00,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:19:01,000 ERROR [STDERR] at 

[jboss-user] [EJB 3.0] - Can a Stateless bean make a call to an entity bean to persis

2007-06-27 Thread ashusri000
Hi All , 
I am facing a problem in trying to put a call from a Stateless bean to 
an entity bean to persist an object . The beans are packed in an ear file and 
have been deployed on JBOss Server 4.xx . When I make a call to persist the 
entity bean object then it throws up an error as this :

 javax.persistence.PersistenceException: Exception [TOPLINK-7060] (Oracle 
TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): 
oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Cannot acquire data source [java:/system].
Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
system
12:57:44,968 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
12:57:44,968 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
12:57:44,968 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
12:57:44,968 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:105)
12:57:44,968 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
12:57:44,968 ERROR [STDERR] at 
src.FirstSessionBean.sayHello(FirstSessionBean.java:23)
12:57:44,968 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:57:44,968 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:57:44,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown 
Source)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
12:57:44,968 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
12:57:44,968 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
12:57:44,968 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
12:57:44,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
12:57:44,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
12:57:44,984 ERROR [STDERR] at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:59)
12:57:44,984 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:57:44,984 ERROR [STDERR] at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
12:57:44,984 ERROR [STDERR] at $Proxy67.sayHello(Unknown Source)

[jboss-user] [EJB 3.0] - Re: Version(s) of JBoss Remoting compatible with EJB3?

2007-06-27 Thread wolfc
The latest EJB 3 release is in AS 4.2.0 GA. JBoss Remoting 2.2.x does NOT work 
with any previous releases.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057985#4057985

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057985
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Function 's:hasRole' not found

2007-06-27 Thread chrismalan
So far nothing helps.  The problem only arises when I perform an action from a 
xhtml page containing #{s:hasRole(... When I log in from another page and then 
request the offending page via the browser address field, everything is fine.  
The links are correctly rendered according to the role of the logged in user.  
But let me now do something sending data to the server from the page with 
#{s:hasRole(..., causing the page to be reloaded, and the function s:hasRole 
has disappeared.  Reloading the page with the browser reload button (or ctrl r) 
works fine.

Any idea on how to fix this?  

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057986#4057986

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057986
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - jbpm and exception handling

2007-06-27 Thread leezard
Hi,

What should I do to be able to use declarative (XML) exception handling 
together with pageflows?
I've got very simple pageflow where I have


  |start-page name=setRevokeDetails view-id=/setRevokeDetails.jspx 
no-conversation-view-id=/main.jspx
  |   redirect/
  |   transition name=cancel to=revokeCancelled/
  |   transition name=process to=checkRevokeResult
  | action 
expression=#{transactionRevoker.revokeTransaction}/
  |   /transition
  |/start-page
  | 
  | decision name=checkRevokeResult 
expression=#{transactionRevoker.forceRevoke}
  |   transition name=false to=revokeResult/
  |   transition name=true to=forceRevoke/
  |/decision
  | 
  | ...
  | 

My pages.xml exceptions section looks as follows:

  | exception
  | end-conversation/
  | redirect view-id=/generalError.jspx
  | messageUnexpected failure/message
  | /redirect
  | /exception
  | 
  | 
Now method called transactionRevoker.revokeTransaction() throws Exception. It's 
a method that calls external EJB service. I catch only one exception in this 
method, and when it throws RuntimeException I get very long stack trace and bad 
redirect message in browser.

Stack trace says that jPDL can't resolve #{transactionRevoker.forceRevoke}. And 
I don't know how to cope with exception in this case. I'd like to be able to 
redirect user to general error page without coding it every time I do something 
potentially exception-prone.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057992#4057992

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057992
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Problems with Jboss and Sun's 1.6 JDK

2007-06-27 Thread pufferfish
Please check this out.
http://thesmallpotato.blogspot.com/2007/06/jdk-16-jboss-420-ejb3-web-service-axis2.html

Using JDK6 and JBoss 4.2.0GA and it works for me...

Good luck guys

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057993#4057993

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057993
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Version(s) of JBoss Remoting compatible with EJB3?

2007-06-27 Thread javajedi
Thanks for the reply.  We're using JBoss 4.0.4.  Does this mean that we are 
stuck on EJB3 3.0-rc9-patch-1 and JBoss Remoting 1.4.x, unless we upgrade to 
JBoss 4.2.0?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057990#4057990

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057990
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-27 Thread trekker880
Ok.
Let me clear my requirement for this pageflow.
Here is somewhat i am trying to do.

  | public class Test{
  | 
  | public test() throws Exception{
  | 
  | 
  | PageFlow pageflow = PageFlow.Instance(); ---Start the pageflow here---
  | 
  | And using this pageflow object i want to extract the view id of the current 
page and the next page to it.
  | }
  | 
  | public static void main(String[] args){
  | Test test1= new Test();
  | test1.test();
  | }
  | 

this is the idea..Whatever the pageflow is defined in the 
pageflow-definition.xml , I am able to find out the current page,current view 
id and all the related info. in a java file so that the method in it is 
accessible to the other class...In short i want this java class as a utility to 
fit into my application.

Thanx,

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057996#4057996

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057996
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Problems with Jboss and Sun's 1.6 JDK

2007-06-27 Thread pufferfish
Please check this out.
http://thesmallpotato.blogspot.com/2007/06/jdk-16-jboss-420-ejb3-web-service-axis2.html

Using JDK6 and JBoss 4.2.0GA and it works for me...

Good luck guys

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057994#4057994

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057994
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: HelloWorldPortlet complications

2007-06-27 Thread durand
Server: JDK 1.5
Compiling computer: JDK 1.6

Going to try compiling with 1.5 as well.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057997#4057997

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057997
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-27 Thread KnisterPeter
I have no idea what your use case is and no idea how to you solve your problem, 
but it does not sound like a unit test to me.
If you want to create a unit test, extend your testclass from SeamTest which 
will boostrap an embedded container and the seam environment. Then do as I 
posted above and you have your pageflow running.

With just Pageflow.instance() you don't start any pageflow.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057998#4057998

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057998
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: MTOM + WS Security = problem

2007-06-27 Thread mr_d
Hello!

Thanks for your answers,

richard_opalka wrote : MTOM attachments do not need to be inlined. 

I agree, but if mtom is used and it is inlined, I don't see the point of using 
mtom: we can have the binary parameter inlined like the others. I thought that 
one of the advantages of mtom was to use xop which describes how to package 
binary data as an attachment.

@davideling
I have exactly the same config as you, same Jboss version and JbossWS version. 
I have also a method with a bean which contains a DataHandler (annoted). But no 
luck, I get always the same exception.
javax.xml.ws.soap.SOAPFaultException: Endpoint {http://foo.org/mtom}ServiceImpl 
does not contain operation meta data for: 
{http://www.w3.org/2001/04/xmlenc#}EncryptedData 

But this problem doesn't change the main problem: to use mtom + ws security 
with jbossws. I will take a look to the sources when I got time.

:oD.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058001#4058001

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058001
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-27 Thread Quessir
I did everything as in the Wiki. But there is nothing new to me. I tried to do 
that on other computer. It returns me

 JBossTools (2.0.0.200706241629-nightly) requires feature org.eclipse.jem.

I don't know why. All components is the same on both computers. Does anybody 
have the same problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058003#4058003

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058003
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - java.sql.SQLException: You cannot commit with autocommit set

2007-06-27 Thread gvreddy
Hi 

I got the following exception when i am trying to do commit using kodo 
persistencemanager class.

I specified autoCommit property to false in oracle-xa.xml file.
Any configuration is required to solve this issue.
Thanks in advance.

2007-05-14 18:49:04,630 DEBUG [kodo.Runtime] An exception occurred while ending 
the transaction.  This exception will be re-thrown.
kodo.util.FatalDataStoreException: You cannot commit with autocommit set!
NestedThrowables:
java.sql.SQLException: You cannot commit with autocommit set!
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at kodo.jdbc.runtime.JDBCStoreManager.commit(JDBCStoreManager.java:137)
at 
kodo.runtime.DelegatingStoreManager.commit(DelegatingStoreManager.java:100)
at 
kodo.runtime.PersistenceManagerImpl.endTransaction(PersistenceManagerImpl.java:1035)
at 
kodo.runtime.PersistenceManagerImpl.afterCompletion(PersistenceManagerImpl.java:842)
at 
org.jboss.tm.TransactionImpl.doAfterCompletion(TransactionImpl.java:1526)
at 
org.jboss.tm.TransactionImpl.completeTransaction(TransactionImpl.java:1198)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:377)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:361)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at 
org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy112.findEntryUserById(Unknown Source)
at 
com.db.dcs.model.settlements.jboss.security.LdapDBLoginModule.validatePassword(LdapDBLoginModule.java:223)
at 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
at 

[jboss-user] [JBossCache] - Re: Apparently losing data

2007-06-27 Thread uuderzo
anonymous wrote : So, you mean that calls to TreeCache.put(x,y); stop working? 
How do you know this? 

I don't mean that those calls stop working, but something starts going wrong. 

I try to explain better the flow of data in tree cache:

1. User logon = TreeCache.put( x, y ), where x is the user session ticket 
and y is the user session data.

2. Business logic needs user session data = TreeCache.get( x, y ), y is 
updated with last call time information. After that = TreeCache.put( x, y ). y 
is returned

3. Iterate step 2 for the entire life of a user session

4. When user logs off = TreeCache.remove( x )

This is a simplified flow but this is the way our system works. And it works 
well until something breaks and the step 2 starts returning NULL instead of 
user session data. I don't understand if the data is corrupted when putting 
into cache in step 1, or when re-putting in step 2 or because tree cache 
forgets the node and starts returning NULL.

The problem does not happen frequently (about once a month) so it's difficult 
for me to track the data path and understand what's happening.

What I know is that in 99,9% cases it works great and that if I can get an 
object from the cache and set a field of this object, it must be not null. 
After updating the field I re-put into the cache and cycle this.

Another thing that I know is that the system can work well for weeks but once 
the malfunction appears it's no more possible to use it. I mean that after the 
first malfunctioning session, forther new sessions get the same malfunction. 
Restarting the application server solves the problem, until it reappears in 
near future. So it lets me think about something going wrong into the cahe.

I just wish to know if my approach has something buggy or if there is a real 
possibility that the cache starts forgetting after something happened,  even 
without eviction policies installed.

Thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058002#4058002

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058002
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread KnisterPeter
I have found the following in the seam DEBUG logs:
[DEBUG] 10:19:34.211 core.Events - Processing 
event:org.jboss.seam.preRemoveVariable.entityId
  | [DEBUG] 10:19:34.211 seam.Component  - instantiating Seam 
component: org.jboss.seam.core.events
  | [DEBUG] 10:19:34.212 seam.Component  - initializing new 
instance of: org.jboss.seam.core.events
  | [DEBUG] 10:19:34.212 seam.Component  - done initializing: 
org.jboss.seam.core.events
  | [DEBUG] 10:19:34.213 seam.Component  - instantiating Seam 
component: org.jboss.seam.core.events
  | [DEBUG] 10:19:34.213 seam.Component  - initializing new 
instance of: org.jboss.seam.core.events
  | [DEBUG] 10:19:34.214 seam.Component  - done initializing: 
org.jboss.seam.core.events
  | [DEBUG] 10:19:34.214 core.Events - Processing 
event:org.jboss.seam.postRemoveVariable.entityId
  | 
Where can I find the code logging this statements?
I'll just want to find an entry point to debug my problem. Where and when are 
the page parameters set to the model?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058005#4058005

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058005
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: MTOM + WS Security = problem

2007-06-27 Thread richard_opalka
mr_d wrote : 
  | I agree, but if mtom is used and it is inlined, I don't see the point of 
using mtom: we can have the binary parameter inlined like the others. I thought 
that one of the advantages of mtom was to use xop which describes how to 
package binary data as an attachment.

@mr_d

Well MTOM can be inlined or not. If you're dealing with small attachments, 
such as  5k images or other binary data I don't see the problem if the 
MTOM attachments are inlined. If you're dealing with bigger attachments 
then I agree inlined MTOM attachmetns are not good for you. But it 
depends on the SOAP stack how it will deal with MTOM attachments.
   For example, some SOAP stacks are configured the following way:
 * if attachment size is lesser than some preconfigured size then MTOM 
attachment is inlined
 * if attachment size is greater than some preconfigured size then MTOM 
attachment is sent as MIME part.

Isn't this your problem?

Rio

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058006#4058006

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058006
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-27 Thread [EMAIL PROTECTED]
Don't use the Node object directly in JBC 1.x.  It was meant to be an internal 
data structure object that got leaked into the API.

The correct approach is to use TreeCache.getChildrenNames()

In 2.x, we fully support access to Nodes, but this is different.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058008#4058008

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058008
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi!

It seems like JBoss can't find your datasource. It also looks like you are 
using toplink, are you? The example bellow is for the normal JBoss EJB3 (on top 
of Hibernate). Anyway, the configuration shall still be the same (please 
correct me if I'm wrong) except some of the properties in persistence.xml.

So, you shall have a persistence.xml file packed with your ejb-jar-file. The 
file looks something like (the example is using MySQL-dialect. You shall 
probably use the Oracle dialect):

  | persistence xmlns=http://java.sun.com/xml/ns/persistence;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
  |  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  | version=1.0
  | persistence-unit name=my-ejbs
  | jta-data-source
  | !--
  | THIS NAME SHALL MAP AGAINST THE JNDI-NAME OF YOUR 
DATA SOURCE FILE
  | --
  | java:/service-fundorder-DS
  | /jta-data-source
  | properties
  | property name=show_sql value=true /
  | property name=dialect
  | value=org.hibernate.dialect.MySQLDialect /
  | /properties
  | /persistence-unit
  | /persistence
  | 

Then you must deploy a data-source-file that defines the connection to the 
database. The filename must end with -ds.xml, e.g. my-service.ds.xml This file 
looks something like (also MySQL). THere are plenty of such example files in 
the JBoss distro under docs/examples/jta:

  | ?xml version=1.0 encoding=UTF-8?
  | datasources
  | local-tx-datasource
  | 
  | !--
  | JNDI NAME OF DATA SOURCE - THIS NAME IS MAPPED IN 
PERSISTENCE.XML IN YOUR EAR FILE
  | --
  | jndi-namemy-service-DS/jndi-name
  | 
  | !--
  | Connect parameters
  | --
  | connection-url
  | jdbc:${jdbc.vendor}://${db.host}:${db.port}/${db.name}
  | /connection-url
  | user-name${db.username}/user-name
  | password${db.password}/password
  | driver-class${jdbc.driverclass}/driver-class
  | 
  | !--
  | Minimum and maximum poolsize
  | --
  | min-pool-size0/min-pool-size
  | max-pool-size5/max-pool-size
  | 
  | !--
  | No of minutes in idle state until connection is destroyed 
  | --
  | idle-timeout-minutes1/idle-timeout-minutes
  | 
  | !--
  | Class used to detect if connection is valid or not. Using 
MySQL, this
  | class shall only be used on drivers after 3.22.1 with ping 
support
  | --
  | valid-connection-checker-class-name
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker
  | /valid-connection-checker-class-name
  | 
  | !--
  | Class used when sorting exceptions
  | --
  | exception-sorter-class-name
  | org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | /exception-sorter-class-name
  | 
  | 
  | !--
  | corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional)
  | --
  | metadata
  | type-mappingmySQL/type-mapping
  | /metadata
  | /local-tx-datasource
  | /datasources
  | 

Kind regards
//Oskar

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058012#4058012

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058012
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - problem with 1.3.0 alpha

2007-06-27 Thread laksu
Hi,
To avoid another bug I have switched to 1.3.0alpha and my working application 
does not even deploy with the following stacktrace. Note that, I use Glassfish.


WebModule[/payroll-war]Exception sending context initialized event to listener 
instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.RuntimeException: Could not create Component: 
org.jboss.seam.core.manager
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:896)
  | at 
org.jboss.seam.init.Initialization.installComponents(Initialization.java:827)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:498)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
  | at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
  | at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
  | at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
  | at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
  | at 
com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1068)
  | at 
com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
  | at 
com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
  | at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
  | at 
com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
  | at 
com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
  | at 
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
  | at $Proxy1.invoke(Unknown Source)
  | at 
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
  | at 
com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
  | at 
com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
  | at 
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
  | at 
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  | Caused by: java.lang.IllegalArgumentException: no such setter method: 
org.jboss.seam.core.Manager.conversationIsLongRunningParameter
  | at 
org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:220)
  | at org.jboss.seam.Component.initInitializers(Component.java:417)
  | at org.jboss.seam.Component.init(Component.java:279)
  | at org.jboss.seam.Component.init(Component.java:210)
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:882)
  | at 
org.jboss.seam.init.Initialization.installComponents(Initialization.java:827)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:498)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
  | at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
  | at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
 

[jboss-user] [Beginners Corner] - foreach (= advanced for) in JSPS

2007-06-27 Thread MarcusDidiusFalco
Hallo!

I have tried to use foreach (= advanced for) in JSPs 

% for (Order order: orders.getOrders()) { %
  | trtd%= order.getItem() %/tdtd%= order.getPrice() %/tdtd%= 
order.getNumber() %/td/tr
  | % } %

This works fine with Tomcat 5.5.23, however when deploying the same war to 
JBoss 4.0.5 GA I get the following exception 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 19 in the jsp file: /test.jsp
Generated servlet error:
Syntax error, 'for each' statements are only available if source level is 5.0

An error occurred at line: 19 in the jsp file: /test.jsp
Generated servlet error:
Can only iterate over an array or an instance of java.lang.Iterable

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

I thought JBoss uses Tomcat 5.5 as a Servlet container. So why this difference?

Thanx,

Hans

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058014#4058014

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058014
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-27 Thread aditsu
 Don't use the Node object directly in JBC 1.x.

Ok, I guess I can use getChildrenNames(), but how can I get the data map of a 
node?
Anyway, I'm already looking at JBC 2, and I found a lot of nice improvements... 
maybe we'll switch to that. I'll adapt my code to it and see how it behaves.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058009#4058009

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058009
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: HelloWorldPortlet complications

2007-06-27 Thread durand
Compiling with 1.5 solved it. Thanks :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058018#4058018

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058018
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Sorry, now thing got messed up here. We take the examples once again. Look at 
the JNDI-names. These got messed in the previous post.

//Oskar

persistence.xml

  | persistence xmlns=http://java.sun.com/xml/ns/persistence;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
  |  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
  | version=1.0
  | persistence-unit name=my-ejbs
  | jta-data-source
  | !--
  | THIS NAME SHALL MAP AGAINST THE JNDI-NAME OF
  | YOUR DATA SOURCE FILE
  | --
  | java:/my-service-DS
  | /jta-data-source
  | properties
  | property name=show_sql value=true /
  | property name=dialect
  | value=org.hibernate.dialect.MySQLDialect /
  | /properties
  | /persistence-unit
  | /persistence
  | 

my-service-ds.xml

  | ?xml version=1.0 encoding=UTF-8?
  | datasources
  | local-tx-datasource
  | 
  | !--
  | JNDI NAME OF DATA SOURCE - 
  | THIS NAME IS MAPPED IN PERSISTENCE.XML IN YOUR EAR FILE
  | --
  | jndi-namemy-service-DS/jndi-name
  | 
  | !--
  | Connect parameters
  | --
  | connection-url
  | jdbc:${jdbc.vendor}://${db.host}:${db.port}/${db.name}
  | /connection-url
  | user-name${db.username}/user-name
  | password${db.password}/password
  | driver-class${jdbc.driverclass}/driver-class
  | 
  | !--
  | Minimum and maximum poolsize
  | --
  | min-pool-size0/min-pool-size
  | max-pool-size5/max-pool-size
  | 
  | !--
  | No of minutes in idle state until connection is destroyed 
  | --
  | idle-timeout-minutes1/idle-timeout-minutes
  | 
  | !--
  | Class used to detect if connection is valid or not. Using 
MySQL, this
  | class shall only be used on drivers after 3.22.1 with ping 
support
  | --
  | valid-connection-checker-class-name
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker
  | /valid-connection-checker-class-name
  | 
  | !--
  | Class used when sorting exceptions
  | --
  | exception-sorter-class-name
  | org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | /exception-sorter-class-name
  | 
  | 
  | !--
  | corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional)
  | --
  | metadata
  | type-mappingmySQL/type-mapping
  | /metadata
  | /local-tx-datasource
  | /datasources
  | 
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058015#4058015

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058015
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Adding registration functionality to jbpm system

2007-06-27 Thread naseem.k
Hi,

I am using JBoss jBPM 3.2.GA where I have to add registration functionality, so 
that user can register to my jBPM system. 

For authentication, its using jboss security LoginDatabaseModule where it 
authenticates user by j_security_check. Now I want to bypass the login screen 
for register.jsf page.

Can I bypass the login page for user registration so that user can directly see 
the register page and register to jBPM? Currently what?s happening is when I 
access the register.jsf page, it prompts for login.

Rgds,


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058020#4058020

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058020
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - deploy a application use jsf(sun) under the jboss portal 2.6

2007-06-27 Thread rongbino
hi
i have program a application used jsf baseed on the sun's
when i deploy the war to the jboss protal, it's error like this :

16:06:25,760 ERROR [STDERR] 2007-6-27 16:06:25 com.sun.faces.config.ConfigureLis
tener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for co
ntext 'psv'
16:06:26,354 ERROR [STDERR] 2007-6-27 16:06:26 com.sun.faces.spi.InjectionProvid
erFactory createInstance
WARN: JSF1033: Resource injection is DISABLED.
16:06:26,901 ERROR [STDERR] 2007-6-27 16:06:26 com.sun.faces.config.ConfigureLis
tener configure
ERROR: can't instance the class component-family: javax.faces.Command 
renderer-type: org.apac
he.myfaces.Button renderer-class: org.apache.myfaces.renderkit.html.ext.HtmlButt
onRenderer?
16:06:26,901 ERROR [STDERR] java.lang.ClassCastException: org.apache.myfaces.ren

i search the error from internet, i know jboss portal use jsf too, but it's 
base on the myface.

how to resovle the problem???  please help me !!!
   rongbin from 
china

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058022#4058022

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058022
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: problem with 1.3.0 alpha

2007-06-27 Thread thejavafreak
Has it worked on previous Seam version?

Show us your component.xml and other necessary source code here before claiming 
that it is a bug

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058019#4058019

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058019
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread KnisterPeter
After looking throught the code in seam related to setting page parameters, I'm 
sure my problem is related to this line in pages.xml:
param name=entityId value=#{accountHome.id}
  | converter=java.lang.Integer /
The converter in JSF is not java.lang.Integer, but javax.faces.Integer!
The problem why I not noticed this is that Seam silently fail in creating the 
converter (without logging the error) and removing the parameter!!!

It would be best if there is a logentry (maybe only at debug level) if the 
converter creation fails! :(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058024#4058024

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058024
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: CMS and HTML tables?

2007-06-27 Thread alexandros
Yes, i mean Rich Text Editor. I figured out what the problem was. I had to add 
the use of table plugin to tinyMCE.init function at create.jsp and edit.jsp 
files, in order to make the table functionality available. 

If you want to add a plugin, just go to TinyMCE webpage and find the 
documentation of each plugin. There, you can find instrunctions how to do it. 
It's very simple.

Regards,
Alex 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058027#4058027

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058027
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Pbm with missing contexts

2007-06-27 Thread guib
Hi,

First of all, I'm using Jboss Seam 1.2.1.
I've made an application wich uses a Servlet to catch multipart request wich 
contains voice messages. My Servlet extends ResourceServlet and is declared in 
the web.xml file.
But,  in this servlet I can't access to contexts : there are not active. I've 
added this in components.xml file : 

anonymous wrote : web:context-filter url-pattern=/deposit/postRelease.record 
/

and this in web.xml :

anonymous wrote :   
  | servlet-nameRecording Servlet/servlet-name
  | servlet-class
  | 
com.eservglobal.mailis.vxml.deposit.MailisRecordingServlet
  | /servlet-class
  | load-on-startup1/load-on-startup
  | 
  | 
  | servlet-mapping
  | servlet-nameRecording Servlet/servlet-name
  | url-pattern/deposit/postRelease.record/url-pattern
  | /servlet-mapping

In this case its works fine.

But, at the end of my servlet doPost method I want to forward to another page 
wich needs context too. So I did :

anonymous wrote :   RequestDispatcher dispatcher = 
getServletContext().getRequestDispatcher(/deposit/postRelease.seam);
  |   dispatcher.forward(req, res);

Is it the right method to use ?

Why my context is not active in this new page ?

How can I fix this problem.

Thx to all.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058029#4058029

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058029
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread KnisterPeter
For reference:
The code in Seam is in org.jboss.seam.pages.Param#getValueFromRequest() around 
lines 133 to 142

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058025#4058025

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: problem with 1.3.0 alpha

2007-06-27 Thread [EMAIL PROTECTED]
Caused by: java.lang.IllegalArgumentException: no such setter method: 
org.jboss.seam.core.Manager.co
  | nversationIsLongRunningParameter

This parameter has been removed from Seam, update your components.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058030#4058030

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058030
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread KnisterPeter
Also I should have used converterId instead of converter attribute.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058031#4058031

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058031
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Dynamic Table with Seam

2007-06-27 Thread [EMAIL PROTECTED]
c:forEach items=#{foo.columns} var=column
  |h:column
  |#{column.foo}
  | ...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058033#4058033

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058033
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How would you create a reusable yes/no|chooser page?

2007-06-27 Thread [EMAIL PROTECTED]
You could also wrap this up in a facelets source tag for reusability.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058034#4058034

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread [EMAIL PROTECTED]
Don't set the min property.  If a field is null then it isn't the minimum 
length ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058036#4058036

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Decorating with a fileUpload tag

2007-06-27 Thread [EMAIL PROTECTED]
Most id parameters in JSF can't take EL.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058032#4058032

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Web service interface stable in 1.3.0 ALPHA?

2007-06-27 Thread avbentem
Not trying to criticize the good work that is being done with Seam, but just 
curious as ever: can anyone comment on the choice to add a conversationId 
element in the Soap header? This is documented as:
anonymous wrote : So how are conversations propagated between web service 
requests?  Seam uses a SOAP header element present in both the SOAP request and 
response messages to carry the conversation ID from the consumer to the 
service, and back again.
The downside is:
anonymous wrote : Unfortunately, because web services may be consumed by a 
variety of web service clients written in a variety of languages, it is up to 
the developer to implement conversation ID propagation between individual web 
services that are intended to be used within the scope of a single conversation.

The Sun JAX-WS reference implementation supports statefull web services by 
using a different endpoint reference for each client. The good thing about this 
is that, for example, .NET 3.0 clients seem to support this out of the box as 
well.

It seems JBossWS 2.1 supports this through WS-Adressing as well; for example 
JBoss' Heiko Braun wrote: WS-Addressing is the right way to build 
conversational web services.

Someone's question in the WS forum about future support for 
StatefulWebServiceManager has not yet been answered: JBossWS JAX-WS question 
using stateful. I cannot find any reference to this in JIRA either.

Thanks,
Arjan.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058028#4058028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread [EMAIL PROTECTED]
Hibernate validators are really easy to write - you could write your own 
@length that counts a null as a valid value.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058037#4058037

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058037
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - ant or java deployment process definition

2007-06-27 Thread lethrech
hi,
i want to deploy a jbpm process definition created by jbpm designer using ant 
or java, 
some one can help me to do that

jbpm 3.1.3 
jboss4.0.4GA
OS:XP professional 2002 SP2
oracle 10.2.0.3

best regards

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058043#4058043

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058043
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread [EMAIL PROTECTED]
Seam allows you to use the java.lang.XXX for converter id (extension to JSF).  
The reason for no error was not using the correct attribute, if a converter 
can't be found, then an exception will be thrown.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058039#4058039

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058039
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why my condtion doesn't get evaluated?

2007-06-27 Thread kukeltje
strange... these two bugs are ONLY (as in the report) when deployed against a 
previous version. That is not the case here as you reported. That is why I did 
not mention these to you. So probably these two reports are incomplete. 

Thanks for letting me/us know

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058055#4058055

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058055
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - urgent

2007-06-27 Thread djphatmix
i have 2 nodes forming a cluster.when one fails then failover tries to run the 
application on the other instance bt im getting a error saying Please specify 
an application name as an environmental entry. can anyone help on this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058052#4058052

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058052
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Adding registration functionality to jbpm system

2007-06-27 Thread kukeltje
for these things you have to develop your own webapp

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058053#4058053

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: problem with 1.3.0 alpha

2007-06-27 Thread laksu
Yes it is working well with 1.2.1 GA
Here is my components.xml:

?xml version=1.0 encoding=UTF-8?
  | 
  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:security=http://jboss.com/products/seam/security;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.1.xsd 
  | http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.1.xsd
  | http://jboss.com/products/seam/security 
http://jboss.com/products/seam/security-1.1.xsd
  | 
  | core:init jndi-pattern=java:comp/env/gop-ejb/#{ejbName}/local 
debug=true/
  | 
  | core:manager conversation-timeout=12 
  |   concurrent-request-timeout=500
  |   conversation-id-parameter=cid
  |   conversation-is-long-running-parameter=clr/
  | 
  | core:transactionListener/
  | !--core:ejb installed=@embeddedEjb@/--
  | security:identity authenticate-method=#{otantikamator.otantikmi}/
  | 
  | event type=org.jboss.seam.notLoggedIn
  | action expression=#{redirect.captureCurrentView}/
  | /event
  | event type=org.jboss.seam.postAuthenticate
  | action expression=#{redirect.returnToCapturedView}/
  | /event
  | 
  | !--component name=org.jboss.seam.ui.entityConverter
  | property name=entityManager#{isteklerAction}/property
  | /component--
  | 
  | component class=org.jboss.seam.web.MultipartFilter
  | property name=createTempFilestrue/property
  | property name=maxRequestSize100/property
  | /component
  | 
  | event type=isteklerRefresh
  | action expression=#{isteklerAra.refresh}/
  | /event
  | 
  | /components
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058056#4058056

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058056
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: MTOM + WS Security = problem

2007-06-27 Thread mr_d
richard_opalka wrote : 
  |  * if attachment size is lesser than some preconfigured size  then MTOM 
attachment is inlined
  | * if attachment size is greater than some preconfigured size then MTOM 
attachment is sent as MIME part. 
  | 

Thank you for this explanation,

Yes, Im working with larger file size such as 1-2MB. So, my problem is to use 
correctly mtom + ws security with jbossws.

:oD.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058059#4058059

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058059
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process upload with tomahawk

2007-06-27 Thread ricardomarques
Hi 

i'm try to upload a process to the jbpm engine, using file upload from tomahawk 
 library, but i having this exception:


  | 
  | Caused by: org.jbpm.JbpmException: process definition does not have a name
  | at 
org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:80)
  | at 
org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
  | at 
com.pep.workflow.server.command.DeployProcessCommand.execute(DeployProcessCommand.java:30)
  | at 
com.pep.workflow.server.beans.command.CommandService.execute(CommandService.java:64)
  | ... 55 more
  | 
  | 
  | 

I'm using this code to the deployment:


  | public Object execute(JbpmContext jbpmContext) throws Exception {
  | 
  | if (this.inputStream == null)
  | throw new NotSetWorkflowException(required attribute not 
set!);
  | 
  | ProcessDefinition pf = new ProcessDefinition();
  | pf.parseParZipInputStream(this.inputStream);
  | 
  | jbpmContext.deployProcessDefinition(pf);
  | 
  | return pf;
  | }
  | 
  | ...
  | 
  | InputStream zip = this.uploadedFile.getInputStream();
  | 
  | Command cmd = new DeployProcessCommand(zip);
  | Object result = execute(cmd);
  | 
  | ...
  | 

When I run the debugger I get the process definition without the properties 
set, after the parsing. 

Any idea?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058061#4058061

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-27 Thread [EMAIL PROTECTED]
Eclipse 3.3 requires JDK 5 hence the (Unsupported major.minor version 49.0) 
message from the jdk not being able to load java5 compiled classes.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058063#4058063

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: JBoss Portal Server start up problem

2007-06-27 Thread selvarevathi
hi thomas,

I have downloaded  JBOSS 4.0.4 GA and JBOSS Portal 2.4
1) i have extracted the jboss-portal.sar
2) in that folder  there is a portal-wsrp.sar.
if i remove that portal-wsrp.sar folder during the server start up its not 
showing any error
if i dont remove that file its showing this below error during server startup

plz assist me 


14:57:02,346 ERROR [MainDeployer] Could not create deployment: 
file:/D:/jboss4.0.4/server/default/tmp/deploy/portal-wsrp.war
org.jboss.ws.metadata.wsdl.WSDLException: WSDLException (at 
/wsdl:definitions/import/wsdl:definitions/import/wsdl:definitions/wsdl:types/schema/schema):
 faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced 
at 'http://www.w3.org/2001/xml.xsd', relative to 
'file:/D:/jboss4.0.4/server/default/tmp/deploy/portal-wsrp-exp.war/WEB-INF/wsdl/wsrp_v1_types.xsd'.:
 Cannot access imported wsdl [http://www.w3.org/2001/xml.xsd], Server returned 
HTTP response code: 407 for URL: http://www.w3.org/2001/xml.xsd: 
java.lang.RuntimeException: Cannot access imported wsdl 
[http://www.w3.org/2001/xml.xsd], Server returned HTTP response code: 407 for 
URL: http://www.w3.org/2001/xml.xsd
at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory$WSDLLocatorImpl.getImportInputSource(WSDLDefinitionsFactory.java:310)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:740)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:620)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:583)
at 
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:302)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:450)
at 
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:294)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:450)
at 
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:294)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2125)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2150)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:144)
at 
org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
at 
org.jboss.ws.metadata.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:111)
at 
org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(WebServiceDeployerJSE.java:189)
at 
org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:103)
at 
org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:66)
at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy93.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  

[jboss-user] [Beginners Corner] - jboss4.0.5GA

2007-06-27 Thread trekker880
hi i am using the jboss4.0.5GA with eclipse
but when i start up the server i am getting the error


  | Source not found for Properties$LineReader.readLine() line: not available 
[local variables unavailable]
  | 
  | 
  | could you solve out the issue

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058070#4058070

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread ashusri000
Hi oskar.carlstedt,

  First of all thanks a lot for your reply .
Yes , I am using toplink here and I have already got the clue 
for ds.xml file but I want to where I should be putting this ds.xml file :
1.Should I pack it in the ear file along with the persistence.xml file 
 
  OR
2. I should put it in the deploy directory directly , i.e. outside the ear file 
.


  Expecting a relief soon from you .


Regards

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058062#4058062

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Jboss 4.2.0 and SQL Server

2007-06-27 Thread sashaxiv
i am running a ejb3 aplication on jboss 4.2.0. It worked fine, but i've added
new entities unreleated with the old ones and it raises next exception.

Can anyone help me?

11:58:35,632 WARN  [JDBCExceptionReporter] SQL Error: 208, SQLState: 42S02
11:58:35,632 ERROR [JDBCExceptionReporter] [Microsoft][SQLServer 2000 Driver 
for JDBC][SQLServer]El nombre de objeto 'usuario_concesion' no es válido.
11:58:35,632 WARN  [JDBCExceptionReporter] SQL Error: 16945, SQLState: HY000
11:58:35,632 ERROR [JDBCExceptionReporter] [Microsoft][SQLServer 2000 Driver 
for JDBC][SQLServer]El cursor no ha sido declarado.
12:01:41,798 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id 
-3f57df8d:759:4682264b:cf invoked while multiple threads active within it.
12:01:41,798 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - 
atomic action -3f57df8d:759:4682264b:cf aborting with 1 threads active!
12:45:44,181 ERROR [LazyInitializationException] failed to lazily initialize a 
collection of role: 
com.satdatatelecom.satdataweb.model.usuario.ejb.UsuarioEJB.concesiones, no 
session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: 
com.satdatatelecom.satdataweb.model.usuario.ejb.UsuarioEJB.concesiones, no 
session or session was closed
at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
at 
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at 
org.hibernate.collection.PersistentBag.toString(PersistentBag.java:483)
at 
com.satdatatelecom.satdataweb.model.usuariofachada.ejb.actions.finders.FindUsuarioAction.execute(FindUsuarioAction.java:31)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058075#4058075

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058075

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - 1.3.0 messaging client

2007-06-27 Thread aslak
There seem to be a dependency issue with the jboss messaging client lib in 
1.3.0.

Running a JMS client with the following dependencies:

/opt/jboss-4.2.0.GA/client/javassist.jar
/opt/jboss-4.2.0.GA/client/jbossall-client.jar
/opt/jboss-4.2.0.GA/client/log4j.jar
/opt/jboss-4.2.0.GA/client/trove.jar
/opt/jboss-4.2.0.GA/client/jboss-messaging-client.jar


results in:

Exception in thread main java.lang.NoClassDefFoundError: 
org/jboss/aop/pointcut/PointcutStats
at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at 
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at 
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
at java.lang.reflect.Field.getLong(Field.java:528)
at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at 
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:392)


Adding this to the classpath and it all works:
/opt/jboss-4.2.0.GA/server/messaging/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar


The client lib shouldn't have to depend directly on a server deployed lib..

-aslak-

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058076#4058076

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - CommandLink in DataTable: Session vs Conversation scope

2007-06-27 Thread thatrichard
Here is a bean and jsf form that implement a simple search.  The emboldened 
commandLink ought to be invoking the bean's select method, which it does.

However, this only works when I include the emboldened Scope annotation.  
Without it, the scope will be Conversation and the conversation will be 
promoted to a long-running conversation by the find method.

I'm stumped as to why this won't work in conversation mode.  More perplexingly 
(or perhaps reveallingly) the commandButton at the bottom of the form works 
even though it has the same action.  The only difference that I can see is that 
it is outside of the dataTable.  

I have come posts such as this one: 
http://forum.java.sun.com/thread.jspa?threadID=549675start=0 , which suggests 
that others have encountered this behaviour.

Clearly there is something about conversations that I don't understand.

Can anyone help?

Thanks

Richard


  | @Name(partyFinder)
  | @Stateful
  | @Scope(ScopeType.SESSION)
  | public class PartyFinderBean implements PartyFinder {
  | 
  | @DataModel  
  | private ListParty matchingParties;
  | 
  | @DataModelSelection
  | private Party selectedParty;
  | 
  | @In
  | private Session session;
  | 
  | @Begin(flushMode=FlushModeType.MANUAL, join=true)
  | public String find() {
  | Party example = new Person();
  | //do the search
  | matchingParties = ...
  | return null;
  | 
  | }
  | 
  | public String select() {
  | log.info(SELECT INVOKED);
  | return /forms/party/person/identity;
  | }
  | 
  | @Remove @Destroy
  | public void destroy() { }
  | 
  | }
  | 
  | 


  |h:form
  | h:dataTable value=#{matchingParties} var=selectedParty
  |h:column
  |f:facet name=header
  |  h:outputText value=Last Name/
  |/f:facet
  |h:commandLink value=#{selectedParty.lastName} 
action=#{partyFinder.select}/
  | /h:column
  | /h:dataTable
  | div class=action-bar
  |h:commandButton id=newperson value=Create New Person 
action=#{personEditor.enterIdentity} /
  |h:commandButton id=test value=Test Select 
action=#{partyFinder.select} /
  | /div
  |   /h:form
  | [/url]

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058077#4058077

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058077
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Maven2

2007-06-27 Thread [EMAIL PROTECTED]
We are going to look at this post releasing Seam 2.0

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058078#4058078

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread ashusri000
TO further add to the things I had already put the ds.xml file in the deploy 
directory but it when I go to access the entity it throws up this error :

Internal Exception: javax.naming.InvalidNameException: Not a compound name: 
my-ejb-test
16:05:48,312 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:220)
16:05:48,312 ERROR [STDERR] at 
oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.


Moreover in deploying this ear it throws this warning :

16:10:13,921 INFO  [STDOUT] [TopLink Warning]: 2007.06.27 
04:10:13.906--java.lang.NullPointerException: null was thrown on attempt of 
PersistenceLoadProcessor to load class src.FirstSessionBean. The class is 
ignored.
16:10:13,921 INFO  [STDOUT] [TopLink Warning]: 2007.06.27 
04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of 
PersistenceLoadProcessor to load class com.hughes.testEjb.TestClient. The class 
is ignored.
16:10:13,921 INFO  [STDOUT] [TopLink Warning]: 2007.06.27 
04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of 
PersistenceLoadProcessor to load class src.Employee. The class is ignored.
16:10:13,921 INFO  [STDOUT] [TopLink Warning]: 2007.06.27 
04:10:13.921--java.lang.NullPointerException: null was thrown on attempt of 
PersistenceLoadProcessor to load class src.FirstSession. The class is ignored.



My ds.xml is :

?xml version=1.0 encoding=UTF-8?

!-- = --
!--   --
!--  JBoss Server Configuration   --
!--   --
!-- = --

!-- $Id: oracle-xa-ds.xml,v 1.13 2004/09/15 14:37:40 loubyansky Exp $ --

!-- = --
!-- ATTENTION:  DO NOT FORGET TO SET Pad=true IN transaction-service.xml  --
!-- = --


  local-tx-datasource
jndi-namemy-ejb-test/jndi-name
connection-urljdbc:oracle:thin:@127.0.0.1:1521:XE/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-namesystem/user-name
ashu

exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
/exception-sorter-class-name

   type-mappingOracle9i/type-mapping

  /local-tx-datasource


My persistent.xml is :

?xml version=1.0 encoding=UTF-8?
persistence xmlns=http://java.sun.com/xml/ns/persistence; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0 
xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
persistence-unit name=testApp transaction-type=JTA
 oracle.toplink.essentials.PersistenceProvider
jta-data-sourcejava:/my-ejb-test/jta-data-source
 
 
/persistence-unit






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058071#4058071

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Restrict file upload size individually

2007-06-27 Thread [EMAIL PROTECTED]
s:fileUpload ... fileSize=#{foo.fixeSize} /

Then check the fileSize in your action method.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058085#4058085

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 1.3.0 messaging client

2007-06-27 Thread sergeypk
See this thread: http://www.jboss.com/index.html?module=bbop=viewtopict=110947

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058079#4058079

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058079
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: not able to start Jboss 4.0.2

2007-06-27 Thread Malert
Hi,
you might be having jboss-j2ee.jar in your classpath, remove the jar form the 
classpath it will work fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058087#4058087

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - JBoss - HTTP (JBoss behind Router)

2007-06-27 Thread agouzias
I have a problem in testing remote method calls via http using JBOSS 4.2.0.GA 
application server.

I want to call EJB3 methods via HTTP ONLY (I have a firewall problem) 

I followed the configurations described on JBoss wiki at 

1.http://wiki.jboss.org/wiki/Wiki.jsp?page=Accessing_EJB3s_over_HTTP_HTTPS
2.http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIoverHTTP 


Everything works fine if my clients are in the same LAN as my JBoss Server.

But the real scenario is that the JBoss Server is behind a router/firewall, so 
the clients don't have direct access to the JBoss Server. 
(Please see the diagram below) 

   
JBoss Server(Lan IP)--Router(Router IP)---INTERNET-- Client()


The router is configured to forward TCP/UDP (8080) to the JBoss Server.
My problem is that the client tries to connect to the JBoss LAN IP and  not 
to Router IP.

I suppose that the JBoss server expose the internal lan ip to the client. 
Where can i configure the 'client connect port' parameter so the client should 
try to connect to the router ip and not the internal lan ip of my jboss server?

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058083#4058083

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058083
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 1.3.0 messaging client

2007-06-27 Thread thomasra
Hm.

Although it might be considered a technically wrong interpretation, I would 
still classify the 1.1 specification's JMS is compatible with JDK 1.1.x as a 
hint that the client stack should not only run on 1.4, but all the way back to 
1.1.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058088#4058088

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058088
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread KnisterPeter
For sure the attribute was the worst thing, but as you can see here:
   public Object getValueFromModel(FacesContext facesContext)
  |{
  |   Object value = getValueExpression().getValue();
  |   if (value==null)
  |   {
  |  return null;
  |   }
  |   else
  |   {
  |  Converter converter = null;
  |  try
  |  {
  | converter = getConverter();
  |  }
  |  catch (RuntimeException re)
  |  {
  | //YUCK! due to bad JSF/MyFaces error handling
  | return null;
  |  }
  | 
  |  return converter==null ?
  |value :
  |converter.getAsString( facesContext, 
facesContext.getViewRoot(), value );
  |   }
  |}
  | 
Any (runtime) exception thrown by the getConverter() call will be dropped 
silently which (I think) is bad.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058089#4058089

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058089
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Validate fileUpload

2007-06-27 Thread mustaghattack
Just wondering would it be possible to validate (using the seam validation 
mecanism) a file.
I would like to upload an image but the accept attribute of the fileUpload 
component is neglected by the browser. So I wrote an Image validator and I 
would like to use it with s:validate. Problem fileUpload is not a 
EditableValueHolder. Thus I have to manually validate it (using ClassValidator) 
...

Thanks,
Bruno

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058092#4058092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 1.3.0 messaging client

2007-06-27 Thread timfox
Read the user guide.

It is absolutely explicit about what jars you need on the client side.

http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.3.0.GA/html/installation.html#inst.remoteclient

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058080#4058080

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058080
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Restrict file upload size individually

2007-06-27 Thread codest
Hi there,

is there a possibility to check the size of a file when uploading with 
s:fileUpload? I know about the configuration directive maxRequestSize, but I 
have different limits in an application, depending on which files I want to 
upload (e.g. a foto vs. a pdf document).

So how can I check the size of an uploaded file to reject it if necessary?

Thanks in advance,
regards,
Jörg

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058084#4058084

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058084

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread pettersonfp
Hi Peter,

Thanks, I´ll do that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058095#4058095

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058095

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 1.3.0 messaging client

2007-06-27 Thread thomasra
Grr. Wrong forum.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058090#4058090

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: problem with 1.3.0 alpha

2007-06-27 Thread laksu
ok, upon removing conversation-is-long-running-parameter=clr line, it no 
longer throws that exception. Now hitting something else, I will look into. 
Thank you very much.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058091#4058091

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058091
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Restrict file upload size individually

2007-06-27 Thread codest
Thank you very much, Pete.

Is this missing in the docs? I can't find it there (I'm using version 1.2.1.GA).

Regards,
Jörg

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058096#4058096

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058096

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can a Stateless bean make a call to an entity bean to pe

2007-06-27 Thread oskar.carlstedt
Hi!

The datasource file has its own deployment, so this file shall be put directly 
in the deploy folder. When doing this you'll see JBoss deploying the ds file. 
After the deloyment (takes a second or two) you can find the deployed 
datasource in the jmx-console (http://localhost:8080/jmx-console).

In the jmx-console you shall be able to find a local transaction source, a 
connection pool etc. All these are are named from jndi-name in your ds.xml-file.

The persitence.xml file shall be bundled in the classpath of the jar file 
containing your ejbs.

The error you get must, as far as I can see, be due to an incorrect deployment 
of the ds-file. What if you only deploy the ds-file? Do get any errors? Can you 
see the deployed datasource in the jmx console?

Best
//Oskar




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058103#4058103

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-27 Thread de54hsa
It works now, thank you for the help.
It looks like that if there is a Java 1.4 version is on the system it has to be 
deinstalled. Even with JAVA_HOME on 5. and 6 it produced the mentioned 
behaviour. Only after deleting 1.4 from the machine it worked.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058105#4058105

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-27 Thread trekker880
OK.
You had put a comment on the pageflow-defintion.xml as it's not legal.
I am using start-page  to start my pageflow. So where i need to put the start 
node. I am starting my pageflow using the page rather than the start-state.


  |start-page name=page2 view-id=/page2.jspx 
  |   transition name=yes to=page3   
  |   /transition
  |  
  |  transition  name=back  to=start/transition
  |/start-page  
  | 

Also there is one concern.
As i am moving from the page2 to page 3. Say the conversation id it shows is 1 
but when it is on page3 the conversation-id changed to 2 and it remains the 
same for the subsequent flow. 
If i am on a same pageflow the conversation id should remain the same for 
back-forth flow navigation.But it gets changed when it moves from page2 to 
page3.


  | pageflow-definition xmlns=http://jboss.com/products/seam/pageflow;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/pageflow 
http://jboss.com/products/seam/pageflow-1.2.xsd;
  | name=pageflow1
  |
  |start-page name=page2 view-id=/page2.jspx 
  |   transition name=yes to=page3   
  |   /transition
  |  
  |  transition  name=back  to=start/transition
  |/start-page  
  |
  |page name=page3 view-id=/page3.jspx back=enabled  
  |   redirect/   
  |   transition name=back to=page2/transition  
  |   transition   name=yes to=page4/
  |/page
  |
  |  page name=page4 view-id=/page4.jspx back=enabled
  |   redirect/   
  |   transition to=page5  name=yes/transition
  |   transition  name=back to=page3/transition   
  |/page
  | page name=page5 view-id=/page5.jspx back=enabled
  |   redirect/   
  |   transition to=start  name=yes/transition
  |   transition  name=back to=page4/transition   
  |/page
  |
  |page view-id=/login.jspx name=start 
  |/page
  |
  | /pageflow-definition
  | 

Also there are method in the Jbpm class in the seam. 


  | getPageflowDefinitionFromResource(String resourceName) 
  | getPageflowDefinitionFromXml(String pageflowDefinition) 
  | getPageflowProcessDefinition(String pageflowName) 
  | getProcessDefinitionFromResource(String resourceName) 
  | 

How to get the pageflow definition.xml using these methods. I tried these 
methods but in vain. May be i m following the wrong path. Do you have any idea?

Can you post your bean where you used the @Begin annotated method to start the 
pageflow ?

Thanx

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058106#4058106

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-27 Thread [EMAIL PROTECTED]
Can you file a JIRA issue for this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058114#4058114

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   4   >