[jboss-user] [JBoss/Spring Integration] - Using Spring to integrate POJOs as MBeans in JBoss

2007-08-04 Thread dima.frid
   Hi,
I am trying to use Spring to eliminate the need to use SAR XML method 
descriptors for MBeans (like the following:


  | http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd";>
  | 
  | Some Services
  | 
  | 
  | 
  | 
  | 
  | package a.b.AServicesImpl
  | 
  | 
  | Does something
  | doSomething
  | 
  | name
  | name
  | java.lang.String
  | 
  | 
  |  ...),

and use annotations instead.

So I have a POJO implementing the logic, and the following XML:


  | http://www.springframework.org/dtd/spring-beans-2.0.dtd";>
  | 
  | 
  | 
  | 

I assume that JBoss successfully loads the MBean judging by the following log 
fragment:

2007-08-02 19:21:31,656 [ScannerThread] (XmlBeanDefinitionReader.java:347) INFO 
 - Loading XML bean definitions from URL 
[file:/.../EJBContainer/server/aCong/tmp/deploy/tmp28215jboss-bean-spring.xml]
2007-08-02 19:21:31,671 [ScannerThread] (AbstractBeanFactoryLoader.java:102) 
INFO  - Bean factory [jboss-bean-spring] binded to local JNDI.
2007-08-02 19:21:31,671 [ScannerThread] (SpringDeployer.java:134) INFO  - 
Deployed Spring: file:/.../AppServer/mbeans/jboss-bean-spring.xml

But I do not see this bean in JBoss JMX management console.

So I guess that either my code isn't annotated properly, or something more 
profoundly wrong.

Please, advise (an example would be a great help).

Thanks a lot in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070930#4070930

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070930
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: In attribute requires non-null value: authenticator.enti

2007-08-04 Thread mmakundi
This thread actually solved my problem, indirectly:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=112375

The key is:
One other potential trap is that I have just upgraded from Seam 1.2.1 to 2.0b1 
and "managed-persistence-context" has been moved from namespace core to 
persistence. If this is the case, then don't forget to add the persistence 
namespace to your XML namespace config:

xmlns:persistence="http://jboss.com/products/seam/persistence"; 

I am actually using Seam 1.2 and thus I must revert to core tag. And it works!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070929#4070929

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070929
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Bug in org.jboss.seam.core.Contexts.java

2007-08-04 Thread matt.drees
Hey Gavin, I'm pretty sure this isn't right.


  | @Scope(ScopeType.APPLICATION)
  | public class Contexts 
  | {
  | 
  |@Factory("org.jboss.seam.core.eventContext")
  |public Context getEventContext() 
  |{
  |   return org.jboss.seam.contexts.Contexts.getEventContext();
  |}
  | ...etc...
  | }
  | 

I think you meant

  | @Scope(ScopeType.APPLICATION)
  | public class Contexts 
  | {
  | 
  |@Factory(value = "org.jboss.seam.core.eventContext", autoCreate = true, 
scope = ScopeType.STATELESS)
  |public Context getEventContext() 
  |{
  |   return org.jboss.seam.contexts.Contexts.getEventContext();
  |}
  | ...etc...
  | }
  | 

I'm pretty sure nobody wants their session stored in the application scope :-)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070928#4070928

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070928
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - In attribute requires non-null value: authenticator.entityMa

2007-08-04 Thread mmakundi
Hi!

Has anyone found a solution to the problem described here: 
http://www.mail-archive.com/jboss-user@lists.jboss.org/msg67427.html

I am using MyFaces with Seam and similar configuration, but I do not even get 
the following initialization log line:
16:53:36,554 INFO  [Component] Component: entityManager, scope: CONVERSATION, 
type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext

Am I missing something, or should it not work with MyFaces?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070927#4070927

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070927
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Managing JBoss programmatically?

2007-08-04 Thread BogusException
PeterJ,

Thanks for writing, as always!

anonymous wrote : You are attempting to write a stand-alone Java application 
(one not deployed to JBoss AS) that you can use to deploy applications.

Not quite. I'm just looking for ideas as how to do this from within a deployed 
app on the same server.

I think it is becoming clear that having a local application running as the 
JBoss user and accessed via JCA would be overly complex and perhaps even 
impractical.

What might hold promise is JMX, as you suggest, but through a program like 
Maven. According to http://mojo.codehaus.org/jboss-maven-plugin/, 
anonymous wrote : jboss:deploy  Deploys a directory or file to JBoss via JMX, 
which would seem to fit the bill. Maven has 2 parts, though.. one for JBoss, 
and the stand-alone portion (command line exes). 

