[JBoss jBPM] - Re: cannot login in jbpm-console using jbpm-3.3.0 mysql jbos
by jeremiah.lumontod
Additional error logs from console:
14:49:25,703 ERROR [STDERR] Jan 2, 2009 2:49:25 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/gravel-1.0.0.GA.jar!/MET
A-INF/gravel-compat.taglib.xml
14:49:25,750 ERROR [STDERR] Jan 2, 2009 2:49:25 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/gravel-1.0.0.GA.jar!/MET
A-INF/gravel-data.taglib.xml
14:49:25,765 ERROR [STDERR] Jan 2, 2009 2:49:25 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/gravel-1.0.0.GA.jar!/MET
A-INF/gravel-nav.taglib.xml
14:49:25,796 ERROR [STDERR] Jan 2, 2009 2:49:25 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/gravel-1.0.0.GA.jar!/MET
A-INF/gravel-simple.taglib.xml
14:49:26,296 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/core.taglib.xml
14:49:26,375 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/identity.taglib.xml
14:49:26,390 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/tf-compat.taglib.xml
14:49:26,406 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/tf.taglib.xml
14:49:26,421 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/tfl-compat.taglib.xml
14:49:26,437 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-console-jbpm4jsf-3.3
.0.GA.jar!/META-INF/tfl.taglib.xml
14:49:26,484 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-facelets-1.1.14.jar!
/META-INF/jsf-core.taglib.xml
14:49:26,515 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-facelets-1.1.14.jar!
/META-INF/jsf-html.taglib.xml
14:49:26,546 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-facelets-1.1.14.jar!
/META-INF/jsf-ui.taglib.xml
14:49:26,578 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-facelets-1.1.14.jar!
/META-INF/jstl-core.taglib.xml
14:49:26,578 ERROR [STDERR] Jan 2, 2009 2:49:26 PM com.sun.facelets.compiler.Tag
LibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/jboss-4.2.2.GA/server/default/deploy/jbpm
/jbpm-enterprise-bundle.ear/jsf-console.war/WEB-INF/lib/jsf-facelets-1.1.14.jar!
/META-INF/jstl-fn.taglib.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199196#4199196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199196
17 years, 3 months
[JBoss jBPM] - Re: cannot login in jbpm-console using jbpm-3.3.0 mysql jbos
by jeremiah.lumontod
Hello Ronald
here's the message when i login:
HTTP Status 403 - Access to the requested resource has been denied
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
JBossWeb/2.0.1.GA
my guess is my javaserver faces configuration (web.xml and faces-config.xml). i just started playing with jbpm and i kinda like it. my future plan is to integrate it with seam. but im currently stocked in here.
can you help what might be the problem? i played around with version 3.2.2 of jbpm using hypersonic and eclipse 3.2.1 and everything is good, now i shifted to eclipse 3.4.1 and jbpm 3.3.0 using mysql since i like what upgrades / additional stuff they've added. deploying is good, accessing the web is my problem.
thank you for your time
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199194#4199194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199194
17 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Could not find datasource message in client JPA although
by ezanih
Ok...I think I'm getting very close to resolving this...please help me.
This is some new info I found.
The first part:
I've changed my InitialContext code from :
| Properties p = new Properties();
| p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| p.put("java.naming.provider.url", "jnp://localhost:1099");
| p.put("java.naming.factory.url.pkgs", "org.jboss.naming.client");
| p.put("j2ee.clientName", "OracleXE1_DS");
|
|
|
| InitialContext ctx = new InitialContext();
|
to
| Properties p = new Properties();
| p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| p.put("java.naming.provider.url", "jnp://localhost:1099");
| p.put("java.naming.factory.url.pkgs", "org.jboss.naming.client");
| p.put("j2ee.clientName", "OracleXE1_DS");
|
|
|
| InitialContext ctx = new InitialContext(p);
|
The second part (probably the most important) :-
I learnt that jboss-client.xml is very important and should be included in META-INF (together with application-client.xml) and it allows the client to be binded using the naming services.
So my client module (or Eclipse project) is named BiddingClient and my client class is named BidClient.java.
So is the contents of my jboss-config.xml file below correct and the way I am calling it (see below) ?
jboss-client.xml:
| <?xml version='1.0' encoding='UTF-8' ?>
|
| <!DOCTYPE jboss-client PUBLIC
| "-//JBoss//DTD Application Client 3.2//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-client_3_2.dtd">
|
| <jboss-client>
| <jndi-name>BiddingClient</jndi-name>
| </jboss-client>
|
application-client.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <application-client xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd"
| version="1.4">
|
| <display-name>BiddingClientApp</display-name>
|
| </application-client>
|
and the portion of the code in my BidClient.java that looks up the client JNDI name after getting the initial context is :-
| InitialContext ctx = new InitialContext(p);
| Object obj = ctx.lookup("java:BiddingClient");
|
Is this correct ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199190#4199190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199190
17 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Could not find datasource message in client JPA although
by ezanih
Hi
I think I've narrowed down the possible JNDI naming problem to this few lines of code :-
| Properties p = new Properties();
| p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| p.put("java.naming.provider.url", "localhost:1099");
| p.put("java.naming.factory.url.pkgs", "org.jboss.naming.client");
|
| InitialContext ctx = new InitialContext();
| Bidder bidder = (Bidder) ctx.lookup(Bidder.class.getName());
| //Object obj = ctx.lookup("java:OracleXE1_DS");
| //DataSource obj = (DataSource) ctx.lookup("java:OracleXE1_DS");
|
It has to be one the 3 lines below the initial context instantiation line. Perhaps if you could just give me some pointers what each of those 3 lines do? Thxs!
As per the code above, I'm still getting the naming error as before :-(
Oh..I forgot to post the code for the Bidder.java entity which is just a standard JPA entity class :-
| package my.com.eperolehan.entities;
|
| import java.io.Serializable;
| import java.lang.String;
| import javax.persistence.*;
|
| /**
| * Entity implementation class for Entity: Bidder
| *
| */
| @Entity
| @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
| @Table(name="BIDDER")
| public class Bidder implements Serializable {
|
|
| @Id
| @GeneratedValue
| @Column(nullable=false)
| private int id;
| private int bidSessionId;
| private String bidderName;
| private static final long serialVersionUID = 1L;
|
|
| public Bidder() {
| super();
| }
| public int getId() {
| return this.id;
| }
|
| public void setId(int id) {
| this.id = id;
| }
| public int getBidSessionId() {
| return this.bidSessionId;
| }
|
| public void setBidSessionId(int bidSessionId) {
| this.bidSessionId = bidSessionId;
| }
| public String getBidderName() {
| return this.bidderName;
| }
|
| public void setBidderName(String bidderName) {
| this.bidderName = bidderName;
| }
|
| public String toString() {
|
| StringBuffer BidderInfo = new StringBuffer();
|
| BidderInfo.append("id");
| BidderInfo.append(" " );
| BidderInfo.append("BidSessionId");
| BidderInfo.append(" " );
| BidderInfo.append("BidderName");
| BidderInfo.append(" : " );
| BidderInfo.append(id);
| BidderInfo.append(" " );
| BidderInfo.append(bidSessionId);
| BidderInfo.append(" " );
| BidderInfo.append(bidderName);
| return BidderInfo.toString();
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199178#4199178
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199178
17 years, 3 months