[jboss-user] [JBoss and NetBeans] - Re: [EMAIL PROTECTED]
I am continue help me! sql:dataSourceset dataSource='postgresDS' url='jdbc:postgresql://localohost:5432/postgres' driver='org.postgresql.Driver' passwords= user=post / sql:dataSource sql:query var=qery dataSource=postgresDS SELECT * from friend /sql:query . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128051#4128051 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128051 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JMS messaging in AS vs. JBossMQ
[Moved from design forum to user forum] View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128053#4128053 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128053 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Validation patter - Invalid State
nope entityManager.merge() did not work. So it seems that @Pattern validation is ignored in JSF live cycle and applied at backend logic? I was expecting that seem handles this? Or what could be wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128052#4128052 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128052 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: URGENT -JBoss limitation in accepting messages.
Posting on the developer forum, cross posting, and using URGENT in the titles of threads is NOT a good way to get us to respond!! I am locking this thread View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128055#4128055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: URGENT -JBoss limitation in accepting messages.
Posting on the developer forum, cross posting, off topic posts, and using URGENT in the titles of threads is NOT a good way to get us to respond!! Please observe basic forum etiquette in future before making posts or you will be ignore or your posts deleted. I am now locking this thread, you can continue to use the other thread on which you posted the same question. Thank you. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128056#4128056 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128056 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: cant figure out why my transaction is null
Where is the 'transaction.manager_lookup_class': | property name=hibernate.transaction.manager_lookup_class value=org.hibernate.transaction.JBossTransactionManagerLookup/ | and the 'jta-data-source' looks wrong, try: | jta-data-sourcejava:/WillsSeamProjectDatasource/jta-data-source | And what about the components.xml? - I need to see it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128058#4128058 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128058 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss and NetBeans] - Re: [EMAIL PROTECTED]
I think the reason could be miscofigured datasource tag. Imo you should use preconfigured datasource xor url/driver/password approach. Nice tutorial is here: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jsps/jstlsql.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128059#4128059 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128059 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to Create Dynamic Diagrams pointing to the current node,
Hell Everyone, I wanted to know how to create Task Diagrams like the one which is in JBPM Console under Task Instance View. Its show a complete process diagram with current node of the process highlighted in red. The diagram is exactly like the diagram which we create when defining the process definition. If anyone can point me towards the right direction, I would be very thankful. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128060#4128060 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam/jBpm deployment on linux - need hints
It sounds to me as a difference between OS installs of Glassfish. Maybe you should take your problem to the Glassfish forums (or whatever they have, I'm not familiar). Not trying to be rude, I just think they might be more able to help. This is not a SEAM issue. BTW, your English is better than modern youth's Dutch here :P Regards, Jan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128062#4128062 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - dynamic AOP whith EJB ?
hi, please, how to use dynamic AOP in EJB3 (jbossAS), i need some help, thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128061#4128061 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128061 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] JBoss Java Mail API: mail-service.xml configuration issue?
Hi everybody, I'm a newbie in using JBoss and I'm trying to write a simple session bean that should provide kinda mail-delivery facility. I've been googling for a couple of nights to finds docs explaining how to properly configure JBoss in order to be able to send mails by means of the Java Mail API, but I must confess I did not succeeded. I've only found out that it should be sufficient customizing the mail- service.xml file found under de deploy folder of (for example) the default folder. That's why I configured it in the following way: --- my mail-service.xml --- ?xml version=1.0 encoding=UTF-8? !-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z [EMAIL PROTECTED] $ -- server !-- -- !-- Mail Connection Factory -- !-- -- mbean code=org.jboss.mail.MailService name=jboss:service=Mail attribute name=JNDINamejava:/Mail/attribute attribute name=User[EMAIL PROTECTED]/attribute attribute name=Passwordmy_passwd/attribute attribute name=Configuration !-- A test configuration -- configuration !-- Change to your mail server prototocol -- property name=mail.store.protocol value=pop3/ property name=mail.transport.protocol value=smtp/ !-- Change to the mail server -- property name=mail.pop3.host value=pop.somehost.it/ !-- Change to the SMTP gateway server -- property name=mail.smtp.host value=smtp.somehost.it/ !-- The mail server port -- property name=mail.smtp.port value=25/ !-- Change to the address mail will be from -- property name=mail.from value=[EMAIL PROTECTED]/ !-- Enable debugging output from the javamail classes -- property name=mail.debug value=false/ /configuration /attribute dependsjboss:service=Naming/depends /mbean /server My session bean looks like this: --- MailerBean.java --- @Stateless public class MailerBean implements MailerLocal { private Session mail; public void sendMail(String email, String subject, String body) throws NamingException, MessagingException { InitialContext ctx = new InitialContext(); mail = (Session) ctx.lookup(java:Mail); MimeMessage message = new MimeMessage(mail); message.setSubject(subject); message.setRecipients(javax.mail.Message.RecipientType.TO, javax.mail.internet.InternetAddress.parse(email, false)); message.setText(body); Transport.send(message); } } Well, at deploy time I obviously have no problems, but trying to run that service I get the following exception: --- exception --- javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 553 5.7.1 [EMAIL PROTECTED] : Sender address rejected: not logged in com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) javax.mail.Transport.send0(Transport.java:169) javax.mail.Transport.send(Transport.java:98) - How's that? Am I missing some configuration element in the mail- session.xml file or should I do something more in my Java code? Please, note that the email provider I'm trying to use for performing this very basic test is a public email provider that does not require neither SSL nor TLS, thus there should be plain password authentication I guess. Hope this is not the wrong place for this post and thanks in advance to anyone who will want to help me, Francesco -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Stanco di girare per trovare quello che ti piace? Su www.grandinettisport.com i migliori marchi dello sportwear Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7503d=9-2 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: cant figure out why my transaction is null
first off - the data source - was struggling earlier with where names were getting posted into the JNDI so i forced the name into the global space - havent been back to play with this again - so its still there - so heres the datasource defn as exported to the deploy dir | datasources | | xa-datasource | jndi-nameWillsSeamProjectDatasource/jndi-name | use-java-contextfalse/use-java-context track-connection-by-tx/ | xa-datasource-classcom.mysql.jdbc.jdbc2.optional.MysqlXADataSource/xa-datasource-class | xa-datasource-property name=URLjdbc:mysql://localhost:3306/embed/xa-datasource-property | user-nameembed/user-name | passwordembed/password | transaction-isolationTRANSACTION_READ_COMMITTED/transaction-isolation | max-pool-size5/max-pool-size | min-pool-size1/min-pool-size | blocking-timeout-millis2000/blocking-timeout-millis | idle-timeout-minutes2/idle-timeout-minutes | no-tx-separate-pools/ | exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter/exception-sorter-class-name | metadata | type-mappingmySQL/type-mapping | /metadata | /xa-datasource | | /datasources | that i think answers why the lookup isnt as you might have expected - duplicate of this on my home pc is working fine as stated. as to your first question about hibernate.transaction_manager_lookup_class... I dont know! where is this xml configuration set? I found hibernate-console.properties file in top level ejb project generated by JBOSS tools wizard which doesnt set this (work or home). Its blank in both PCs | #File used by hibernate tools to override datasource and other container specific settings in persistence.xml | hibernate.connection.password=embed | hibernate.connection.username=embed | hibernate.connection.driver_class=com.mysql.jdbc.Driver | hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect | hibernate.connection.url=jdbc:mysql://localhost:3306/embed | | hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider | hibernate.datasource=WillsSeamProjectDatasource | hibernate.transaction.manager_lookup_class= i'll try setting that aparm in the hib-console.prop file on the works machine and see what happens. otherwise in my components.xml file in the war project | | xmlns:persistence=http://jboss.com/products/seam/persistence; | xmlns:security=http://jboss.com/products/seam/security; | xmlns:transaction=http://jboss.com/products/seam/transaction; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd; | core:init debug=true jndi-pattern=@jndiPattern@/ | core:manager concurrent-request-timeout=500 | conversation-id-parameter=cid conversation-timeout=12/ | persistence:managed-persistence-context auto-create=true | name=entityManager persistence-unit-jndi-name=java:/WillsSeamProjectEntityManagerFactory/ | drools:rule-base name=securityRules | drools:rule-files |value/security.drl/value | /drools:rule-files | /drools:rule-base | security:identity remember-me=true security-rules=#{securityRules}/ | event type=org.jboss.seam.security.notLoggedIn | action execute=#{redirect.captureCurrentView}/ | /event | event type=org.jboss.seam.security.loginSuccessful | action execute=#{redirect.returnToCapturedView}/ | /event | mail:mail-session host=localhost password=test port=2525 username=test/ | transaction:ejb-transaction/ !-- For use with jBPM pageflow or process management | |bpm:jbpm | bpm:process-definitions/bpm:process-definitions | bpm:pageflow-definitions/bpm:pageflow-definitions |/bpm:jbpm |-- | /components | again this is the same on both machines does that help? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128065#4128065 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128065 ___
[jboss-user] [JBoss Seam] - Re: cant figure out why my transaction is null
anonymous wrote : | as to your first question about hibernate.transaction_manager_lookup_class... I dont know! where is this xml configuration set? In the 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=WillsSeamProject | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourceWillsSeamProjectDatasource/jta-data-source | properties | property name=hibernate.transaction.manager_lookup_class value=org.hibernate.transaction.JBossTransactionManagerLookup/ | property name=hibernate.dialect value=org.hibernate.dialect.MySQL5InnoDBDialect/ | property name=hibernate.hbm2ddl.auto value=create-drop/ | property name=hibernate.show_sql value=true/ | property name=hibernate.format_sql value=true/ | | property name=jboss.entity.manager.factory.jndi.name value=java:/WillsSeamProjectEntityManagerFactory/ | | /properties |/persistence-unit | components.xml looks fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128067#4128067 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using own Classes as member for ManyToMany-Assotiations
After reading your post (I had the same problem) I tried every descendant of java.util.Collection. It worked only with java.util:collection itself. the nice thing is that without specifying anything, JBoss created a link table between the two entities. Which is what should be done. example: /** * @return the roles */ @ManyToMany( targetEntity=Role.class, cascade={CascadeType.PERSIST, CascadeType.MERGE} ) public Collection Role getRoles() { if(roles == null) { roles = new LinkedList Role (); } return roles; } /** * this setter must exist for hibernate but be private because we don't want anyone to use it * @param roles the roles to set */ @SuppressWarnings(unused) private void setRoles(Collection Role roles) { this.roles = roles; } When the Roles are read from the database, the Class used for the roles Collection is org.hibernate.collection.PersistentBag It would actually be nice to be able to choose a type that disallows duplicates in the list. Because now I have to catch the exception upon persist. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128070#4128070 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128070 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: cant figure out why my transaction is null
are okay i see it now howeevr its the same at work and home - i also set the value in hibernate console at work also and it still fails. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128069#4128069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Assigning Taks to the same user when sent back
jpechane is correct in suggesting swimlanes. Task A and Task B need to have different swimlanes. If there is a transition back from B to A, the original actor (or group of actors) will be assigned to Task A again. So no need to store this somewhere. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128078#4128078 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: How to generate annotated Java classes from hbm.xml file
I have created this JIRA issue: http://jira.jboss.com/jira/browse/JBIDE-1767 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128075#4128075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to Create Dynamic Diagrams pointing to the current n
the taskdiagrams are created by the eclipse frameworks used in the GPD and saved as a jpg in the processarchive. They are processdiagrams btw, more than just tasks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128072#4128072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Jbpm tool to create xml from ProcessDefinition
Not that we know of. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128073#4128073 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to get the tasks instance list when there is no swim
Or build a custom hibernate query View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128074#4128074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: gpd.xml bend coordinates
Just out of curiosity, did you choose jGraph over e.g. SVG or did you not consider SVG at all. Personally I'd be interested in an xslt that converts the gpd.xml to SVG. Cool dynamic overlay things can be done than including zooming etc... without the need to use a jpg View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128076#4128076 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128076 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: How to generate annotated Java classes from hbm.xml file
When igenerate source code with the mapping files in the JIRA issue no exception is thrown. It only generates faulty code. So the exception must come from another part of the code:-( I will investigate this further. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128077#4128077 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Token is locked by token[26]
Thanks again. I understand that they use a node and not a state, what I can't quite get to grips with is why and when would you use a state node? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128079#4128079 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128079 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Limiting maximum instance of SFSB?
On JBossAS, have a look at the @PoolClass annotation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128080#4128080 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128080 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Named Query - results as object?
I'm not entirely sure if creating a non-table-related class in Hibernate is entirely supported, but it compiles w/o issue. In the mapping file below, the class is intended to represent the record returned by the Named Query defined below it. The problem is that the query tag doesn't take the return tag. I guess I could turn this into a sql-query but that seems to be counter intuitive - embedding dbms-specific (possibly) SQL in the abstraction layer when it shouldn't be necessary. After the .list() command completes, I get a List of Object arrays with no relation to the code that invoked it. Sure, I can do things like (String)objVar[0] to get at my values, but its very ugly. Is there no way to get the results of a HQL-based Named Query into a custom object? Thanks in advance. | ?xml version=1.0 encoding=utf-8? | !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 3.0//EN | http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd; | !-- | Created to encapsulate the return results from a custom | select query for the report. However, the query tag | does not take the return attribute, only the sql-query | does. | -- | hibernate-mapping | | class name=us.tx.state.oag.olrap.report.AppsOnFile | id name=applicationId type=java.math.BigDecimal | column name=application_id precision=18 scale=0 / | generator class=assigned / | /id | property name=emplid type=java.lang.String | column name=emplid length=11 not-null=true / | /property | property name=nameFirst type=java.lang.String | column name=name_first length=30 not-null=true / | /property | property name=nameMiddle type=java.lang.String | column name=name_middle length=30 / | /property | property name=nameLast type=java.lang.String | column name=name_last length=30 not-null=true / | /property | property name=title type=java.lang.String | column name=title length=60 not-null=true / | /property | property name=deptId type=java.lang.String | column name=deptid length=10 not-null=false / | /property | property name=departmentName type=java.lang.String | column name=department_name length=10 not-null=false / | /property | property name=calculatedAward type=java.math.BigDecimal | column name=calculated_award precision=11 not-null=true / | /property | property name=baseAward type=java.math.BigDecimal | column name=base_award precision=11 not-null=true / | /property | property name=status type=java.lang.String | column name=status length=60 not-null=true / | /property | /class | | query name=ApplicationsOnFileByStatusId | query-param name=codeStatus type=java.math.BigDecimal/ | ![CDATA[ | select apps.applicationId, emps.emplid, emps.nameFirst, | emps.nameMiddle, emps.nameLast, | emps.title, emps.deptId, emps.departmentName, | apps.calculatedAward, apps.baseAward, | status.description as status | from us.tx.state.oag.olrap.db.InfoApplication as apps | inner join apps.infoEmployees as emps | inner join apps.codeStatus as status | where apps.codeStatus.statusId = :codeStatus | ]] | /query | | query name=ApplicationsOnFileByActive | ![CDATA[ | select apps.applicationId, emps.emplid, emps.nameFirst, | emps.nameMiddle, emps.nameLast, | emps.title, emps.deptId, emps.departmentName, | apps.calculatedAward, apps.baseAward, | status.description as status | from us.tx.state.oag.olrap.db.InfoApplication as apps | inner join apps.infoEmployees as emps | inner join apps.codeStatus as status | where apps.codeStatus.statusId in ( | select statusId from us.tx.state.oag.olrap.db.CodeStatus as status2 | where status2.description = 'Submitted' |or status2.description = 'Qualified' |or status2.description = 'Approved' | ) | ]] | /query | | /hibernate-mapping | View the original post :
[jboss-user] [Beginners Corner] - Re: Illegal @PersistenceUnit? Help!
OK. I'm getting close! Within Eclipse, I selected the JPA facet, which then generated the persistence.xml. My next problem brings me to precisely the main point I've been trying to learn about--CMP! My example Stock class contains these annotions: @Entity @Table(schema=BrianDb) The Eclipse editor is now showing this error message on the @Table line: Table 'Stock' cannot be resolved. Unlike the dozens of previous errors solved to get to this point, this error makes me happy! I'm right at the crux of container-managed persistence now, right? BrianDb is my MySql db, and the error message is correct: there is no table named Stock in it yet. So next, I'm supposed to do some simple configuration, and that table will be magically created for me, right? If you can tell me how to do that, I will send you a free six pack, and a big bowl of nacho Doritos. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128082#4128082 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - I can't run a simple stateless bean with my Jboss and Seam
Hi Community, I'm trying to run a simple example with this Stateless bean: | package org.pruebasoft.prueba; | | import java.util.List; | | import javax.ejb.Stateless; | import javax.interceptor.Interceptors; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.ejb.SeamInterceptor; | import org.jboss.seam.faces.FacesMessages; | import org.jboss.seam.log.Log; | | @Stateless | @Name(register) | public class RegisterAction implements Register | { | |@In |private User user; |@Logger |private static Log log; | |public RegisterAction() {} // I tried it with and without contructor | |public String register() |{ |log.info(Action RegisterAcion running..); |return ; |} | | } | My server is a Jboss 4.2.2 GA and it start without errors this is the log when I deploy my app: | 18:05:58,155 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 | 18:05:58,183 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 | 18:05:58,236 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 25s:634ms | 18:06:38,039 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=pruebaDatasource' to JNDI name 'java:pruebaDatasource' | 18:06:38,063 INFO [TomcatDeployer] deploy, ctxPath=/prueba, warUrl=.../deploy/prueba.war/ | 18:06:40,232 INFO [ServletContextListener] Welcome to Seam 2.0.1.GA | 18:06:41,961 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix: | 18:06:41,962 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/security/management, package: org.jboss.seam.security.management, prefix: org.jboss.seam.security.management | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework | 18:06:41,963 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms | 18:06:41,964 INFO [Initialization] reading /WEB-INF/components.xml | 18:06:41,992 INFO [Initialization] reading
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
BTW I took the jpa example out of seam 2.0.1 GA and ran the test. I am still getting the class casterror , bTW my index pages work all the time, the error I am getting is when I am logging in. Also I notificed transaction type changed from JTA to LOCAL in the persistence .xml and its causing an error [2/9/08 9:23:36:390 CST] 001e SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener beforePhase uncaught exception java.lang.IllegalStateException: Could not start transaction at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:581) at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:312) at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:140) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:990) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:931) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:768) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:499) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Caused by: java.lang.ClassCastException: org.jboss.seam.persistence.EntityManagerFactory incompatible with javax.persistence.EntityManagerFactory at
[jboss-user] [JBoss jBPM] - Re: Token is locked by token[26]
states by default are wait states. Nodes can have automatic transitions, so do something and immediately go on. Think of doing something synchronous in a remote system. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128091#4128091 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128091 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: run jboss jbpm server
2.0 is not supported anymore... where did you download that? sourceforge?There already is 3.2.2 so please get that View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128090#4128090 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128090 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Problem with simple clustering example
Hallo, I try to follow a very simple example for clustering (from Jamae, Johnson: JBoss in Action) JBoss 4.2.0.GA On a Windows XP machine I have started two instances, node1 and node2 which are copies of the all configuration out of the box. On node2 I use the BindingManager. Both instances start up normally and you can tell from the output that there are two nodes in the DefaultPartion. I have deployed a very simple SLSB to both nodes. import javax.ejb.Remote; | | @Remote | public interface Counter { | public void printNumber(int number); | } | | | @Stateless | public class CounterBean implements Counter { | | public void printNumber(int number) { | System.out.println(number); | | } | | } | | jboss | enterprise-beans | session | ejb-nameCounterBean/ejb-name | jndi-nameCounterBean/jndi-name | clusteredTrue/clustered | /session | /enterprise-beans | /jboss | | The deployment succeeds. The client: public class Testclient { | public static void main(String[] args) { | try { | Context initialContext = new InitialContext(); | Counter counter = (Counter) initialContext.lookup(CounterBean/remote); | for (int i=0; i1000; i++) { | counter.printNumber(i); | Thread.sleep(500); | } | } catch (NamingException e) { | e.printStackTrace(); | } catch (InterruptedException e) { | e.printStackTrace(); | } | | } | } jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces When I run the client a get a javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] | at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317) | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at clustering.Testclient.main(Testclient.java:10) | Caused by: java.net.SocketTimeoutException: Receive timed out | at java.net.PlainDatagramSocketImpl.receive0(Native Method) | at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) | at java.net.DatagramSocket.receive(DatagramSocket.java:712) | at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287) I have already tried to disable my firewall and set loopback=true in udp .. in cluster-service.xml. Many thanks for any advise View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128085#4128085 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128085 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - installing PHP module for Windows
Hallo I am using JBoss 4.2.0 and trying to install PHP module for Windows (XP). I have downlaoded php5servlet-windows-i586-SP1.zip, unziped all dlls on my class path (for example jboss/bin). I also adjusted web.xml and server.xml as described here and copied webapps folder to jboss/server/default/deploy. I have also copied jbossweb-extra.jar to jboss/lib and jboss/server/default/lib. When starting server I get an error during deployment of the PHP module: java.lang.UnsatisfiedLinkError: Can't find SAPI class, no libphp5servlet in java.library.path(;c:\jboss-4.2.0.GA\bin) All DLLs are in the c:\jboss-4.2.0.GA\bin directory but libphp5servlet does not exist in windows module. Only php5servlet.dll is there. Has someone else the same problem ? In othe formus tehre some questions like this bu no answer. Thanks in advance Andre Teshler View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128086#4128086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - run jboss jbpm server
I have downloaded jboss-jbpm-2.0-server.zip and extract it and run jboss jbpm server from start.bat and I could see http://localhost:8080/jbpm but in eclipse when I want to create process project it asks jboss jbpm runtime where location of it in jboss-jbpm-2.0-server.zip I have tried every directory in it, but eclipse didn't accept ?what should I do ? thanks alot. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128087#4128087 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error running Seam Examples with JBoss-5
I just downloaded jboss-5.0.0.Beta3 and jboss-seam-2.0.1.GA. When I deployed the booking example, I got the following error. Has anyone seen this and can tell me how to fix it? | 23:48:58,565 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNTag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 2m:48s:313ms | 09:10:05,377 WARN [JBossEntityResolver] Cannot load publicId from resource: jboss-app_4_2.dtd | 09:10:11,987 WARN [HDScanner] Scan failed | org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jboss-seam-booking.ear) | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) | at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85) | at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:743) | at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:280) | at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:237) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.RuntimeException: Error determining structure: jboss-seam-booking.ear | at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:268) | at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:65) | at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:194) | at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:218) | at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77) | ... 14 more | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: www.jboss.org | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193) | at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:153) | at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:165) | ... 18 more | Caused by: java.net.UnknownHostException: www.jboss.org | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) | at java.net.Socket.connect(Socket.java:516) | at java.net.Socket.connect(Socket.java:466) | at sun.net.NetworkClient.doConnect(NetworkClient.java:157) | at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) | at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) | at sun.net.www.http.HttpClient.init(HttpClient.java:214) | at sun.net.www.http.HttpClient.New(HttpClient.java:287) | at sun.net.www.http.HttpClient.New(HttpClient.java:299) | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:796) | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:748) | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:673) | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:917) | at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) | at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) | at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) | at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) | at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Jay After few more restarts and cleaning , I got rid of class cast error , but it is still pointing to open jpa. Here are logs at startup [2/9/08 10:33:25:125 CST] 0015 Contexts I org.jboss.seam.contexts.Contexts startup starting up: org.jboss.seam.security.facesSecurityEvents [2/9/08 10:33:25:125 CST] 0015 Contexts I org.jboss.seam.contexts.Contexts startup starting up: bookingDatabase [2/9/08 10:33:25:468 CST] 0015 SystemOut O 15 WARN [server.startup : 1] openjpa.Runtime - The property named openjpa.Id was not recognized and will be ignored, although the name closely matches a valid property called openjpa.Id. [2/9/08 10:33:25:500 CST] 0015 Initializatio I org.jboss.seam.init.Initialization init done initializing Seam. Then I hit the index page , seems to be fine , but can't proceed further , here are the errors [2/9/08 10:33:50:375 CST] 001d LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, javax.faces.DEFAULT_SUFFIX=.xhtml} [2/9/08 10:33:50:375 CST] 001d LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance of default capacity [2/9/08 10:33:50:390 CST] 001d SeamFilterI org.jboss.seam.servlet.SeamFilter init Initializing filter: org.jboss.seam.web.exceptionFilter [2/9/08 10:33:50:390 CST] 001d SeamFilterI org.jboss.seam.servlet.SeamFilter init Initializing filter: org.jboss.seam.web.redirectFilter [2/9/08 10:33:50:390 CST] 001d SeamFilterI org.jboss.seam.servlet.SeamFilter init Initializing filter: org.jboss.seam.web.multipartFilter [2/9/08 10:33:50:437 CST] 001d lifecycle I JSF1027: [jboss-seam-jpaWAR.war] The ELResolvers for JSF were not registered with the JSP container. [2/9/08 10:33:50:718 CST] 001d Contexts I org.jboss.seam.contexts.Contexts startup starting up: org.jboss.seam.web.session [2/9/08 10:33:50:718 CST] 001d Contexts I org.jboss.seam.contexts.Contexts startup starting up: org.jboss.seam.security.identity [2/9/08 10:33:50:859 CST] 001d SystemOut O 25406 INFO [WebContainer : 0] openjpa.Runtime - Starting OpenJPA 1.0.1 [2/9/08 10:33:50:921 CST] 001d SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener beforePhase uncaught exception java.lang.IllegalStateException: Could not start transaction at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:581) at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:312) at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:140) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:990) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:931) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:768) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:499) at
[jboss-user] [JBoss Seam] - Re: I can't run a simple stateless bean with my Jboss and Se
I guess the name of the EAR file don't equals 'prueba'? | core:init jndi-pattern=prueba/#{ejbName}/local debug=true / | ^^ | Should be the name of the EAR file. | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128093#4128093 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128093 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Illegal @PersistenceUnit? Help!
I've found that if I manually create a table called Stock, using the MySql Administrator, this error message goes away. So I assume my Eclipse project is correctly viewing my database. I just don't know how to have the tables created automatically on the basis of my annotations and configurations... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128097#4128097 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: gpd.xml bend coordinates
So bendpoints are in fact nothing more than line-segments with a kind of weird coordinate system. Besides that, you cannot draw a diagram without having the original processdefinition.xml as wel, since you have to know where the transitions go to. I wonder why Koen implemented it this way. Maybe it has something to do with Eclipse GEF or something... now I'm even more in favour of having one file with GPD info within the processelements using namespaces and not to separate sections in one file, see http://www.jboss.org/index.html?module=bbop=viewtopict=107992postdays=0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128099#4128099 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityManager not injected in onMessage method
This is our first Seam application (Seam 2.0.0 GA on Tomcat 6) and we need now to persist in DB the data received from a jms queue. The jms connection works ok but then we get a NullPointerException in the last line bellow, because the entity manager is not been injected Are we missing something? In other asynchronous calls in other methods in the project the entity manager is been injected correcly. Any help would be appreciated. Our class: | @Name(serviceReader) | @Scope(APPLICATION) | @Startup | public class ServicioResultados implements MessageListener { | | @In | private EntityManager em; | | @In(value = JMSConnectionFactory) | ConnectionFactory connectionFactory; | | . | | @Create | public void init() { | | try { | connection = connectionFactory.createConnection(); | connection.start(); | | session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); | | . | | public void onMessage(Message message) { | | log.debug(Se ejecuta el Servicio de Resultados: Nuevo mensaje..); | | try { | AnalisisCerrado ac = (AnalisisCerrado) ((ObjectMessage) message).getObject(); | ac = em.merge(ac); | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128100#4128100 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] JBoss Java Mail API: mail-service.xml configuration issue?
Hi Frusso. I have in my code the following; String from = .. if (from == null) throw new IllegalArgumentException(No Origin Address); msg.setFrom(new InternetAddress(from)); Note: This dates back to 2002, so I don't remember everything about this API right now, although I think that should be an NPE rather a IllegalArgumentException getting thrown. But I think one gets the idea of what the Java code is doing to send a message. I don't recall if the from was needed, but it kind of looks like it from this snippet. Regards, Steve [EMAIL PROTECTED] wrote: Hi everybody, I'm a newbie in using JBoss and I'm trying to write a simple session bean that should provide kinda mail-delivery facility. I've been googling for a couple of nights to finds docs explaining how to properly configure JBoss in order to be able to send mails by means of the Java Mail API, but I must confess I did not succeeded. I've only found out that it should be sufficient customizing the mail-service.xml file found under de deploy folder of (for example) the default folder. That's why I configured it in the following way: ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Saving e-mails generated by Seam
Is there a way I can get access to the rendered HTML of a Seam-generated e-mail? I want store a record of it on the server. I thought this would be the string that Renderer.render returns, but that only contains an XML header. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128104#4128104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Saving e-mails generated by Seam
Not a direct answer to the question but you could put an archive-mailbox on your bcc list... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128105#4128105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128105 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method
Have you configured it in components.xml? Does the persistence-unit-jndi-name in components.xml match jboss.entity.manager.factory.jndi.name in persistence.xml? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128101#4128101 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128101 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Seam and JBPM WebConsole
Hi, i'm using JBoss AS 4.0.5 and Seam 1.2.1. I want to use the JBPM Web Console. But i didn't find it. Is it not included in the seam framework? I tried to use the .war of this page http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmWebConsole It doesn't work. Is there someting like a manual, how to run the Web Console with Seam? I'm using some business processes and i want to monitor it with the Web Console. Thanks for any advice! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128103#4128103 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128103 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate 3.2.3 update large columns problem
Hibernate Version: 3.2.3 Hibernate Entity Manager:3.2.1.GA Hibernate Annotations:3.2.1.GA | persistence | persistence-unit name=WSHPU | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourceOracleDS/jta-data-source | properties | property name=hibernate.connection.dialect value=org.hibernate.dialect.OracleDialect/ | property name=hibernate.Log value=DefaultLevel=WARN, Tool=INFO/ | property name=hibernate.show_sql value=true/ | property name=hibernate.format_sql value=true / | property name=hibernate.jdbc.use_streams_for_binary value=true/ | property name=hibernate.jdbc.batch_size0/property | /properties | /persistence-unit | /persistence | Hello there! I'm facing a really annoying problem here. I have table with a CLOB column mapped to a String property on my class. At the beginning I had problems persisting it, due to batch size, so (as shown above) I've it set to 0. I have no problems persisting it, but when I try to update the entity, when the String is over a certain limit (could not find how many chars :( ) Hibernate ignores the value and is setting the column as null. I've tested it several times, and happens only for big strings (not that big actually, I believe over 4096 chars) It is possible to check at the log, that hibernate seems to be skipping one column (there's no binding for column #2): | 2008-02-09 16:59:57,791 TRACE [org.hibernate.jdbc.AbstractBatcher] preparing statement | 2008-02-09 16:59:57,792 TRACE [org.hibernate.persister.entity.AbstractEntityPersister] Dehydrating entity: [com.synos.wsh.model.persistence.WSHMessage#3601] | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.StringType] binding 'FFC7EE337F0100D75C473DDDC54C' to parameter: 1 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.CalendarType] binding '2008-02-09 16:59:28' to parameter: 3 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.CalendarType] binding '2008-02-09 16:59:30' to parameter: 4 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.CalendarType] binding '2008-02-09 16:59:57' to parameter: 5 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.TimestampType] binding null to parameter: 6 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.IntegerType] binding '407' to parameter: 7 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.IntegerType] binding '0' to parameter: 8 | 2008-02-09 16:59:57,792 TRACE [org.hibernate.type.LongType] binding '3601' to parameter: 9 | 2008-02-09 16:59:57,800 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) | Any ideas? Best regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128106#4128106 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Focus field on page load
Just a small feture inquiry: would it be out of context for the framework to have an s:prefocus tag that would be used like | h:inputText value=... | s:prefocus/ | /h:inputText | That would insert at the end of a page a | scriptdocument.getElementById('...').focus()/script | (or whatever the browser-compatible code would be)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128108#4128108 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Saving e-mails generated by Seam
I considered that, but it doesn't accomplish what I want to do. I want to be able to retrieve the e-mail later via the web site. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128109#4128109 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128109 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Focus field on page load
http://jira.jboss.com/jira/browse/JBSEAM-2611 created. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128115#4128115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Focus field on page load
Create a JIRA (new feature). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128111#4128111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Saving e-mails generated by Seam
Well, if you write this imap-view against your mailbox... ;-) Does it have to be an exact snapshot through the template? Otherwise you could just store away the information in the template... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128113#4128113 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Saving e-mails generated by Seam
Thanks for your reply. I know there are other ways to achieve the same effect, but the easiest solution is for me to to get a handle to the rendered HTML (or e-mail payload) directly through Seam if that's possible. If it's not possible, then I'll look at other options. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128117#4128117 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Hello, The change from JTA to RESOURCE_LOCAL. in the persistence.xml is because we wanted to use JPA transactions for the example - previously it was using JTA. Take a look at Chapter 8 of reference guide for some more info on the config. Do you have transaction:entity-transaction entity-manager=#{em}/ in your components.xml file? This is what will work together with JPA setting. Also so you have any openJPA properties set? It seems to be complaining about one that is set. -Jay View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128116#4128116 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Jay OS - Windows JVM - IBM JDK 5 Here is my persistence.xml ?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; 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=bookingDatabase transaction-type=RESOURCE_LOCAL org.hibernate.ejb.HibernatePersistence jta-data-sourceDefaultDatasource/jta-data-source !-- From WAS 6.1.0.9, the embedded DB is switched to the same Derby DB in Glassfish -- /persistence-unit I am just really frustrated with Websphere, its never easy to get it working View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128121#4128121 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Validation patter - Invalid State
I think I got it. if I will use | s:validateAll | h:inputText ... |f:validateLength minimum=0 maximum=100 / | /h:inputText | /s:validateAll | It will break hibernate validation. You can assume that f:validateLength does not need to be there, but what other validators, are they valid with hibernate validation? Tomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128122#4128122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Jay Thanks, Here is my components.xml file. ?xml version=1.0 encoding=UTF-8? components xmlns=http://jboss.com/products/seam/components; xmlns:core=http://jboss.com/products/seam/core; xmlns:persistence=http://jboss.com/products/seam/persistence; xmlns:transaction=http://jboss.com/products/seam/transaction; xmlns:security=http://jboss.com/products/seam/security; xmlns:web=http://jboss.com/products/seam/web; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd; core:manager conversation-timeout=12 concurrent-request-timeout=500 conversation-id-parameter=cid/ transaction:entity-transaction entity-manager=#{em}/ persistence:entity-manager-factory name=bookingDatabase/ persistence:managed-persistence-context name=em auto-create=true entity-manager-factory=#{bookingDatabase}/ security:identity authenticate-method=#{authenticator.authenticate}/ I don't have openJPA properties, all I doing in building the war and deploying it to websphere, if its mentioning about openJPA where do I check for that ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128119#4128119 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128119 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Your components.xml file looks good. As for the openJpa properties that would be in the persistence.xml file. If you are just building and the 201_ga release it should be correct. I'm not sure where to go from here - right now. What OS or JVM are you using? I did mine on linux. Also if JPA transactions are not important to you - you could try changing to JTA in persistence.xml file and see what is different. Or following chapter 8 you could turn off transactions all together. The frustrating part is that this all worked for me following the steps I have in the doc and this forum. Software (containers, and frameworks) are funny that way :) -Jay View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128120#4128120 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I can't run a simple stateless bean with my Jboss and Se
If you look at the output, you'll see there is no EAR file. Woops! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128123#4128123 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:fileUpload problem on Internet Explorer
Are there any known problems with uploading files in Seam 2.0.1.GA? On Firefox all's working fine (I followed the 5 part tutorial in Seam Wiki), but on Internet Explorer 6... nothing happens when pressing the Upload button - other functionalities work fine in IE. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128124#4128124 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Illegal @PersistenceUnit? Help!
I changed persistence.properties, and that created the tables. Now my editor is happy. Last task: get the thing to actually run! Thanks very, very much for your help. I was pretty lost without you. --McJava1967 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128127#4128127 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128127 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Generating a WSDL statically (from ant?)
As we all know, JBoss is cool. Using JBoss AS 4.2.2 and Seam 2.0.1, I set up a web service bean by simply annotating a class with @Stateless @WebService, and then annotated a method with @WebMethod, and presto, I have a working web service. On the other side of things, I quickly built a client in NetBeans. All I needed to do was put in the URL of the service, and NetBeans 6 grabbed the WSDL by querying the URL, and then created the necessary artifacts. Then to use it, I just drag the web service node straight into a Java class, and there it is. It works too. Cool! Five minutes to create a web service and client. But now I want to have more control over what is going on. Specifically, I would like to generate the WSDL file and save it as a file, so I can put it into the build tree of the client, and the client can generate its artifacts without needing to do an HTTP request. Second, the WSDL that is generated has a hard-coded server URL. This is not good, because the clients may end up connecting to a variety of servers; the end user should pick a server to use. How do I get the WSDL to not specify a server, and then let the client side pick the server URL? Thanks for pointers on this. I have looked at the Sun JAX-WS documentation, and it is sparse. I looked for books on this and didn't see any that cover J2EE 5.0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128129#4128129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Agree with Websphere - everything seemed a little (or a lot) harder than it needed to be. Try putting the complete persistence.xml file from the release back in. That is how I have it running. Not to mention that one of the people on the websphere forums thought that when the application was actually loaded and running that it would be using hibernate. So if none of the hibernate values are there, maybe it reverts to openJPA. Its a long shot but give it a try. Put this back in the build, update the app through the admin console, then restart. Good luck. | ?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; | 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=bookingDatabase transaction-type=RESOURCE_LOCAL | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourceDefaultDatasource/jta-data-source | properties | !-- From WAS 6.1.0.9, the embedded DB is switched to the same Derby DB in Glassfish -- | property name=hibernate.dialect value=GlassfishDerbyDialect/ | property name=hibernate.hbm2ddl.auto value=create-drop/ | property name=hibernate.show_sql value=true/ | property name=hibernate.cache.provider_class value=org.hibernate.cache.HashtableCacheProvider/ | property name=hibernate.transaction.manager_lookup_class value=org.hibernate.transaction.WebSphereExtendedJTATransactionLookup/ | /properties |/persistence-unit | /persistence | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128130#4128130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
Jay My Persistence.xml looks exactly the same as yours, when I posted it for reply , it did cut the properties tag off. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128131#4128131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Illegal @PersistenceUnit? Help!
IT WORKED! IT WORKED! IT WORKED! I'm PERSISTING! Thanks for your help! I'll be back... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128132#4128132 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128132 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ
That explains my confusion then :) When I get a chance I'll try websphere on windows. I can't really do that this week though. Its possible that there are different behaviors. The only other thing I can think of right now is to check the various logs under: WebSphere/AppServer1/profiles/AppSrv01/logs directory. I found the ffdc directory under that directory. It contains individual log files for some errors that don't show in the system out or err logs. Good luck and let me know how it goes. I'll also check windows when I can. -Jay View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128133#4128133 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128133 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error running Seam Examples with JBoss-5
with the same version of Seam and JBoss, I am able to start JBoss successfully but deployment of booking EAR is not successfull: 2008-02-09 20:13:17,942 INFO [javax.servlet.ServletContextListener] Welcome to Seam 2.0.1.GA | 2008-02-09 20:13:17,947 DEBUG [org.jboss.seam.deployment.DeploymentStrategy] Using default URLScanner | 2008-02-09 20:13:18,029 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: /C:/jboss-5.0.0.Beta3/server/default/tmp/deploy/jboss-seam-booking2037-exp.war/WEB-INF/lib/jboss-seam-ui.jar | 2008-02-09 20:13:18,029 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\jboss-5.0.0.Beta3\server\default\tmp\deploy\jboss-seam-booking2037-exp.war\WEB-INF\lib\jboss-seam-ui.jar | 2008-02-09 20:13:22,333 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: /C:/jboss-5.0.0.Beta3/server/default/tmp/deploy/jboss-seam-booking2037-exp.war/WEB-INF/lib/jboss-seam-debug.jar | 2008-02-09 20:13:22,334 DEBUG [org.jboss.seam.deployment.URLScanner] archive: C:\jboss-5.0.0.Beta3\server\default\tmp\deploy\jboss-seam-booking2037-exp.war\WEB-INF\lib\jboss-seam-debug.jar | 2008-02-09 20:13:22,458 DEBUG [org.jboss.seam.deployment.URLScanner] scanning: vfsfile:/C:/jboss-5.0.0.Beta3/server/default/deploy/jboss-seam-booking.ear/jboss-seam.jar | 2008-02-09 20:13:22,458 DEBUG [org.jboss.seam.deployment.URLScanner] archive: vfsfile:\C:\jboss-5.0.0.Beta3\server\default\deploy\jboss-seam-booking.ear\jboss-seam.jar | 2008-02-09 20:13:22,458 WARN [org.jboss.seam.deployment.URLScanner] could not read entries | java.util.zip.ZipException: The filename, directory name, or volume label syntax is incorrect | at java.util.zip.ZipFile.open(Native Method) | at java.util.zip.ZipFile.init(ZipFile.java:203) | at java.util.zip.ZipFile.init(ZipFile.java:234) | at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:111) | at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:98) | at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:81) | at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:67) | at org.jboss.seam.init.Initialization.create(Initialization.java:102) | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3860) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:349) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:143) | at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:341) | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:89) | at org.jboss.web.deployers.WebModule.start(WebModule.java:67) | 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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | 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:668) | at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184) | at $Proxy5.start(Unknown Source) | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327) | at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862) |
[jboss-user] [JBoss Seam] - JBoss Seam DVDStore Example- Hibernate Mapping Question for
I am a newbie into Seam/Hibernate world and very much impressed with the technologies. HAd a simple question on Hibernate mapping and would very much appreciate response. In the dvdstore example in Jboss Seam examples, the hibernate.cfg.xml does not have any *.hbm.xml for the entity classes and also does not have any mapping class entries. I was under the impression that 1 of them has to be present in the hibernate.cfg.xml file. Why is this not so? How are the entity classes mapped into the corresponding tables in the database? Is any other file apart from hibernate.cfg.xml used? Or is the schema auto-discovered bu Hibernate based on the annotations in the Java Entity classes? Any help deeply appreciated. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128142#4128142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128142 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Question on Capabilities definition (ClassLoaderMetaData
I don't understand what you mean by deployer having capabilities. It's the module that has capabilities. And there is a module per deployment unit. Module also has requirements. It is mean that those requirements are usually resolved by some other module's capabilities. Think of this as OSGi imports (requirements) and exports (capabilities). And there are also bundle dependencies - module requirement / capability. You would normally have this information constructed in a single deployer - e.g. OSGiManifestParser. But deployer is nothing more than a POJO inside MC. So it can have all the normal IoC/DI stuff as other MC beans. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128143#4128143 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Use Eclipse's BIRT with JBoss Seam
Has anyOne used Eclipse's BIRT with JBoss Seam 2.0? In birt report design, I have to call a Java class's static method from javascript. Can I use Component.getInstance() in this Java classï¼ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128144#4128144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Questions on describe/classloader deployers and CL scope
gcompienne wrote : I have a few questions the concerning the DESCRIBE and CLASSLOADER deployer stages. | | I understand the principle that DESCRIBE is used to declare/define the dependencies whilst the CLASSLOADER stage is related to the classloader itself. | | I have noticed that the classloader instance (BaseClassLoader) is created in-between the DESCRIBE and CLASSLOADER stages. That's seems reasonable as after the DESCRIBE stage I suspect the system should have enough information to create the appriopriate classloader. But then I wonder what is really the purpose of the CLASSLOADER stage? Is it to have a deployer that will create the classloader itself? If so, how do I make that happen (as I said the CL is currently automatically created between the describe and classloader stages). | Where do you see it getting created? Since it's the AbstractTopLevelClassLoaderSystemDeployer that does this in AS5 -- VFSTopLevelClassLoaderSystemDeployer, and its stage is CLASSLOADER. gcompienne wrote : | I also have another question concerning classloaders. Looking at the MC code it looks like the classloader is only created for a top level deployment unit. Why is that the case? (it would mean the WAR, JAR and other would use the CL of the EAR). Does it has to be always the case? Or am I missing something? | You're missing AbstractClassLoaderSystemDeployer. ;-) This one has no notion of top level deployment. Currently used by WarClassLoaderDeployer (although soon to be depracated -- see top comment in this class). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128145#4128145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - run jboss jbpm server
hi, I have downloaded jbpm-jpdl-suite-3.2.2.zip too from sourceforge but I tried to start server from start.bat in server folder but I couldn't run server and so I saw this error in screen LifecycleException: Protocol handler initialization failed: java.net.BindExcep | ion: Address already in use: JVM_Bind:8080 | at org.apache.catalina.connector.Connector.initialize(Connector.java:10 | 8) | at org.jboss.web.tomcat.tc5.StandardService.initialize(StandardService. | ava:688) | at org.apache.catalina.core.StandardServer.initialize(StandardServer.ja. but there is no service run at port 8080 ,what should I do? how and where I can change server port from 8080 to another port? and what is the problem?is it because of port 8080? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128146#4128146 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128146 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Generating a WSDL statically (from ant?)
I got the command line tool to work, and figured out a few things: 1. I don't need to download the JBoss WS packages. Everything comes with JBoss AS, including the command line tools. 2. The wsprovide.sh command works easily, with very simple command line arguments. 3. However, it does NOT work on Ubuntu unless you fix it with the change described in this post: http://www.jboss.com/index.html?module=bbop=viewtopicp=4106549 I hope this will be fixed in a future release. If I hadn't found that post I think I would be frustrated by this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128147#4128147 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128147 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: ClassLoaderMetaData not propagating (yet?) to classloade
gcompienne wrote : | I am doing further testing with the deployers and I have noticed that the ClassLoaderMetaData info does not seem to be used (or fully used?) yet by the subsystem that triggers the creation of the classloader. | It's the ClassLoading class that uses CLMD. gcompienne wrote : | | | 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Domain = DEFAULT | | Looks like this is being used. You're probably not attaching the second CLMD into the attachments. I would need to see TestDescribeDeployer for more info. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128148#4128148 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128148 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Schema generated via Hibernate, sequence issue?
Hi. I got my database schema generated for PostgreSQL database via Hibernate annotations. The schema generated tables definitions and one sequence definition called: hibernate_sequence I wrote a couple of SQL text files to populate the database, I run those files via Apache Ant. | insert into books values (1, '...', '...', '...'); | insert into books values (2, '...', '...', '...'); | insert into categories values (1, '...', '...', '...'); | insert into categories values (2, '...', '...', '...'); | I start to smell some kind of disaster... I shouldn't hard code IDs by hand as I did, I have to use hibernate_sequence to populate all IDs in all tables, right? If it is so, any ideas how to do it with my SQL files and Ant? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128151#4128151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error while testing using external database
Hi It works now!! In hibernate.cfg.xml, I changed: | property name=connection.datasourceArmadaSeamProjectDatasource/property | to: | property name=connection.datasourcejava:/ArmadaSeamProjectDatasource/property | And for injected Seam-managed hibernate sessions, names should be the same in components.xml and Java code, for example: | persistence:managed-hibernate-session name=hibernateSession auto-create=true/ | | @In | private Session hibernateSession; | Thank you all and special thanks for Mr. Pete.Muir, you showed an exceptional patience. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128150#4128150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128150 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user