Anyway, the objective is the same. I'd like to have pre-compiled (EJB3) classes 
jar'd, sar'd, etc. with any variables needed passed to them (via env, etc.) and 
copied to the ./deploy dir. Simply put, that has been the objective all along.

The rub seems to be getting a deployed app to interact with files outside the 
container. So to make a simple list of one possible action (we haven't 
discussed the logically inevitable undeploy) would be:

1. An EJB3 bean decides to, or is told to, deploy (for the purposes of this 
example) an EJB3 bean that will facilitate REGEX matching.
2. That bean communicates to an application outside the container (or...?) the 
name of the file(s) to be deployed, and the text of the match.
3. That app brings together the needed package, XML descriptors, env vars (like 
the regex match string), and creates the jar, sar, war, ear, etc.
4. That app then copies the archive to the ./deploy dir.
5. Done.

Yes, I know regex is a bad example, because you could pass the regex into the 
class with each request, but for this example we don't want to add that fat to 
every requesting class to pass via aever MDB... You get the point.

So with this strategy I can un-/deploy beans and services programmatically from 
within the deployed application(s).

TIA for any insights! :)

Bogus Exception

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070924#4070924

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070924
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: value for '#{org.jboss.seam.security.identity}' sometime

2007-08-04 Thread colablade
btw, my class is like

  | @Name("jbpmWorkingProcessInfoList")
  | @Scope(ScopeType.APPLICATION)
  | public class JbpmWorkingProcessInfoList {
  | @In
  | JbpmContext jbpmContext;
  | 
  | @In
  | private Actor actor;
  | ...
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070923#4070923

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - JSF Navigation issue with MyFaces 1.1.5

2007-08-04 Thread SyedH
Hi,

I have an application running as a JSF portlet in my JBoss portal version 2.4.1 
and JBoss AS 4.0.5 (myFaces version is 1.1.4).

I had some problems with the myFaces portlet version 1.1.4, so I replaced the 
myFaces 1.1.4 jars with myFaces version 1.1.5 jars in my JBoss AS (jsf-libs 
folder).

>From then I don't have my JSF navigation not working properly, like after 
>clicking on a commandLink, it goes to the bean method, executes the business 
>logic, returns a string matching my navigation rule, but my JSF page doesn't 
>get changed, it stays in the same page.

I don't have this problem with myFaces version 1.1.4. I tried adding a JSF 
Phase tracker and found all the phases getting executed correctly in sequence.

Please help me with some inputs on this.

Thanks..

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070922#4070922

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070922
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: value for '#{org.jboss.seam.security.identity}' sometime

2007-08-04 Thread colablade
i'm having the same problem here, and what really puzzles me is that if i press 
the 'back' button, then repeat the what i did before, no exception is thrown!
most of the time, it just works nicely!

and instead of "org.jboss.seam.security.identity", sometimes i'm also getting 
"Cannot get value for" "org.jboss.seam.core.actor" and 
"org.jboss.seam.core.jbpmContext".

so ... any clue?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070921#4070921

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070921
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Portal Events, Portal Session and Portlet Session

2007-08-04 Thread explorer
Got this one...
I dont know if this is a hack. 
we can get handle to the portlet through the Navigation class.

Navigation.getPortalRuntimeContext().

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070918#4070918

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - IllegalArgumentException on remove

2007-08-04 Thread Quake4Ialdaris
Hey guys, I'm trying to remove an entity. here's the code

Entity class:

@Entity
public class NewsEntity implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String title;
private String body;

public NewsEntity() {
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public int hashCode() {
int hash = 0;
hash += (this.getId() != null ? this.getId().hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object)
{
if (!(object instanceof NewsEntity)) {
return false;
}
NewsEntity other = (NewsEntity)object;
if (this.getId() != other.getId() && (this.getId() == null || 
!this.getId().equals(other.getId( return false;
return true;
}
public String getTitle()
{
return title;
}
public void setTitle(String title)
{
this.title = title;
}
public String getBody()
{
return body;
}
public void setBody(String body)
{
this.body = body;
}
}

Here's my facade interface:

@Stateless
public class NewsEntityFacade implements NewsEntityFacadeLocal
{
   @PersistenceContext
   private EntityManager em;
   private Logger logger = Logger.getLogger (this.getClass ());
   public NewsEntityFacade ()
   {
   }
   public void create (NewsEntity newsEntity)
   {
  em.persist (newsEntity);
   }
   public void edit (NewsEntity newsEntity)
   {
  em.merge (newsEntity);
   }
   public void destroy (NewsEntity newsEntity)
   {
  em.merge (newsEntity);
  if( em.contains (newsEntity))
 logger.info ("The Entity is attached to current Persistence Context");
  else
 logger.error ("Entity is not attached!");
 /* throws exception */
 em.remove (newsEntity);
   }
   public NewsEntity find (Object pk)
   {
  return (NewsEntity) em.find (NewsEntity.class, pk);
   }
   public List findAll ()
   {
  return em.createQuery ("select object(o) from NewsEntity as 
o").getResultList ();
   }
}

Here is the code that looks up the proxy and performs the delete operation:

  NewsEntityFacadeLocal newsEntFacLocal = null;
  try
  {
 InitialContext ctx = new InitialContext ();
 newsEntFacLocal = (NewsEntityFacadeLocal)ctx.lookup
 ("NewsApp/NewsEntityFacade/local");
  }
  catch(Exception ex)
  {
 logger.error ("Error in looking up NewsEntityFacadeLocal through");
 logger.error ("JDNI context " +JNDI_NEWS_ENTITY_EJB);
 ex.printStackTrace ();
  }
  
 //this record exists in data store
 NewsEntity ne = newsEntFacLocal.find (new Long(3));
 logger.info ("the entity found is: " + ne.toString ());
 nef.destroy (ne);

When I try this code I get an exception in the destroy method:

javax.ejb.EJBException: java.lang.IllegalArgumentException: Removing a detached 
instance ejb.NewsEntity#3

org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)

org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)

org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)

org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211)

org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
$Proxy286.destroy(Unknown Source)
web.DeleteMessage.processRequest(DeleteMessage.java:59)
web.DeleteMessage.doGet(DeleteMessage.java:123)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.fil

[jboss-user] [JBoss Portal] - Re: IPC - Event not fired

2007-08-04 Thread explorer
I Got it.
I missed out the link for it in the *-Object.xml. Declaring the listener for 
the portal.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070916#4070916

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070916
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested conversations and parent objects

2007-08-04 Thread matt.drees
"pdpantages" wrote :  The documentation clearly states that the parent/outer 
conversation objects are "read-only" in the nested conversation. 
  | 

This means you can't put things in or take things out of the parent 
conversation.  That is, the conversation itself is immutable, but not the 
objects in it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070915#4070915

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070915
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam from CVS in Eclipse, missing files

2007-08-04 Thread [EMAIL PROTECTED]
Run ant build

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070914#4070914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Memory usage in Workflow wait states

2007-08-04 Thread kukeltje
anonymous wrote : Will the 1000 instances be in memory for 7 days (or until 
they receive the message) 
no
anonymous wrote : [or will they be swapped to make space for other instances? 
no

They are just in the database 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070912#4070912

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070912
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Memory usage in Workflow wait states

2007-08-04 Thread ZazzaZ
Hi all,
i'm using jbpm tom develop a workflow use case.

Suppose you run 1000 (or an high number you can decide) workflows and suppose 
each of them stops waiting for a message from someone. Suppose the workflow 
instances are running on the same machine. Then suppose that the response the 
wait state is waiting for will arrive in one week.
Will the 1000 instances be in memory for 7 days (or until they receive the 
message) or will they be swapped to make space for other instances?
Thanks a lot for answering in this period. bye!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070911#4070911

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070911
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-04 Thread monkeyden
BUMP

I'd like the know the elegant solution for this too.  Seems to me that the 
request itself would keep the session alive, rather than simply querying for 
remaining time left, if any.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070908#4070908

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070908
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Web Page Having Trouble Connecting to EJB 3.0 Enity

2007-08-04 Thread kurzweil4
I have an application with a Model and a View project. The bean in the View 
project is having trouble finding the EJB Enity in the Model project. The 
binding   DepartmentsBean.departments is failing with this error:

javax.el.ELException: javax.faces.el.EvaluationException: javax.el.ELException: 
Error reading 'departments' on type ice.data.table.view.DepartmentsBean

I had the EXACT same error when I was deploying to OC4J, but the problem was 
that my Model project was not deployed as an EJB Jar. That is not the problem 
in this case since I am now using en EJB Jar.

Also, I have tested my DB connection with a plain JSP manually querying a table 
in the DB, so I know my connection configuration is good.

This is my persistence.xml:


  | 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" xmlns="http://java.sun.com/xml/ns/persistence";>
  |   
  |   java:/hr
  |   ice.data.table.model.Departments
  |   ice.data.table.model.DepPublicFacade
  |   ice.data.table.model.DepPublicFacadeLocal
  |   ice.data.table.model.DepPublicFacadeBean
  |   
  | 
  | 

This is my entity:


  | @Entity
  | @NamedQuery( name = "Departments.findAll", 
  | query = "select o from Departments o" )
  | public class Departments implements Serializable
  | {
  | @Id
  | @Column( name="DEPARTMENT_ID", nullable = false )
  | private Long departmentId;
  | @Column( name="DEPARTMENT_NAME", nullable = false )
  | private String departmentName;
  | @Column( name="LOCATION_ID" )
  | private Long locationId;
  | @Column( name="MANAGER_ID" )
  | private Long managerId;
  | 
  | public Departments()
  | {
  | }
  | 
  | public Long getDepartmentId()
  | {
  | return departmentId;
  | }
  | 
  | public void setDepartmentId( Long departmentId )
  | {
  | this.departmentId = departmentId;
  | }
  | 
  | public String getDepartmentName()
  | {
  | return departmentName;
  | }
  | 
  | public void setDepartmentName( String departmentName )
  | {
  | this.departmentName = departmentName;
  | }
  | 
  | public Long getLocationId()
  | {
  | return locationId;
  | }
  | 
  | public void setLocationId( Long locationId )
  | {
  | this.locationId = locationId;
  | }
  | 
  | public Long getManagerId()
  | {
  | return managerId;
  | }
  | 
  | public void setManagerId( Long managerId )
  | {
  | this.managerId = managerId;
  | }
  | }
  | 

This is my facade:


  | @Stateless( name="DepPublicFacade" )
  | public class DepPublicFacadeBean implements DepPublicFacade, 
DepPublicFacadeLocal
  | {
  | @PersistenceContext( unitName="Model" )
  | private EntityManager em;
  | 
  | public DepPublicFacadeBean()
  | {
  | }
  | 
  | public Object mergeEntity( Object entity )
  | {
  | return em.merge(entity);
  | }
  | 
  | public Object persistEntity( Object entity )
  | {
  | em.persist(entity);
  | return entity;
  | }
  | 
  | /** select o from Departments o */
  | public List queryDepartmentsFindAll()
  | {
  | return 
em.createNamedQuery("Departments.findAll").getResultList();
  | }
  | 
  | public void removeDepartments( Departments departments )
  | {
  | departments = em.find(Departments.class, 
departments.getDepartmentId());
  | em.remove(departments);
  | }
  | }
  | 

This is my bean from the View project:


  | public class DepartmentsBean
  | {
  | private DepPublicFacade model;
  | 
  | public DepartmentsBean()
  | {
  | try
  | {
  | final Context context = getInitialContext();
  | model = (DepPublicFacade)context.lookup("DepPublicFacade");
  | }
  | catch (Exception ex)
  | {
  | ex.printStackTrace();
  | }
  | }
  | 
  | public List getDepartments()
  | {
  | return model.queryDepartmentsFindAll();
  | }
  | 
  | private static Context getInitialContext() throws NamingException
  | {
  | // Get InitialContext for Embedded OC4J
  | // The embedded server must be running for lookups to 
succeed.
  | return new InitialContext();
  | }
  | }
  | 

Any help or pointers to information would be appreciated. I am at a loss here.

Thanks,
Kurzweil4



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070906#4070906

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070906
___

[jboss-user] [JBoss Seam] - Re: Google Maps and application/xhtml+xml mime type

2007-08-04 Thread samdoyle
"modoc" wrote : have you tried this:
  | 
  | 
  | 
  | 
  | Your issue may be similar to the issue that I was having with Google Ads:
  | 
  | http://www.digitalsanctuary.com/tech-blog/archives/19
  | 
  | Devon

No I haven't. I will try it as soon as I get in the office on Monday. Thanks 
for the tip I hope it is as simple as that.

S.D.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070904#4070904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: ServiceFactoryImpl: deprecated?

2007-08-04 Thread chui
Oh, I forgot to visit this topic =X

Well, I'm using JAX-WS. But I asked about a "new" ServiceFactoryImpl for 
JAX-RPC because I still have a JAX-RPC version of my application ^^"

JAX-WS is so much simpler...

Thank you, andy!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070903#4070903

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Problem to get Changes in jsp-files to apply

2007-08-04 Thread saigon_man
First, try to restart the jboss server. If this doesn't work, stop the server, 
then delete everything inside the server\default\tmp\deploy folder plus 
everything inside the server\default\work\jboss.web\localhost. restart the 
server. You might want to delete your war file as well and redeploy when the 
server starts. Hope this helps

TL

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070902#4070902

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070902
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Getting a session from entityManager

2007-08-04 Thread mladen.babic
Hi ,

I 've tried to use query by example.Problem is thet I get error when I try to 
get session.This is  fragment of my code:
  | public List findDistributors(String name,BigDecimal 
time,BigDecimal costs,String account){
  | DistributorEntity newDistributor=new 
DistributorEntity();
  | newDistributor.setName(name);
  | newDistributor.setDeliveryTime(time.intValue());
  | newDistributor.setDeliveryCosts(costs);
  | newDistributor.setAccount(account);
  | Session session = (Session)entityManager.getDelegate();
  | Example 
distributorExample=Example.create(newDistributor)
  | .ignoreCase()
  | .excludeZeroes()
  | .enableLike();
  | List list = 
session.createCriteria(DistributorEntity.class)
  | 
.add(distributorExample).list();
  | return list;
  | 

In debug mode I have found  that problem is in entityManager. getDelegate().It 
return null.How will i solve a problem?
Best regards,
mb

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070901#4070901

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070901
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - EntityManager is null??

2007-08-04 Thread mladen.babic
Hi ,

I've tried to use entityQuery in my app but it trows me error:
  | SEVERE: Error Rendering View[/order/distributors/distributors.xhtml]
  | java.lang.IllegalStateException: entityManager is null
  | at 
org.jboss.seam.framework.EntityQuery.validate(EntityQuery.java:31)
  | 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:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  | at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
  | at 
org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java

My components.xml file looks :
  | 
  | 
  | 
  |. . .
  |  
  | 
  | 
  | 
On page i get "EntityManager is null".What is the problem? I created project 
with seam-gen.
Best regards,
mb

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070900#4070900

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070900
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-04 Thread supernovasoftware.com
I have seen this exception, but in my case is was always due to an error on my 
part and disappeared after I fixed it.

I am currently using Seam 1.2.1 on JBAS 4.2.1 in production.

I will switch to Seam 2.0 as soon as it comes out though.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070899#4070899

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070899
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - nested conversations and parent objects

2007-08-04 Thread pdpantages
Hello Forum, 

I am using Seam 1.2.1.GA

I am using nested conversations to edit entries in a table.
The editor is in a nested conversation, launched from a long running 
conversation.
The conversation is started with s:link+propagation="nest"

The editor injects the table bean with 
@In
ServiceTableLocal serviceMgmt;

(The serviceMgmt bean contains an @Datamodel which is used to render the table).

When the edit is applied, I want to refresh the tablebean, which I do by calling

serviceMgmt.refresh();

This is done in the context of the nested conversation, in the editor.apply() 
method.

The odd thing is, everything works properly The documentation clearly 
states that the parent/outer conversation objects are "readl-only" in the 
nested conversation. 

If I remove the refresh call, I verifed that the table is  not updated- i.e., 
there is no "hidden mechanism" helping me out.

I expected the refresh to have no effect, as per the docs. Is this new 
behaviour for 1.2.1, or a bug?

I used to call 
Conversation.instance().end();
Conversation.instance().pop();
before the refresh, so that the latter call was done in the parent/outer 
conversation. 

I have switched to using @End as this technique was causing occasional "can't 
find stateful bean" problems. I expecetd my refesh to stop working, but it 
didn't

Anyone have any insights into this behaviour?

Thanks, PdP




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070895#4070895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam from CVS in Eclipse, missing files

2007-08-04 Thread demetrio812
Hi, I want to build a CVS version of seam, got it from anonymous cvs but 
Eclipse reports me import error of the following files:

org.jboss.seam.text.SeamTextLexer;
org.jboss.seam.text.SeamTextParser;

I verified that no org.jboss.seam.text is in the CVS version I imported

where do I wrong?

Thanks

Demetrio Filocamo

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070894#4070894

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: GPD-78 Adding ConfigInfoElements to Actions and nested C

2007-08-04 Thread [EMAIL PROTECTED]
Thanks for reporting these issues. 

Can you please try to specify a minimal process definition for each of the 
issues you are reporting? If possible attach them to the JIRA issue or else 
feel free to post them here in the forum.

Regards,
Koen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070893#4070893

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070893
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Google Maps and application/xhtml+xml mime type

2007-08-04 Thread modoc
have you tried this:




Your issue may be similar to the issue that I was having with Google Ads:

http://www.digitalsanctuary.com/tech-blog/archives/19

Devon

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070891#4070891

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070891
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Em does not rollback

2007-08-04 Thread vphagura
Thx very much for the response! I think that may the issue as you mentioned. 
As, I'm using MySQL on Linux. I may have to read a little about its 
configuration.

I'll post my more findings...

Thx for your time.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070883#4070883

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NEWBIE: seam-gen don't generate search fields for number

2007-08-04 Thread jseider69
Database Informix 10.0UC5
seam version 2.0.0Beta1



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070882#4070882

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070882
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - mod_jk - Broken Pipe error

2007-08-04 Thread meet_nagi
Hi,

In my production system we have a set up of Clustered environment with two 
nodes of JBOSS-4.0.5.GA, two apache mod_jk 1.2.23 and Cisco load balancer. We 
also have a firewall inbetween apache and jboss.

When users are trying to access the web pages its loading too long and after 
some time we are getting the below "Broken Pipe" error.

We also set socket_keepalive=1 in workers.properties but it didn't help.

Any suggestions will be greatly appreciated.

Error:

2007-08-03 01:01:26,003 WARN  [org.apache.jk.core.MsgContext] Error sending end 
packet

java.net.SocketException: Broken pipe

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)

at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)

at org.apache.jk.core.MsgContext.action(MsgContext.java:293)

at org.apache.coyote.Response.action(Response.java:182)

at org.apache.coyote.Response.finish(Response.java:304)

at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204)

at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)

at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)

