Russ Ray

Ranch Hand
+ Follow
since Feb 11, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Russ Ray

I am very new with XSLT and all the details, so excuse me is I don't see the error in my ways. I also realize this is probably a very long post, but I did not want to leave anything out just in case someone wanted to see the xml, xsl or html.

What I am trying to accomplish is take an XML document and transform it into a HTML presentation using a table. I have started with a simple case of one row within the table. It populating the table row correctly, but for some reason, the original stream of data for the row (unformatted) is appearing above the table twice. I can not explain why this occurring. Can someone help me?


This is how I have the xsl files chained together:

This is the DocSearchResults:




This is the documents xsl:




This is the document xsl



This is the document content xsl:


This is the page range xsl




This is the original xml:





This is the html produced:



I think you can see from the information it's just short of being right......


Thanks for reading my post and for any positive comments/encouragements you can provide.


Russ
I searched the group for any information concerning this topic. I did not find anyone asking this type of question.

What I want is a reliable plugin checking my code beyond the simple formatting rules. Does anyone have any tool they are currently using inside of WSAD 5.1
14 years ago
I know this is a silly question, but I am stump on why I can not find the error. I am having problems finding the EJB Local within the JNDI tree.

In the deployment descriptor I have this bean with the jndi name of local/CacheEJB


When I start the server and run the Universal Test Client. I can see with the JNDI Explorer and the [Local EJB beans]. Under this is the local directory with the CacheEJB object id, so I am lead to believe I can find the bean should I ask for it correctly.

The way I lookup the local is by passing the following string "java:comp/env/local/CacheEJB" When I test this in the Test Client, I get this error: "Name comp/env/local not found in context "java:"
I've regenerated the RMIC code to be sure all changes are reflected properly, but this did not work.

I am working with WSAD 5.1.1.

Any suggestions would be greatly appreciated.

Russ
14 years ago
I have a simple application that uses a JMS message to update other clustered members of the application. This is a pub/sub scenario. In an effort to prevent duplication of work, I use VMID SERVER_ID = new VMID() to obtain the unique ID for the server who originated the message. I post this information on the queue with no problem. When the message comes off the queue, the MDB takes the current serverID by using VMID SERVER_ID = new VMID(). Next, I compare the two ids.

This application is running on my box, a single JVM/Server, but for some reason I get two separate ServerIDs.

Current ServerID[3c39e4d1cb654eef:39963df5:10563d911b1:-7ffd]
Originating ServerID[3c39e4d1cb654eef:39963df5:10563d911b1:-7ffc]

Am I misusing VMID?

Thanks for your help.

Russ
Everyone:

I have searched the forum and did not see this question answered, so I am posing it to the group. My application was successful under WebLogic 8.1 with sp2. However, we moved the application to WebLogic 8.1, sp4 and it failed to deploy properly.

When I go look at the code where the deployment is failing, it fails on the section of code that was previously worked, such as ClassEJB.getKey(). When I go looking in the method, the only line change within the method was obtaining a Singleton cacheManager object.

This is from the application logs


This is from the server log:


Could someone point me in the correct direction on solving this issue? From what I have read it appears to be a classloader issue. The Singleton class is not fully active because the application ejbs are loaded first. Therefore the Singleton class had not beeen loaded.

Is there a workaround around this issue in WebLogic? I do not face this issue in WebSphere.

Thank you in advance for taking the time to read my post.

Cheers,

Russ
14 years ago
When I start the server, I notice the below errors. While the server comes up and works, I want to eliminate these error messages.


Than you for taking the time to read and answer my post.

Russ
14 years ago
I have a web application. It is constructed using J2EE, struts, Oracle, and WAS. As each user logs into the application, the size of the application grows. I repeat this step 10 times with a new browser each time. The application continues to grow. I do not see and decrease in the application size. We have studied the database connections and have ensured we are closing connections, resultsets and statements.

What I would like to know from the more experience performance users is what are some tools and techniques I can use to isolate this issue? I would like to discover why the application size is still growing even though the user is killing his browser each session.

Thank you in advance to reading and giving my question serious thought!

Russ
14 years ago
whoops I spoke to soon without checking all of the jndi tree.

My earlier post was for the home. When I go looking in the tree local EJB Beans. I notice a ejb entry for my CacheEJB Bean:

CacheEJBHome (package.ejb.cache.EJSLocalStatelessCacheEJBHome_d3064579)



This tells me I can get this local to by using the jdni, but I am now more confused. When I created the Stateless Session bean I set the jndi name to be:

ejb/CacheEJBHome

'ejb' is below the tree root. This will get me the home. What I want is the local. The local us located under [local ejb beans]/ejb/CacheEJBHome.

What jndi name do I use? If I use 'ejb/CacheEJBHome' I get the home. When I attempt to cast this to the local, I get a class cast exception.