at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:595)

2007-08-03 01:01:26,007 WARN  [org.apache.jk.common.ChannelSocket] 
processCallbacks status 2



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070881#4070881

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070881
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: CVS configuration

2007-08-04 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070880#4070880

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - CVS configuration

2007-08-04 Thread urswag
Hello

Please tell me how I can configure CVS
that I can check out the Seam version
for JBoss 4.0.5.

Thanks for Your answer.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070879#4070879

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - MDB fails to deploy InstanceNotFoundException

2007-08-04 Thread MrForms
When starting JBoss all container, I get an error when it tries to deploy one 
of my MDB:

ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error 
installing to Start: 
name=jboss.j2ee:ear=obp-stats.ear,jar=obp-stats-ejb.jar,name=StatisticListener,service=EJB3
 state=Create
org.jboss.deployment.DeploymentException: Unable to create activation spec 
ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' 
messaging-type=javax.jms.MessageListener 
properties={destination=ActivationConfigProperty(destination=queue/StatisticQueue),
 acknowledgeMode=ActivationConfigProperty(acknowledgeMode=Auto-acknowledge), 
destinationType=ActivationConfigProperty(destinationType=javax.jms.Queue)}

Caused by: javax.management.InstanceNotFoundException: 
jboss.jca:service=RARDeployment,name='jms-ra.rar' is not registered.

It seems JBoss wants to deploy the MDB before the proper JMS service is 
properly registered.  If I hot deploy the EAR, it works of course cause by then 
the service is loaded in the proper order.

I tried adding a @Depends({"jboss.jca:service=RARDeployment,name=jms-ra.rar"}), 
but I get another error:

 -> {Described:** UNRESOLVED [EMAIL 
PROTECTED]:ear=obp-stats.ear,jar=obp-stats-ejb.jar,name=StatisticListener,service=EJB3
 dependsOn=null whenRequired=Described resolved=false 
demand=jboss.jca:service=RARDeployment,name=jms-ra.rar} **}

So, my question is, how do I make sure the MDBs are loaded after the JMS 
service is activated ?  How can I make the @Depends annotation work?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070878#4070878

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070878
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NEWBIE: seam-gen don't generate search fields for number

2007-08-04 Thread ellenzhao
What is your database and version number? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070877#4070877

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: begin-conversation in Seam2 prevents data load

2007-08-04 Thread [EMAIL PROTECTED]
I'm afraid thats working correctly for me :(  Did you make any changes to 
pages.xml?  The best way to do this is to post a patch with the changes you've 
made, then I can easily replicate here.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070876#4070876

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Setting up multiple instances of JBoss on the same machi

2007-08-04 Thread jaikiran
Have a look at  
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070874#4070874

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: begin-conversation in Seam2 prevents data load