What am I missing?
Jeanne:

Thank You, Thank You! Your answered was what I was looking for--something to check the JNDI tree.

What I see in the tree is :

CacheEJBHome (pakage namee.ejb.cache._CacheEJBHome_Stub)

My understanding is this is the "home". This works great for the client perspective.

The bean has a Local too. I created the local so others can call the bean from inside the EJB container. I got the code running yesterday afternoon by using the home. This is not the correct way, but it got me further along in my coding until I could work out the steps for using a home and a local for a single bean.

Thank you very much for taking the time to offer some insight on how to debug the application within WSAD. Any more insight would greatly be appreciated.......

Russ
Good Afternoon to All!

I have been scratching my head all day yesterday trying to understand this error:


quote:
--------------------------------------------------------------------------------
[2005-06-15 09:44:38,203][Servlet.Engine.Transports : 1][FATAL][{ServiceLocator}{getHome}{CONFIG0001}{Failed to find EJB Reference from JNDI tree}{External Message:Name comp/env/ejb not found in context "java:".}]
{ServiceLocator}{getHome}{CONFIG0001}{Failed to find EJB Reference from JNDI tree}{External Message:Name comp/env/ejb not found in context "java:".}
--------------------------------------------------------------------------------



What is going on is the user is logging into the web application. The process is the user comes in from the web container and enters the EJB container through the AdminEJB. The AdminEJB has a reference to a singleton POJO entitled ServiceLocator. This POJO follows the locator pattern. One of the things the Locator is attempting to accomplish is retrieving the CacheEJBLocalHome. This Cache ejb has a JNDI name of
quote:
--------------------------------------------------------------------------------
ejb/CacheEJBHome
--------------------------------------------------------------------------------

I have promoted the Cache ejb to the Local and the Remote interfaces using WSAD.

I realize the lookup method can not find the EJB, but I do not know what is causing this behavior. I originally thought the AdminEJB needed a bean reference to the CacheEJB, but this did not work.

Any insight or debugging techniques into this issue would be greatly appreciated.

Thank you for reading my post.

Russ
Good Morning to All!

I have been scratching my head all day yesterday trying to understand this error:

[2005-06-15 09:44:38,203][Servlet.Engine.Transports : 1][FATAL][{ServiceLocator}{getHome}{CONFIG0001}{Failed to find EJB Reference from JNDI tree}{External Message:Name comp/env/ejb not found in context "java:".}]
{ServiceLocator}{getHome}{CONFIG0001}{Failed to find EJB Reference from JNDI tree}{External Message:Name comp/env/ejb not found in context "java:".}



What is going on is the user is logging into the web application. The process is the user comes in from the web container and enters the EJB container through the AdminEJB. The AdminEJB has a reference to a singleton POJO entitled ServiceLocator. This POJO follows the locator pattern. One of the things the Locator is attempting to accomplish is retrieving the CacheEJBLocalHome. This Cache ejb has a JNDI name of

ejb/CacheEJBHome

I have promoted the Cache ejb to the Local and the Remote interfaces using WSAD.

I realize the lookup method can not find the EJB, but I do not know what is causing this behavior. I originally thought the AdminEJB needed a bean reference to the CacheEJB, but this did not work.

Any insight or debugging techniques into this issue would be greatly appreciated.

Thank you for reading my post.

Russ
Hello Everyone:

I am working through an example on using a Compresse filter for *.jsp and *.html files. I am developing on WSAD 5.1.1.

I am not having much luck getting the application to use the GZIPFilter class.

I have used the tool to create the filter in web.xml

This is how WSAD accomplished the task:

When I run the test page, I get:



When I go into the web.xml and edit the filter information to:
[/code]
<filter>
<filter-name>GZIPFilter</filter-name>
<display-name>GZIPFilter</display-name>
<filter-class>com.jspbook.GZIPFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
[/code]
I get the following error:


Can some please point me in the right direction so I can test this compression filter?

Any help would be greatly appreciated.

Russ
Hello Everyone:

I am working through an example on using a Compresse filter for *.jsp and *.html files. I am developing on WSAD 5.1.1.

I am not having much luck getting the application to use the GZIPFilter class.

I have used the tool to create the filter in web.xml

This is how WSAD accomplished the task:

When I run the test page, I get:



When I go into the web.xml and edit the filter information to:
[/code]
<filter>
<filter-name>GZIPFilter</filter-name>
<display-name>GZIPFilter</display-name>
<filter-class>com.jspbook.GZIPFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>GZIPFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
[/code]
I get the following error:


Can some please point me in the right direction so I can test this compression filter?

Any help would be greatly appreciated.

Russ
[ May 27, 2005: Message edited by: Bear Bibeault ]
14 years ago
JSP
you can close this topic.........
14 years ago