2007-08-04 Thread damianharvey
Pete,

I have modified the UI example and it shows the same problem.

I added an ID to the personHome in components.xml:

  | #{personId}
  | 
I changed selectItems.xhtml to include the following links at the top:

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | ID
  | #{person.id}
  |
  | ..  
  | 
I then added an entry for me in the import.sql. The idea is that when one of 
these links is clicked on the relevant entry should be loaded. Not surprisingly 
it doesn't work. If I remove  from the pages.xml 
then it does work.

Can I call it a bug yet?

Thanks,

Damian.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070872#4070872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Setting up multiple instances of JBoss on the same machine

2007-08-04 Thread redro
Hi All,

  I've downloaded JBoss4.2.1 and unzipped the package. Now i need to setting up 
multiple instances. Could you please any one can give me the details and step 
by step documentation.


Regards,
[EMAIL PROTECTED]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070870#4070870

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070870
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - DWR (Direct web remoting) & JBoss Portal 2.6 integration?

2007-08-04 Thread saigon_man
Hello,
Has anyone experienced with integrating DWR within JBoss Portal 2.6? I am using 
DWR 2.0 and JBoss Portal 2.6 and can't quite figure out how to implement DWR 
within jboss portal. Is there examples/websites out there about this 
integration?

Thanks,
TL

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070867#4070867

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070867
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Marking Hibernate POJO's as entities without annotations

2007-08-04 Thread [EMAIL PROTECTED]
Put orm.xml in your ejb-jar/META-INF - it does work.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070866#4070866

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070866
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Test fails with Seam 2.0

2007-08-04 Thread lzhu
it's fixed, just forget it

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070865#4070865

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Exception getting property value

2007-08-04 Thread [EMAIL PROTECTED]
Have you read 
http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/concepts.html#d0e2682 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070864#4070864

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070864
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - NEWBIE: seam-gen don't generate search fields for number col

2007-08-04 Thread jseider69
hi folks,

why seam-gen don't generate search fields for number columns for database 
entities? For character/string columns it does.
Anybody here can give me a source code template to include a search for a 
number column in a seam crud application?

thx
joerg


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070863#4070863

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - JBoss for Sales and Marketing people

2007-08-04 Thread elsa
I need someone to explain to me the limitations of JBoss, if indeed there are 
any. 

My company is thinking of using JBoss for a new site development, however, I am 
getting the impression from our developer that JBoss can not handle certain 
things on the wish-list from our sales and marketing group. Either that, or the 
developer himself may not be able to handle the developments being asked of him.

What I could use are a question or two to ask him to sniff out the truth.

Thanks!
Elsa

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070862#4070862

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: method expressions with parameter in the nested

2007-08-04 Thread wkzk
Thank you for your reply.

Although I didn't post it, I did try like this.


  | @Name("someAction")
  | public class SomeAction {
  | 
  |   @DataModel(value="parents")
  |   private List parents;
  | 
  |   @DataModelSelection(value="parents")
  |   @Out(required=false, scope=ScopeType.CONVERSATION)
  |   private Parent parent;
  | 
  |   @DataModel(value="children")
  |   private List children;
  | 
  |   @DataModelSelection(value="children")
  |   private Child child;
  | 
  | ...
  | 
  | }


  | @Entity
  | @Name("parent")
  | public class Parent {
  | 
  |   private int field1;
  |   private List children = new ArrayList(0);
  | 
  |   @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = 
"parent")
  |   public List getChildren() {
  |   return this.children;
  |   }
  | 
  | ...
  | 
  | }

But it didn't work

What am I missing?

Shige


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070861#4070861

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070861
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: method expressions with parameter in the nested

2007-08-04 Thread [EMAIL PROTECTED]
You need to outject datamodels not lists for extended EL to work like that I 
think.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070860#4070860

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Arabic Support

2007-08-04 Thread linnuxxy
I'm still downloading the portal from ur site...
but I wanted to ask :
how hard would be to build an Arabic portal based on this product?
translating the .properties files will be ok...

but what about the right to left page direction?
would it need just a new theme? or I have to modify other things?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070859#4070859

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070859
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Google Maps and application/xhtml+xml mime type

2007-08-04 Thread Manuel Palacio
This is a major oversight of the Google Maps API team, to use a feature that is 
deprecated. My .xhtml pages with embedded maps only work with IE.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070858#4070858

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070858
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Test fails with Seam 2.0

2007-08-04 Thread lzhu
I encounter same problem with seam2 but in AS 4.2 ...
where is Signature.java in Jboss AS 4.2 ?

it doesn't have jboss-embedded-all.jar in jboss 4.2

thx 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070857#4070857

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070857
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: SelectBooleanCheckbox and Y/N mapping

2007-08-04 Thread [EMAIL PROTECTED]
Exactly, this is, IMO, the "right" way to do it.  You want your domain model as 
represented by entity beans to be "correct", and use hibernate to map it to 
your legacy schema.  You should just use JSF converters for converting from the 
correct model to display and back.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070854#4070854

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Accessing collections from queries

2007-08-04 Thread alexg79
And if I only want a sum of deliveries before a certain date? Referring to the 
map key has been the crux of the problem!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070852#4070852

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070852
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Failed to create a new SAX parser

2007-08-04 Thread Ufic
Hi.
I created a simple webservice with a string param and a string return value.
I'm able to deploy it and to use it through a standalone application (a simple 
main function).

But, if I use THE SAME code in a servlet, I receive this error:

[ServiceFactoryImpl] Use jaxrpc-mapping from: 
jar:file:/opt/jboss-4.2.0.CR1/server/default/tmp/deploy/tmp28550DipScienzeInformazioneApp.ear-contents/DipartimentoEJB.jar!/META-INF/jaxrpc-mapping.xml
  | 10:41:15,481 INFO  [STDOUT] 10:41:15,478 ERROR [[Search]] Servlet.service() 
for servlet Search threw exception
  | org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX 
parser
  | at 
org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
  | at 
org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory.parse(JavaWsdlMappingFactory.java:79)
  | at 
org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:77)
  | at 
org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
  | at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
  | at 
org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
  | at it.agaticarnazzo.ateneo.lib.WsLib.retrieveWebService(WsLib.java:118)
  | at it.agaticarnazzo.ateneo.lib.WsLib.findDocumenti(WsLib.java:99)
  | at it.agaticarnazzo.ateneo.lib.WsLib.findDocumenti(WsLib.java:81)
  | at it.agaticarnazzo.ateneo.lib.WsLib.findDocumenti(WsLib.java:56)
  | at 
it.agaticarnazzo.ateneo.web.SearchServlet.doPost(SearchServlet.java:34)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new 
SAX parser
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:96)
  | at 
org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:55)
  | at 
org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
  | ... 30 more
  | Caused by: java.lang.ClassCastException: 
org.apache.xerces.parsers.XIncludeAwareParserConfiguration
  | at org.apache.xerces.parsers.SAXParser.(Unknown Source)
  | at org.apache.xerces.parsers.SAXParser.(Unknown Source)
  | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.(Unknown 
Source)
  | at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source)
  | at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown 
Source)
  | at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92)
  | ... 32 more


This is my code:
QName qname = new 
QName("http://dipartimento.ws.agaticarnazzo.it/";,
  | "CatalogoService");
  | 
  | ServiceFactory factory = ServiceFactory.newInstance();
  | Service service = factory.createService(endpoint, qname); // 
This line throws the exception
  | 
  | CatalogoService ret = (CatalogoService) 
  | service.getPort(CatalogoService.class);
  | return ret;
  | 

I'm u

[jboss-user] [JBoss Seam] - Re: method expressions with parameter in the nested

2007-08-04 Thread wkzk
sorry , i forgot to say that 
I'm using seam v2.0beta.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070848#4070848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Bypass Form Validation For Certain Operations?

2007-08-04 Thread kukeltje
anonymous wrote : As you pointed out, specifying the validation in the PDL is 
preferable to performing validation in the UI. I would recommend that the jpdl 
schema be enhanced to support more validation.  enhancing the schema is not 
that difficult, creating the code behind it is. 

If it is done it should seamlesly (pun intended) integrate with the ui 
frontend. So imo the variable type, vaildator and  maybe even a message should 
be configurable. But then again I also want the read, write, required in 
separate attributes see topic in the design forum)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070847#4070847

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - method expressions with parameter in the nested

2007-08-04 Thread wkzk
Hi.

I have a problem that a method expressions with parameter in the nested 
 doesn't work.

this is the situation

Parent class has a List named children. and xhtml is like this;


  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

browsered html is fine.
My problem is , in someAction#do method, child object is not null, but all 
field is a default value of the field type; 

Could you give me any hints?

Thanks in advance.

Shige


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070846#4070846

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Update to jdk 1.5.0_12 causes package does not exists in

2007-08-04 Thread jaikiran
Not sure what the issue is. See if this works - delete the contents of the 
%JBOSS_HOME%/server/<< theServerYouAreUsing>>/work  folder and restart JBoss. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070844#4070844

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Update to jdk 1.5.0_12 causes package does not exists in

2007-08-04 Thread jaikiran
Not sure what the issue is. See if this works - delete the contents of the 
%JBOSS_HOME%/server//work folder and restart JBoss.





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070843#4070843

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: POJOCache unresponsive

2007-08-04 Thread BruceSpringfield
Thanks for your reply!  I really appreciate it!!

I see what my error was.  I used a pojocache-passivation-service.xml for the 
config file when I was only testing on a local machine with no network 
connections.  You really need to be aware of what is in the config file.  I 
changed to cache-config.xml with very simple entries and it works fine.  

  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070841#4070841

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Spawning processes from JBoss App Server

2007-08-04 Thread dilip_anant
Hi There,

I am new to Jboss and this is my first post in the forum.

We have an application that does data collection from disparate systems and 
checks for their availability. My application checks if a system is up or not 
by pinging the IP and checking if certain services are running on machines by 
doing a command line check, for e.g doing a 
sc \\servername query W3SVC to check if the IIS server is up or not. The code 
for the data collection is in Java and the data is used to view a dashboard. I 
was able to ping different machines and was able to get responses.

The problem is that in some cases my application gives me a negative result for 
a ping whereas i can see that iam able to get a response from the command 
prompt. I tried to understand why this was occuring and tried deploying the 
application in other secure systems but to no avail. Finally i thought that it 
could be some issue related to the JBoss security. In that hope i write here.

Is there any Jboss security policy that restricts new command processes (like 
ping, sc\\ query) from being spawned?

I would appreciate if anyone could help me with this.

thanks,
Dilip

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070840#4070840

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070840
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user